All website material of https://community.wuhan2020.org.cn
wuhan2020.github.io is powered by docsite. Please read https://docsite.js.org
Please make sure your version of docsite is docsite@wuhan2020.
Please also make sure your node version is higher than 8.x.
- Run 
npm i docsite@wuhan2020 -gto install docsite for project wuhan2020. - Run 
npm iin the root directory to install the dependencies. - Run 
npm run startin the root directory to start a local server, you will see the website in 'http://127.0.0.1:8080'. - Run 
npm run buildto build source code. - Verify your change locally: 
python -m SimpleHTTPServer 8000, when your python version is 3 use :python3 -m http.server 8000instead. 
If you have higher version of node installed, you may consider nvm to allow different versions of node coexisting on your machine.
- Follow the instructions to install nvm.
 - Run 
nvm install 10to install node 10.x. - Run 
nvm use 10to switch the working environment to node 10.x. - Run 
npm i docsite@wuhan2020 -gto install docsite for project wuhan2020. 
Make sure npm and docsite are configured in the environmet configuration of os . eg: /etc/profile or .bash_profile of Macos.
Then you are all set to run and build the website. Follow the build instruction above for the details.
- Add new .md file under docs/en-us or docs/zh-cn. Corresponding to Chinese file and English file , and the Chinese and English file names should be consistent.
 - Update site_config/docs.js, add a new entry to the blog in either en-us or zh-cn.
 - Run docsite start locally to verify the blog can be displayed correctly.
 - Send the pull request containing the .md and doc.js only.
 
- Add new .md file under docs/en-us/developers or docs/zh-cn/developers, the file name should end up with _dev.md. Note that the suffix _dev is necessary.
 - Update site_config/develop.js, add a new entry in either en-us or zh-cn.
 - Run docsite start locally to verify the article can be displayed correctly.
 - Send the pull request containing the *_dev.md and develop.js only.
 
- Open project.js directly and find the appropriate language block, such as "en-us".
 - Add a project entry under 
projects.listand please make sure that the entry containsimg,title,descriptionandlink. - Run docsite start locally to verify the project can be displayed correctly.
 - Send the pull request containing the project.js only.
 
- Add new .md file under blog/en-us or blog/zh-cn. Corresponding to Chinese file and English file , and the Chinese and English file names should be consistent.
 - Run docsite start locally to verify the blog can be displayed correctly.
 - Send the pull request containing the .md only.
 SEOconfig is required.
notice : Blog documents will be automatically sorted by time, without menu configuration. Set 'hidden' to 'true' for documents you don't want to display temporarily`.
the type is :
---
hidden: false
title: title
keywords: keywords1,keywords2
description: some description
author: author name
date: 2018-12-29
---
If you want to add a new language, such as Thai.
- Please append the element:  
{ value: 'th-th', text: 'ภาษาไทย' }to thelangListvariable ofsite_config/site.js. - Next, make a copy of 
en-us.jsini18n, and name itth-th.js. Now you can start translating phrases on the page. - Then please add directories named 
th-thindocsandblogdirectories. Here you can copy articles fromen-us, translate them, and then add them toth-th. 
sitemap.xml is generated automatically by sitemap-generator.js during the deployment process.
- If you want to add 
search in site,see https://docsite.js.org/zh-cn/docs/search.html. - This is docsite docs :https://docsite.js.org/zh-cn/docs/path.html.