KubeSphere website and documentation 3.x https://kubesphere.io/
Go to file
Zhengyi Lai ed96928bf6
Add an automatic redirection for a lower version
Signed-off-by: Zhengyi Lai <zheng1@kubesphere.io>
2024-09-11 19:27:07 +08:00
.github/workflows Update build.yml 2020-11-13 10:50:17 +08:00
archetypes first-build 2020-04-29 15:35:58 +08:00
assets Merge pull request #2001 from Lruler/feature/add-MultiCluster-page 2022-06-13 10:55:44 +08:00
config fix display issues 2022-08-29 11:47:03 +08:00
content Installation guide for kubesphere 3.2.1 on minikube in on-prem-kubernetes folder 2022-07-09 22:04:00 +05:30
data Corrected broken links of porterlb.io 2022-05-26 16:44:45 +05:30
i18n fix: experience account password is incorrect 2022-05-18 06:56:26 +00:00
layouts Add an automatic redirection for a lower version 2024-09-11 19:27:07 +08:00
localization_style_guides Update enable pluggable components docs. 2021-11-01 11:21:56 +08:00
static update the page of live 2022-06-20 18:49:41 +08:00
.gitignore first-build 2020-04-29 15:35:58 +08:00
.hugo_build.lock Add a kubekey internal loadbalancer usage doc in zh docs 2021-11-18 13:44:29 +08:00
Dockerfile fix go vanity urls 2020-07-02 15:26:02 +08:00
KubeSphere Documentation Style Guide.md Update upgrade docs and download links. 2021-11-01 11:56:56 +08:00
LICENSE Update license info 2020-05-27 15:26:09 +08:00
OWNERS add two approver to the OWNER list, update the hearder to v3.2.0 2021-11-05 13:13:05 +08:00
README.md Update readme 2021-05-07 10:47:40 +08:00
localize-website.md update readme 2020-11-21 23:36:33 +08:00
netlify.toml update hugo 2022-06-02 00:37:41 +03:00
nginx.conf fix go vanity urls 2020-07-02 15:26:02 +08:00
porter.md correcting links 2022-05-28 12:58:01 +05:30

KubeSphere Website

This repository contains two branches that we are working on: master and release-3.0.

The master branch contains KubeSphere Doc 3.1 which has been released together with KubeSphere 3.1. The frontend website currently displays content based on the master branch. If the pull request you submit applies to both the master branch and the release-3.0 branch, use the command cherry-pick to submit the same pull request.

This project uses Hugo to build the KubeSphere website.

Contribute

Contributions of any kind are welcome! Thanks goes to these wonderful contributors, they made our community and product grow fast.

Fork and clone the repo

First, create your own fork of the repository.

Then, clone your fork and enter into it:

git clone https://github.com/<username>/website
cd website

Compiling and preview the website

You will need to build the website in order to publish it as static content.

Install Hugo extended

Go to the Hugo releases place and download the hugo_extended version that better suits your OS (version 0.70+).

EXTENDED version is MANDATORY to properly build the static content!

Note: If you install Hugo on Windows, you need to add environment variables for the exe file of Hugo. For example, you place the exe file in the path C:\Hugo\bin. You have to add this path in environment variables. Execute hugo version to view if the installation is successful.

Running the website locally

hugo version: hugo_extended_0.70.0+, you can install Hugo from hugo releases

When you have installed Hugo, then run:

hugo server -D

Now you can preview the website in your browser using http://localhost:1313/.

Open a pull request

Open a pull request (PR) to add a localization to the repository. Please use DCO sign-off when you submit a pr. Refer to the command below (add -s):

git commit -s -m "xxx"

Preview a pull request

Go to Files changed tab. Click the three dots of the md file you want to preview as shown below. Please note that this method can only give you a preview on the GitHub instead of on the website.

view-file

Cherry Pick a Commit

The command cherry-pick allows you to pick a commit in a branch and integrate it into another branch. For example, we are working on both the master branch and the release-3.0 branch. If the pull request you submit to the master branch applies to the release-3.0 branch as well:

In the master branch, find and copy the commit ID of your pull request.

git log

Checkout to the release-3.0 branch:

git checkout release-3.0

Rebase first:

git pull --rebase upstream release-3.0

Use the branch release-3.0 to checkout a new branch:

git checkout -b test

Cherry pick:

git cherry-pick <CommitID>

Push it:

git push -u origin test

When you submit the pull request, make sure you submit it to the release-3.0 branch.

Localizing

You are welcome to help the KubeSphere community to support more languages, join us to contribute to the localization, see Localizing the website for the instruction.

Build and Publish the website (Optional)

Config your domain

Edit the file config\_default\config.toml and modify the var baseURL (at the first line) in order to set your own domain. It will be hardcoded in the static files.

baseURL = "https://kubesphere.es"

Build the static content

Just run hugo without parameters.

hugo

                   | EN  | ZH  | TR
-------------------+-----+-----+------
  Pages            |  55 |  65 |  39
  Paginator pages  |   0 |   0 |   0
  Non-page files   |   0 |   0 |   0
  Static files     | 375 | 375 | 375
  Processed images |   0 |   0 |   0
  Aliases          |   1 |   0 |   0
  Sitemaps         |   2 |   1 |   1
  Cleaned          |   0 |   0 |   0

Total in 2396 ms

Get the already built static content

You will find the previously generated content in the public directory.