DSSLRobot gh pages is an open technical documentation platform for the DSSL Robot team, aimed at helping team members better learn and share knowledge related to robot development and provides the detailed deployment and usage for our robot platform and relavant alogrithms. DSSLRobot gh pages is built with Docusaurus 2.
We welcome contributions to DSSLRobot gh pages! If you would like to contribute, please choose one of the methods and follow the steps below:
forkthe repository to your own GitHub account, for exampleglaciercoder/dsslrobot.github.io.cloneyour repository and write your article (following the project structure).commityour changes andpushthem to your repository.- Create a
pull requestto themainbranch of theDsslRobot/DsslRobot.github.iorepository. - Wait for the
github actionsto 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.
- Directly clone the repository to your local computer.
- Create a new branch:
git checkout -b <branch_name>
- Write your article in the new branch
commityour changes andpushthem to remote repository.(I suggest solve the conflict locally)- Go to the remote repository and create a pull request.
- Solve the confict and merge your own branch to
main - Wait for the
github actionsto 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.
If you want to build and deploy the site locally, you can use the following commands:
clone this repository, make sure you have npm installed and node.js version is right. Installation
npm run 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.
npm run build
This command generates static content into the build directory and can be served using any static contents hosting service.
npm run serve
We have setup the github action for automatic deployment. If you have the need to manually deploy, follow the steps below:
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.