Tinker Docs is an open technical documentation platform for the Tinker team, aimed at helping team members better learn and share knowledge related to robot development. Tinker Docs is built with Docusaurus 2.
We welcome contributions to Tinker Docs! If you would like to contribute, please follow the steps below:
fork
the repository to your own GitHub account, for exampleGrange007/tinkerdocs
.clone
your repository and write your article (following the project structure).commit
your changes andpush
them to your repository.- Create a
pull request
to themain
branch of theTinker/tinkerdocs
repository. - Wait for the
github actions
to build and deploy your changes to the site. Once the build is successful, your changes will be live on the site. - If the build fails, you will need to fix the issues and push the changes to your repository. The build will automatically be triggered again.
For more information, you can take a look at how-to-fork-a-github-repository.
If you want to build and deploy the site locally, you can use the following commands:
clone this repository and run the following command:
$ yarn
$ yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
$ yarn build
This command generates static content into the build
directory and can be served using any static contents hosting service.
$ yarn serve
Using SSH:
$ USE_SSH=true yarn deploy
Not using SSH:
$ GIT_USER=<Your GitHub username> yarn deploy
Using SSH:
cmd /C "set "USE_SSH=true" && yarn deploy"
Not using SSH:
cmd /C "set "GIT_USER=<GITHUB_USERNAME>" && yarn deploy"
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages
branch.