This website is built using Docusaurus 2, a modern static website generator.
yarn install
yarn start
This command starts a local development server and open 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.
GIT_USER=<Your GitHub username> USE_SSH=true 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.
This section describes how to publish Function Mesh docs for a specific release to the Function Mesh website.
docs
folder.Create a branch based on the main
branch.
Run the yarn run docusaurus docs:version <release version>
command to release docs for the target release. This command is used for automatically updating or creating all docs required for the target releases, including the sidebar.js
, the versioned-docs, and the versions.json
file.
This example releases docs for Function Mesh v0.1.6.
yarn run docusaurus docs:version 0.1.6
Run the node replace.js
command to update the release version in the installation guide.
Save the updates and summit the PR.
git add -A
: save doc updates.git commit -m ""
: confirm your updates.git push origin <your-branch>
: submit the PR.Ask the stakeholders to review the PR and check your doc updates through the preview-link.
If no more comments or updates, merge the PR. The docs are updated to the Function Mesh document website automatically.