Contributing to MatrixOne Documentation

Contributions to the MatrixOne documentation are welcome from everyone. The MatrixOne community strives to make the contribution process simple and straightforward. To do that, we create this page to walk you through the whole process step by step.

Before you start

Before you contribute, please take a minute to familiarize yourself with basic Markdown syntax and look at our Code of Conduct and the Google Developer Documentation Style Guide for some guidance on writing accessible, consistent, and inclusive documentation.

How is MatrixOne documentation project organized?

The MatrixOne documentation is managed in 3 repositories:

  • The main project framework and CI&CD settings are in the matrixorigin.io repo.

  • The markdown contents are in the docs/en/MatrixOne folder of matrixone repo.

  • The images and unstructured data are located in the artwork repo.

The matrixorigin.io repo contains a submodule that links to matrixone repo contents. The images are referred to as web image links from artwork repo. The matrixorigin.io has implemented a CI&CD project, which will be triggered by a new code merge and manual launch. This CI&CD workflow publishes the documentation to https://docs.matrixorigin.io/.

The documentation project is based on the mkdocs-material. You can find the corresponding syntax and commands with this project.

MatrixOne Documentation Structure

The MatrixOne documentation content is planned with 6 main modules.

  • Overview: MatrixOne’s introduction, features, architecture.

  • Get Started: How to quickly deploy and run a MatrixOne in a standalone or a distributed environment.

  • Reference: SQL reference, Configuration parameters, Error Codes.

  • FAQs: Product, Technical Design, SQL, Deployment FAQs.

  • Develop: How to develop some applications based on MatrixOne using different programming languages.

  • Troubleshoot: Introduce common errors and debugging tools.

  • Release Notes: Release notes of all versions.

  • Contribution Guide: How to contribute to MatrixOne project.

Lift a finger

If you are just correcting a typo or grammatical error, feel free to go ahead and create a pull request.

Contribute Workflow

1. File an issue and assign it to yourself by commenting/assign.

2. Fork matrixorigin.io and matrixone repos. 3. Clone the matrixorigin.io repo, using --recursive to retrieve the submodule of matrixone repo.

  1. git clone --recursive git@github.com:yourusername/matrixorigin.io.git

Clone the matrixone repo to the other folder in local:

  1. git clone git@github.com:yourusername/matrixone.git

4. Add matrixone repo as a remote repository in your local matrixone folder with:

  1. git remote add upstream https://github.com/matrixorigin/matrixone.git

Add matrixorigin.io repo as a remote repository in your local matrixorigin.io folder with:

  1. git remote add upstream https://github.com/matrixorigin/matrixorigin.io.git

5. As the local repo has the full documentation project code, you can run mkdocs serve under matrixorigin.io folder, and check http://localhost:8000 to check if this project runs well.

  1. mkdocs serve

6. Make your modification. If the modification concerns the project settings, update the sitemap with new pages, or update the CI&CD workflow code. You can always check http://localhost:8000 to see if your modification is effective. If your modification is about the markdown contents, after you update the docs submodule of matrixorigin.io, the same modification should be applied to the matrixone repository.

7. Push your git commits to your remote Github matrixorigin.io and matrixone repos. We recommend you push to a new branch using the following commands:

  1. git push origin main:NEW_BRANCH

8. Go back to GitHub, and submit a pull request in NEW_BRANCH so that we can review your changes.

9. Once your code for both repositories is merged, you’ll wait for a CI&CD workflow to restart running until the documentation website being updated.

Note

So once your pull requests are merged, the update to the website is not immediate. We’ll need to run a manual launch to update it.

10. At last, you should update your local and remote repo to help keep committing history clean. Override your local committing repo with:

  1. git pull --force upstream main:main

Update the main branch of your remote repo in Github:

  1. git push --force origin main:main

Note

Most processes should be implemented in both matrixorigin.io and matrixone.

Contribute a blog article

If you would like to write an article for our blog, please file an issue or send it to dengnan@matrixorigin.io. Feel free to submit either a completed draft or any article ideas. All submissions will be reviewed as quickly as possible. If your article or idea seems like a good fit for the blog, we will reach out to you directly.