KubeSphere website and documentation 3.x https://kubesphere.io/
Go to file
FeynmanZhou 9eff466023 update readme
Signed-off-by: FeynmanZhou <pengfeizhou@yunify.com>
2020-11-21 23:36:33 +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 #459 from liuboaibc/update-copy-code-image 2020-11-04 21:38:54 +08:00
config add google tag 2020-11-05 18:24:27 +08:00
content Update configmap 2020-11-21 22:01:15 +08:00
data fix some zh-cn website links 2020-11-20 13:46:44 +08:00
i18n fix some zh-cn website links 2020-11-20 13:46:44 +08:00
layouts Merge pull request #530 from liuboaibc/fix-search 2020-11-16 17:48:33 +08:00
localization_style_guides Add Simplified Chinese loc guide 2020-09-21 13:50:12 +08:00
static Update configmap 2020-11-21 22:01:15 +08:00
.gitignore first-build 2020-04-29 15:35:58 +08:00
Dockerfile fix go vanity urls 2020-07-02 15:26:02 +08:00
KubeSphere Documentation Style Guide.md Update style guide 2020-10-26 15:51:40 +08:00
LICENSE Update license info 2020-05-27 15:26:09 +08:00
OWNERS feature: add owners 2020-09-21 18:15:49 +08:00
README.md update readme 2020-11-21 23:36:33 +08:00
localize-website.md update readme 2020-11-21 23:36:33 +08:00
netlify.toml fix preview 2 2020-05-28 12:40:30 +08:00
nginx.conf fix go vanity urls 2020-07-02 15:26:02 +08:00

KubeSphere Website

This project uses Hugo to build the new website for KubeSphere.

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

Click Details as shown in the image below, which will direct you to the website homepage. Navigate to the part you want to preview.

If the button above does not appear, 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

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.