Welcome! Your contributions to the MemMachine documentation are highly valued. This guide will walk you through the process of setting up your local environment and making changes.
Before you begin, please check our issues page to see if the issue has already been reported.
For a new documentation feature or a major change, please create a new issue first. This allows us to discuss the change and ensures that no one else is already working on it. When creating an issue, please use the Documentation Issue template.
For small, straightforward fixes like typos or broken links, you are welcome to create a pull request directly without filing an issue first.
Follow these steps to set up your local environment:
-
Clone the Repository:
git clone https://github.com/MemMachine/MemMachine.git cd MemMachine -
Install the Mintlify CLI:
npm i -g mintlify
-
Install Dependencies: Run the following command at the root of your documentation (where
mint.jsonis located).mintlify install
This command will re-install any necessary dependencies for the project.
-
Install Pre-Commit Hooks:
npm i pre-commit pre-commit install
This will install the hooks that automatically check your Markdown files for formatting and style issues on every commit.
-
Serve the Documentation:
mintlify dev
This command will start a local web server. You can view your changes live by navigating to the URL provided in the terminal (usually
http://localhost:3000).
- Find the file you want to edit in the
docs/directory. - Make your changes.
- Save the file.
- Preview your changes in your browser.
Once your changes are complete and you have verified them locally, follow these steps to submit a pull request:
-
Create a New Branch:
git checkout -b docs/your-feature-name
-
Commit Your Changes:
git add . git commit -sS -m "Docs: Update the getting started guide"
Remember to use the
-sSflags to sign your commit. Unsigned commits will fail the GitHub Actions checks. -
Push the Branch:
git push origin docs/your-feature-name
-
Open a Pull Request: Go to the GitHub repository page and open a pull request. Complete the Pull Request template and submit the pull request.
Thank you for your contribution!