KubeVela documentations and website (https://kubevela.io).
Go to file
chwetion adab84649c Feat: update trigger how to docs
Signed-off-by: chwetion <chwetion@foxmail.com>
2022-02-07 02:02:25 +08:00
.github/workflows Chore: change oss endpoint 2022-01-21 19:49:14 +08:00
blog Docs: add jenkins tutorial 2022-01-14 15:56:10 +08:00
docs Feat: update trigger how to docs 2022-02-07 02:02:25 +08:00
hack Fix: change ACR to Harbor (#451) 2022-01-17 20:51:29 +08:00
i18n/zh Feat: update trigger how to docs 2022-02-07 02:02:25 +08:00
src Adjust Font Size (#337) 2021-10-13 17:21:17 +08:00
static Feat: support m1 install vela script (#457) 2022-01-20 11:36:56 +08:00
versioned_docs Feat: add workflow dashboard how to doc (#471) 2022-01-25 15:03:02 +08:00
versioned_sidebars Feat: add workflow dashboard how to doc (#471) 2022-01-25 15:03:02 +08:00
.gitignore Feat: update cli command and use vela up (#426) 2022-01-12 21:27:19 +08:00
LICENSE Initial commit 2021-03-25 10:15:03 +08:00
Makefile Feat: add ci check the link (#324) 2021-10-10 22:59:08 +08:00
README-zh.md Docs v1.1 new structure (#135) 2021-07-29 18:43:32 +08:00
README.md Update readme (#129) 2021-07-05 22:30:16 +08:00
TRUNCK_BRANCH.md add trunc readme (#128) 2021-07-05 19:55:44 +08:00
babel.config.js init 2021-03-25 17:06:33 +08:00
docusaurus.config.js Chore: add beian link 2022-01-21 19:25:28 +08:00
package-lock.json update docusaurus (#97) 2021-05-08 14:21:39 +08:00
package.json update search plugin (#99) 2021-05-14 13:33:30 +08:00
sidebars.js Feat: add workflow dashboard how to doc (#471) 2022-01-25 15:03:02 +08:00
versions.json Docs: release 1.2 version 2022-01-15 00:11:39 +08:00
yarn.lock sync commit a11ae2f95d3f1023e65a6355905da2f6852f7da1 from kubevela-v1.1.0-alpha.1 2021-05-15 04:26:39 +00:00

README.md

KubeVela Docs & Website

This repo contains the source code of Kubevela website and all of the docs for KubeVela. It's built by Docusaurus 2, a modern static website generator.

Welcome to join us and you are more than appreciated to contribute!

Contributing to KubeVela EN Docs

First, we have the source documentation of Kubevela website and it's written in English. Follow Localization README for contributing to other languages. Any files modifid here will trigger the check-docs Github action to run and validate the docs could be build successfully into the website. Any changes on these files(docs/en/*, docs/en/resource/*, sidebars.js) will be submitted to the corresponding locations of the repo kubevela.io. The Github-Action there will parse the document and publish it to the Kubevela Website automatically.

Please follow our guides below to learn how to write the docs in the right way.

Add or Update Docs

When you add or modify the docs, these three files(docs/en/, docs/en/resource/ and sidebars.js) should be taken into consideration.

  1. docs/en/, the main English documentation files are mainly located in this folder. All markdown files need to follow the format, that the title at the beginning should be in the following format:

    ---
    title: Title Name
    ---
    
    

    When you want to add a link refer to any .md files inside the docs(docs/en), you need to use relative path and remove the .md suffix. For example, the en/helm/component.md has a link refer to en/platform-engineers/definition-and-templates.md. Then the format should like:

    [the definition and template concepts](../platform-engineers/definition-and-templates)
    
  2. docs/en/resource/, image files are located in this folder. When you want to use link any image in documentation, you should put the image resources here and use a relative path like below:

     ![alt](./resources/concepts.png)
    
  3. sidebars.js, this file contain the navigation information of the KubeVela website. Please read the official docs of docusaurus to learn how to write sidebar.js.

       {
          type: 'category',
          label: 'Capability References',
          items: [
            // Note!: here must be add the path under "docs/en" 
            'developers/references/README',
            'developers/references/workload-types/webservice',
            'developers/references/workload-types/task',
            ...
          ],
        },
    

Localization README

Language
Chinese

Website Preview

Installation

yarn install

Local Development

yarn start

This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.

Build

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.