This website is built using Docusaurus 2, a modern static website generator.
yarn installyarn startThis command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
yarn buildThis 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 deployIf 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.
- All docs and images are updated to the
docsfolder.
-
Create a branch based on the
mainbranch. -
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 thesidebar.js, the versioned-docs, and theversions.jsonfile. This example releases docs for Function Mesh v0.1.6.yarn run docusaurus docs:version 0.1.6
-
Run the
node replace.jscommand 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.