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.
npm i docsite@wuhan2020 -g
to install docsite for project wuhan2020.npm i
in the root directory to install the dependencies.npm run start
in the root directory to start a local server, you will see the website in 'http://127.0.0.1:8080'.npm run build
to build source code.python -m SimpleHTTPServer 8000
, when your python version is 3 use :python3 -m http.server 8000
instead.If you have higher version of node installed, you may consider nvm
to allow different versions of node
coexisting on your machine.
nvm install 10
to install node 10.x.nvm use 10
to switch the working environment to node 10.x.npm i docsite@wuhan2020 -g
to 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.
projects.list
and please make sure that the entry contains img
, title
, description
and link
.SEO
config 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.
{ value: 'th-th', text: 'ภาษาไทย' }
to the langList
variable of site_config/site.js
.en-us.js
in i18n
, and name it th-th.js
. Now you can start translating phrases on the page.th-th
in docs
and blog
directories. Here you can copy articles from en-us
, translate them, and then add them to th-th
. sitemap.xml
is generated automatically by sitemap-generator.js
during the deployment process.
search in site
,see https://docsite.js.org/zh-cn/docs/search.html.