-
npm install
-
npm run start
-
Browser input
localhost:3000/
-
npm run build
-
npm run serve
-
Browser input
localhost:3000/
Base docusaurus v2.3.1 Node.js version 16.14+
Please note that if you start the site in development mode with npm run start
or npm run start-en
, the regional language switching feature and local search feature will not work. Please run the program in production mode using the "build and start as service" process to enable locale switching and site search.
- Add a new .md file under i18n/en-us/docusaurus-plugin-content-docs/current or i18n/zh-cn/docusaurus-plugin-content-docs/current. Corresponding to the Chinese file and the English file, the Chinese and English file names must be consistent.
- Update sidebar.js to add a new entry in the en-us or zh-cn directory.
- Add a new .md file under i18n/en-us/docusaurus-plugin-content-docs/current/developers or i18n/zh-cn/docusaurus-plugin-content-docs/current/developers, the file name should start with _dev.md ends. Note that the suffix _dev is necessary.
- Update sidebar.js to add a new entry in en-us or zh-cn.
- Add a new .md file under i18n/en-us/docusaurus-plugin-content-blog/current or i18n/zh-cn/docusaurus-plugin-content-blog/current. Corresponding to the Chinese file and the English file, the Chinese and English file names must be consistent.
- Requires
SEO
configuration.
the type is:
---
title: title
keywords: [keywords1,keywords2]
description: some description
author: author name
date: 2018-12-29
custom_edit_url: https://github.com/spring-cloud-alibaba-group/spring-cloud-alibaba-group.github.io/blob/main/i18n/en/docusaurus-plugin-content-blog/30-line- wasm.md
---
Notice:
- "title" cannot contain ":"
keywords
must beArray
custom_edit_url
is a link to the documentation in this repo, required.
- Do not use incorrect html tags, such as
<img>, <br>
, replace it with<img/> <br/>
; - If you want to display
<xx>
, please replace it with<xx>
.