Editing The Documentation
A guide on how to edit the documentation.
You will likely find multiple errors here and there among the documentation. You can contribute to the documentation by editing it. This is a guide on how to edit the documentation.
Fork the repository
Fork this repository to your own GitHub account. Click on the “Fork” button on the top right corner of the page.
Install Mintlify CLI
Install the Mintlify CLI by running the following command in your terminal:
Download the repository
Download your fork of the repository. It should be located in the blue “Code” button on the top right corner of the page. Click on it and download the ZIP file. Extract the ZIP file to a folder of your choice. In this guide, we will be exporting to the “Documents” folder. After extracting, go back to your terminal and run these following commands:
Previewing Locally
After navigating to the “docs” folder, You can finally preview the documentation locally. Run the following command in your terminal:
This will start a local server and open the documentation in your default web browser. If it doesn’t open automatically, you can visit http://localhost:3000 in your web browser.
Edit
After previewing locally, you can now edit the documentation. You can use any text editor of your choice. We recommend using Visual Studio Code (recommended) or Notepad++. You can find the files in the “docs” folder. The files are in Markdown format, so you can edit them like any other text file. You can follow the Mintlify documentation for more information on how to edit the documentation.
Commit
After editing the documentation, you can commit your changes. If you are using Visual Studio Code, you should see a “Source Control” tab on the left side of the window. It is the third icon from the top. Click on it and you should see a list of files that have been changed. You can select the files you want to commit and enter a commit message. After that, click on the “Commit” button.
Pushing your changes for review
On your forked repository, there should be a “Contribute” button above your code. Click on it and select “Open a pull request”. Then click “Create pull request”. This will create a pull request to the original repository. The developers will review your changes and merge them if they seem good to the assigned developer.