| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This website is built using Docusaurus, a modern static website generator.
mkdir -p /path/to/workspace
cd /path/to/workspace/
git clone https://github.com/fluid-cloudnative/fluid-cloudnative.github.io.git fluid-website
cd fluid-websitenpm installnpm run startnpm run start --locale=zhThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Note
Currently localeDropdown won't work in local development mode because of technical limitation(see related issue here). Please use npm run serve instead as a workaround.
npm run buildThis command generates static content into the build directory and can be served using any static contents hosting service. This includes multilingual contents so it would work with localeDropdown.
npm run serveTo make changes to the website, add or modify markdown files under docs/ for en version and i18n/zh/docusaurus-plugin-content-docs/ for zh version. Any commits pushed to the repo will trigger a Github workflow to re-deploy the website with the latest changes.
Any markdown files should have a header to control its appearance on the website, Take docs/core-concepts/what-is-fluid.md as an example, the header looks like:
--- sidebar_label: What is Fluid sidebar_position: 1 slug: / ---
For each directory under docs/, a special file _category_.json is needed to control the doc folder's appearance on the website:
{
"label": "Core Concepts",
"position": 1,
"link": null
}| Back | FazBrowse Home | New Git URL |