Coder Social home page Coder Social logo

jackjet / wuhan2020.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wuhan2020/wuhan2020.github.io

0.0 1.0 0.0 20.09 MB

Wuhan2020 Community Website

Home Page: https://community.wuhan2020.org.cn

License: MIT License

HTML 0.30% CSS 86.54% JavaScript 12.62% Python 0.54%

wuhan2020.github.io's Introduction

Wuhan2020 Community Official Website

CI wuhan2020.github.io deploy

All website material of https://community.wuhan2020.org.cn

Prerequisite

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.

Build instruction

  1. Run npm i docsite@wuhan2020 -g to install docsite for project wuhan2020.
  2. Run npm i in the root directory to install the dependencies.
  3. Run docsite start in the root directory to start a local server, you will see the website in 'http://127.0.0.1:8080'.
  4. Run docsite build to build source code.
  5. Verify your change locally: 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.

  1. Follow the instructions to install nvm
  2. Run nvm install v8.16.0 to install node v8
  3. Run nvm use v8.16.0 to switch the working environment to node v8
  4. Run 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.

How To Write Documents

Add a new doc

  1. 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.
  2. Update site_config/docs.js, add a new entry to the blog in either en-us or zh-cn.
  3. Run docsite start locally to verify the blog can be displayed correctly.
  4. Send the pull request containing the .md and doc.js only.

Add a new article for developers

  1. 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.
  2. Update site_config/develop.js, add a new entry in either en-us or zh-cn.
  3. Run docsite start locally to verify the article can be displayed correctly.
  4. Send the pull request containing the *_dev.md and develop.js only.

Add a new project showcase

  1. Open project.js directly and find the appropriate language block, such as "en-us".
  2. Add a project entry under projects.list and please make sure that the entry contains img, title, description and link.
  3. Run docsite start locally to verify the project can be displayed correctly.
  4. Send the pull request containing the project.js only.

Add a new blog

  1. 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.
  2. Run docsite start locally to verify the blog can be displayed correctly.
  3. Send the pull request containing the .md only.
  4. 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`

SEO

the type is :

---
hidden: false
title: title
keywords: keywords1,keywords2
description: some description
author: author name
date: 2018-12-29
---

How To Add One New Language

If you want to add a new language, such as Thai.

  1. Please append the element: { value: 'th-th', text: 'ภาษาไทย' } to the langlist variable of site config/site.js.
  2. Then please add directories named th-th in docsand blog directories , here you can add documents in this language .

notice : Of course, you can also see langlist variables in several other files. This is just a bottom line measure, and you don't have to modify it..

How To Add sitemap for SEO

Please see the page : https://docsite.js.org/en-us/docs/SEO.html

Others

wuhan2020.github.io's People

Contributors

alexlinsy avatar annacici avatar atena1118 avatar bengbeng233 avatar chenrui333 avatar cnyoki avatar damingerdai avatar dependabot[bot] avatar dz85 avatar frank-zsy avatar gindachen avatar hee-san avatar iltc avatar imgbot[bot] avatar lovepoem avatar lynklody avatar pandar1young avatar peaceiris avatar purple-force avatar rrfhouden avatar sataqiu avatar sciulli avatar shawnpanda avatar swmiao avatar techquery avatar tencats avatar thinkinnight avatar zhmushan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.