Git Product home page Git Product logo

devops-docs-sample's Introduction

Documents for KubeSphere.

Build Status

Develop

Setting up with git

If you choose this way, we recommend you to install some requisites

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

Check your requisites:

git --version
node -v
yarn -v

Then you are ready to go:

git clone https://github.com/kubesphere/docs.kubesphere.io.git

cd docs.kubesphere.io

yarn

yarn develop

Contribute

Tree of repo:

├── content                                         // documents directory
│   ├── express                                     // documents version
│   │   ├── en                                      // documents language 
│   │   │   └── KubeSphere-Installer-Guide.md       // document
│   │   └── zh-CN
│   │       └── KubeSphere-Installer-Guide.md
│   ├── toc_express_en.json                         // table of contents, define the page navigation
│   └── toc_express_zh-CN.json
├── src
└── static                                          // put document images here
    └── daemonset_create_1.png

If you want to edit the document, you can follow the ways below:

Add new version

  1. Create a new directory called the new version name under the content directory
cd content && mkdir version-xxxx
  1. Create subdirectories for each language you want to support
cd content/version-xxxx && mkdir zh-CN en
  1. Create navigation files for each language of the new version under the content directory
cd content

touch toc_version-xxx_en.json toc_version-xxx_zh-CN.json

Edit navigation

navigation file example

  • id: should match the format of {version}-{language}
  • chapters: nav items
  • title: nav title
  • entry: nav entry, path to the document to display
  • entries: sub navs
{
  "id": "express-zh-CN",
  "chapters": [
    {
      "title": "简介",
      "entry": "./express/zh-CN/basic.md"
    },
    {
      "title": "应用负载",
      "entries": [
        {
          "entry": "./express/zh-CN/manage-deployments.md"
        },
        {
          "entry": "./express/zh-CN/manage-statefulsets.md"
        },
        {
          "entry": "./express/zh-CN/manage-daemonsets.md"
        }
      ],
      "chapters": [
      ]
    }
  ]
}

Edit Document

document example

---
  title: 'document title, will show in nav'
---

  ## title 1

  content 1

  ![](/image.png) 

  this path will request ``/static/image.png``

  ## title 2

  ### subtitle 2.1
    content 2.1
  
  ### title 3

## will be transformed to an anchor of the page, and will show in the nav.

devops-docs-sample's People

Contributors

calvinyv avatar feynmanzhou avatar rayzhou2017 avatar runzexia 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.