Giter Site home page Giter Site logo

openyurt.io's Introduction

OpenYurt Docs and Website

This repo contains the source code of OpenYurt website ใ€‚ This website is built using Docusaurus 2, a modern static website generator.

Contributing to OpenYurt Website

Add or Update Docs

  • Attention to Version:

    From OpenYurt v0.5.0, each version corresponds to a version of the docs. So you need to pay attention to the version when adding or updating the doc.

  • Attention to EN/ZH:

    Since the website supports both Chinese and English, the both languages need to be considered.

  • Attention to Format:

    Please refer to the existing format for the doc format.

For Historic Version (example: v0.5.0)

Take the docs of v0.5.0 version as an example, the following explains how to add or update the doc.

  1. Add or Update English doc

    The doc needs to be placed in versioned_docs/version-v0.5.0/. Images are placed in the directory static/img/docs/.

  2. Add or Update Chinese doc

    The doc needs to be placed in i18n/zh/docusaurus-plugin-content-docs/version-v0.5.0/. Images are placed in the directory static/img/docs/.

  3. Modify the directory structure

    If you add a doc or modify the doc directory structure, please modify the file versioned_sidebars/version-v0.5.0-sidebars.json to add document path or adjust directory structure.

    Then for file i18n/zh/docusaurus-plugin-content-docs/version-v0.5.0.json, please check whether categories in versioned_sidebars/version-v0.5.0-sidebars.json has corresponding translation.

For Next Version

Next Version is unreleased docs for OpenYurt Next Version.

The following explains how to add or update the doc.

  1. Add or Update English doc

    The doc needs to be placed in docs/. Images are placed in the directory static/img/docs/.

  2. Add or Update Chinese doc

    The doc needs to be placed in i18n/zh/docusaurus-plugin-content-docs/current/. Images are placed in the directory static/img/docs/.

  3. Modify the directory structure

    If you add a doc or modify the doc directory structure, please modify the file sidebars.js to add document path or adjust directory structure.

    Then for file i18n/zh/docusaurus-plugin-content-docs/current.json, please check whether categories in vsidebars.js has corresponding translation.

Add or Update Blogs

The following explains how to add or update the blog.

  1. Add or Update English blog

    The doc needs to be placed in blog/. Images are placed in the directory static/img/blog/.

  2. Add or Update Chinese blog

    The doc needs to be placed in i18n/zh/docusaurus-plugin-content-blog/. Images are placed in the directory static/img/blog/.

  3. Add or Update author info

    Please add author github information in blog/authors.yml.

Note: Please refer to the existing format for the blog format.

Local Build

Before submitting the pr, please build it locally to check whether the website work.

The following process can help you build locally.

step1: installation

$ yarn install

step2: build

$ yarn build
$ npm run serve

After building, you can visit http://localhost:3000/ to check.

openyurt.io's People

Contributors

dependabot[bot] avatar peeknut avatar rambohe-ch avatar szihai avatar windydayc avatar zyjhtangtang 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.