This website is built using Docusaurus 3, a modern static website generator.
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.
Astraios documentation comes with internationalization supporting both English and Chinese. The location of Chinese translation is in i18n/zh-cn directory
To start the localized site in dev mode, use:
yarn start --locale zh-cn
Your site is accessible at http://localhost:3000/astraios/zh-cn/
yarn build
This command generates static content into the build
directory and can be served using any static contents hosting
service. Docusaurus will build one single-page application per locale:
- build: for the default, English language
- build/zh-cn: for the Chinese language
CI check for Markdown link (markdown-link-check
) is turned on and it's not smart
enough to detect relative linking by Docusaurus. The workaround is to disable the link check at the relevant line. For
example:
<!-- markdown-link-check-disable -->
known. Additionally, this process makes it easy to implement a [blue-green deployment](continuous-delivery) or
<!-- markdown-link-check-enable -->