Giter Site home page Giter Site logo

wenhuwang / docs.kubesphere.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kubesphere-retired/docs.kubesphere.io

0.0 1.0 0.0 295.78 MB

KubeSphere Documents

Home Page: https://docs.kubesphere.io

License: Apache License 2.0

JavaScript 53.08% CSS 46.58% Dockerfile 0.05% Shell 0.29%

docs.kubesphere.io's Introduction

Documentation for KubeSphere.

Netlify Status

Build Status

Prerequisites

We recomend you to install the following 3 dependent softwares:

  • git
  • node.js
  • yarn (or npm, we recommend yarn)

Then check if these prerequisites have been installed successfully.

$ git --version
git version 2.21.0
$ node -v
v10.15.1
$ yarn -v
1.15.2

Fork it

Clone to your local

Then you are ready to go:

$ git clone https://github.com/{$YOUR_GITHUB_ACCOUNT}/docs.kubesphere.io.git

Compile it locally

$ cd docs.kubesphere.io

$ yarn

$ yarn develop

Then you can preview the documentation website using http://localhost:8000/.

Contribute

All of documents are left in content/language/folder, see the tree of this documentation repo:

├── content                                       // documents directory
│   ├── en                                   // documents language - English version
│   │   └── quick-start                      // document folder
│   │           └── admin-quick-start.md     // document
│   │           └── xxxx.md
│   ├── zh-CN                                // documents language - Chinese version
│   │   └── quick-start                      // document folder
│   │           └── admin-quick-start.md     // document
│   │           └── xxxx.md
│   ├── toc_en.json                         // table of contents, define the page navigation, this json file is for English version of navigation.
│   └── toc_zh-CN.json                      // this json file is for Chinese version of navigation.
├── src                                          // source code

Contribute to documentation

We hope for your contribution to KubeSphere documentation, also we believe you are able to improve the current docs, add your practical guides, or fix mistaken words, it's quite easy to commit your first PR to this repository by following these steps.

Modify document

For example, if we want to modify a quick start guide (e.g. admin-quick-start.md) as following, take a look at the URL of this guide, the path /en/quick-start/admin-quick-start/ means the markdown file location, thus you'll be able to edit it within this repo locally.

Expand the path /en/quick-start/admin-quick-start/, then edit the admin-quick-start.md, save it after modification, and then using git to commit your changes to remote.

Commit your PR

$ git add .                                 // Add your local changes
$ git commit -s -m "comment your changes"  // Commit with your comment
$ git push origin master                  // Push to your remote repo

After above steps done, open a new Pull Request in GitHub:

When PR has been created, you should preview your changes and verify it in the Netlify notification as following, click the Details button near Deploy preview ready! to preview your changes in browser.

Edit navigation

Navigation is corresponding to the directory on the left, if you'd like to add a new document or modify the title within directory, just modify the content in content/toc_en.json or content/toc_zh-CN.json.

Attention: make sure you can compile it successfully using command yarn develop if you change the navigation json file.

navigation file example

  • chapters: nav items
  • title: nav title
  • entry: nav entry, path to the document to display
  • entries: sub navs
···
"version": "v2.1",
"lang": "en",
"chapters": [
  {
    "title": "Release Notes",
    "icon": "/product.svg",
    "desc": "Introduce the new features, capabilities and updates for the releases",
    "chapters": [
      {
        "title": "Release Notes - 2.1.0",
        "entry": "/en/release/release-v210",
        "tag": "Latest"
      },
      {
        "title": "Release Notes - 2.0.2",
        "entry": "/en/release/release-v202"
      },
      {
        "title": "Release Notes - 2.0.1",
        "entry": "/en/release/release-v201"
      },
      {
        "title": "Release Notes - 2.0.0",
        "entry": "/en/release/release-v200"
      }
    ]
  }

docs.kubesphere.io's People

Contributors

bigfatdog avatar calvinyv avatar carlosfengv avatar christian-rau avatar dependabot[bot] avatar ellaye avatar feynmanzhou avatar forest-l avatar hlwanghl avatar leoendless avatar leowucn avatar rayzhou2017 avatar scenerycm avatar shaowenchen avatar shizgchina avatar smileycindy avatar wanjunlei avatar wansir avatar zheng1 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.