mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
commit
17fba71f47
74
README.md
74
README.md
|
|
@ -1,2 +1,76 @@
|
|||
# website
|
||||
kubesphere website
|
||||
|
||||
## Contribute
|
||||
|
||||
### 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
|
||||
```
|
||||
|
||||
### Running the website locally
|
||||
|
||||
hugo version: hugo_extended_0.70.0+, you can install Hugo from [hugo releases](https://help.github.com/en/desktop/contributing-to-projects/creating-an-issue-or-pull-request#creating-a-new-pull-request)
|
||||
|
||||
When you have installed Hugo, then run:
|
||||
|
||||
```
|
||||
hugo server -D
|
||||
```
|
||||
|
||||
### Open a pull request
|
||||
|
||||
Open a [pull request (PR)](https://help.github.com/en/desktop/contributing-to-projects/creating-an-issue-or-pull-request#creating-a-new-pull-request) to add a localization to the repository.
|
||||
|
||||
## Localizing
|
||||
|
||||
### Find your two-letter language code
|
||||
|
||||
First, find your localization’s two-letter country code. For example, the two-letter code for Turkey is tr. then, open `config.toml`, change the menu which language you want to translate。
|
||||
|
||||
```
|
||||
[languages.tr]
|
||||
weight = 3
|
||||
contentDir = "content/tr" // there should be changed
|
||||
languageCode = "tr-TR" // there should be changed
|
||||
languageName = "Türk" // there should be changed
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
weight = 1
|
||||
name = "Why KubeSphere" // there should be translated
|
||||
URL = "reason"
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
weight = 2
|
||||
name = "Scenario" // there should be translated
|
||||
hasChildren = true
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Scenario" // there should be translated
|
||||
name = "Multi-cluster" // there should be translated
|
||||
URL = "multi-cluster"
|
||||
weight = 1
|
||||
|
||||
```
|
||||
|
||||
### Add a new localization directory
|
||||
|
||||
Add a language-specific subdirectory to the content folder in the repository. For example, the two-letter code for German is de. It should be named as what you set in `contentDir` in the previous step
|
||||
|
||||
### Translating content
|
||||
|
||||
Localizations must be based on the English files in `content/en` . Some attributes which represent some resource paths do not need to be translated,like `icon`,`image` ,etc.
|
||||
|
||||
### Site strings in i18n
|
||||
|
||||
Localizations must include the contents of i18n/en.yaml in a new language-specific file.
|
||||
|
||||
### Translating data
|
||||
|
||||
Localizations must be based on the English files in `data/en` .
|
||||
|
|
|
|||
122
config.toml
122
config.toml
|
|
@ -248,4 +248,126 @@ name = "Community"
|
|||
parent = "Community"
|
||||
name = "Partner"
|
||||
URL = "partner"
|
||||
weight = 3
|
||||
|
||||
|
||||
|
||||
[languages.tr]
|
||||
weight = 3
|
||||
contentDir = "content/tr"
|
||||
languageCode = "tr-TR"
|
||||
languageName = "Türk"
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
weight = 1
|
||||
name = "Why KubeSphere"
|
||||
URL = "reason"
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
weight = 2
|
||||
name = "Scenario"
|
||||
hasChildren = true
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Scenario"
|
||||
name = "Multi-cluster"
|
||||
URL = "multi-cluster"
|
||||
weight = 1
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Scenario"
|
||||
name = "DevOps"
|
||||
URL = "devOps"
|
||||
weight = 2
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Scenario"
|
||||
name = "Network"
|
||||
URL = "network"
|
||||
weight = 3
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Scenario"
|
||||
name = "Service Mesh"
|
||||
URL = "service-mesh"
|
||||
weight = 4
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Scenario"
|
||||
name = "Storage"
|
||||
URL = "storage"
|
||||
weight = 5
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Scenario"
|
||||
name = "AppStore"
|
||||
URL = "app-store"
|
||||
weight = 6
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Scenario"
|
||||
name = "Multi-tenancy"
|
||||
URL = "multi-tenancy"
|
||||
weight = 7
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Scenario"
|
||||
name = "Observability"
|
||||
URL = "observability"
|
||||
weight = 8
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
weight = 3
|
||||
name = "Resources"
|
||||
hasChildren = true
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Resources"
|
||||
name = "Open Source Projects"
|
||||
URL = "projects"
|
||||
weight = 1
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Resources"
|
||||
name = "KubeCon & QCon"
|
||||
URL = "conferences"
|
||||
weight = 2
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Resources"
|
||||
name = "Technology Blogs"
|
||||
URL = "blogs"
|
||||
weight = 3
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Resources"
|
||||
name = "Video Resources"
|
||||
URL = "videos"
|
||||
weight = 4
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
weight = 4
|
||||
name = "Documentation"
|
||||
URL = "docs"
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
weight = 5
|
||||
hasChildren = true
|
||||
name = "Community"
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Community"
|
||||
name = "Contribution"
|
||||
URL = "contribution"
|
||||
weight = 1
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Community"
|
||||
name = "Case Studies"
|
||||
URL = "case"
|
||||
weight = 2
|
||||
|
||||
[[languages.tr.menu.main]]
|
||||
parent = "Community"
|
||||
name = "Partner"
|
||||
URL = "partner"
|
||||
weight = 3
|
||||
|
|
@ -7,7 +7,7 @@ css: scss/index.scss
|
|||
|
||||
section1:
|
||||
title: KubeSphere Container Platform
|
||||
topic: The Kubernetes Platform, tailored to the hybrid cloud
|
||||
topic: The Kubernetes Platform, tailored for the hybrid cloud
|
||||
content: KubeSphere is a distributed operating system providing cloud native stack with Kubernetes as its kernel, and aims to be plug-and-play architecture for third-party applications seamless integration to boost its ecosystem.
|
||||
btnContent1: Install on Kubernetes
|
||||
btnContent2: Install on Linux
|
||||
|
|
|
|||
|
|
@ -0,0 +1,159 @@
|
|||
---
|
||||
title:
|
||||
description:
|
||||
|
||||
|
||||
css: scss/index.scss
|
||||
|
||||
section1:
|
||||
title:
|
||||
topic:
|
||||
content:
|
||||
btnContent1:
|
||||
btnContent2:
|
||||
|
||||
section2:
|
||||
title:
|
||||
content:
|
||||
children:
|
||||
- name:
|
||||
icon: /images/home/open-source.svg
|
||||
content:
|
||||
|
||||
- name:
|
||||
icon: /images/home/easy-to-run.svg
|
||||
content:
|
||||
|
||||
- name:
|
||||
icon: /images/home/feature-rich.svg
|
||||
content:
|
||||
|
||||
- name:
|
||||
icon: /images/home/modular-pluggable.svg
|
||||
content:
|
||||
|
||||
|
||||
|
||||
section3:
|
||||
title:
|
||||
content:
|
||||
children:
|
||||
- name:
|
||||
content:
|
||||
icon: /images/home/7.svg
|
||||
children:
|
||||
- content:
|
||||
- content:
|
||||
- content:
|
||||
- content:
|
||||
|
||||
- name:
|
||||
content:
|
||||
icon: /images/home/74.png
|
||||
children:
|
||||
- content:
|
||||
- content:
|
||||
- content:
|
||||
- content:
|
||||
|
||||
- name:
|
||||
content:
|
||||
icon: /images/home/71.svg
|
||||
children:
|
||||
- content:
|
||||
- content:
|
||||
- content:
|
||||
- content:
|
||||
|
||||
section4:
|
||||
title:
|
||||
content:
|
||||
children:
|
||||
- name:
|
||||
icon: /images/home/provisioning-kubernetes.svg
|
||||
content:
|
||||
|
||||
- name:
|
||||
icon: /images/home/k-8-s-resource-management.svg
|
||||
content:
|
||||
|
||||
- name:
|
||||
icon: /images/home/multi-tenant-management.svg
|
||||
content:
|
||||
|
||||
features:
|
||||
- name:
|
||||
icon: /images/home/store.svg
|
||||
content:
|
||||
color: grape
|
||||
|
||||
- name:
|
||||
icon: /images/home/service.svg
|
||||
content:
|
||||
color: red
|
||||
|
||||
- name:
|
||||
icon: /images/home/rich.svg
|
||||
content:
|
||||
color: green
|
||||
|
||||
- name:
|
||||
icon: /images/home/dev-ops.svg
|
||||
content:
|
||||
color: orange
|
||||
|
||||
- name:
|
||||
icon: /images/home/multiple.svg
|
||||
content:
|
||||
color: grape
|
||||
|
||||
- name:
|
||||
icon: /images/home/network.svg
|
||||
content:
|
||||
color: green
|
||||
|
||||
- name:
|
||||
icon: /images/home/management.svg
|
||||
content:
|
||||
color: orange
|
||||
|
||||
section5:
|
||||
title:
|
||||
frontEnd:
|
||||
title:
|
||||
project:
|
||||
children:
|
||||
- icon: /images/home/mobx.jpg
|
||||
- icon: /images/home/koa.jpg
|
||||
- icon: /images/home/react.png
|
||||
|
||||
backEnd:
|
||||
title:
|
||||
project:
|
||||
group:
|
||||
- name:
|
||||
- name:
|
||||
- name:
|
||||
- name:
|
||||
|
||||
|
||||
section6:
|
||||
title:
|
||||
content:
|
||||
children:
|
||||
- icon: /images/home/section6-1.jpg
|
||||
- icon: /images/home/section6-2.jpg
|
||||
- icon: /images/home/section6-3.jpg
|
||||
- icon: /images/home/section6-4.jpg
|
||||
- icon: /images/home/section6-5.jpg
|
||||
- icon: /images/home/section6-6.jpg
|
||||
- icon: /images/home/section6-7.jpg
|
||||
- icon: /images/home/section6-8.jpg
|
||||
- icon: /images/home/section6-9.jpg
|
||||
- icon: /images/home/section6-10.jpg
|
||||
btnContent:
|
||||
btnLink:
|
||||
link:
|
||||
linkContent:
|
||||
image: /images/home/certification.jpg
|
||||
---
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title:
|
||||
|
||||
css: scss/case.scss
|
||||
|
||||
---
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title:
|
||||
|
||||
css: scss/contribution.scss
|
||||
|
||||
---
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title:
|
||||
|
||||
css: scss/partner.scss
|
||||
|
||||
---
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
footer:
|
||||
list:
|
||||
- title:
|
||||
list:
|
||||
- content:
|
||||
link: ''
|
||||
|
||||
- content:
|
||||
link: ''
|
||||
|
||||
- content:
|
||||
link: ''
|
||||
|
||||
- content:
|
||||
link: ''
|
||||
|
||||
- content:
|
||||
link: ''
|
||||
|
||||
- content:
|
||||
link: ''
|
||||
- title:
|
||||
list:
|
||||
- content:
|
||||
link:
|
||||
- content:
|
||||
link:
|
||||
- content:
|
||||
link:
|
||||
- content:
|
||||
link:
|
||||
- title:
|
||||
list:
|
||||
- content:
|
||||
link: ''
|
||||
- content:
|
||||
link: ''
|
||||
- content:
|
||||
link: ''
|
||||
- content:
|
||||
link: ''
|
||||
- title:
|
||||
list:
|
||||
- content:
|
||||
link:
|
||||
- content:
|
||||
link:
|
||||
- content:
|
||||
link:
|
||||
- content:
|
||||
link:
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
- id: introduction2
|
||||
translation: KubeSphere®️ 2020 All Rights Reserved.
|
||||
- id: introduction3
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
- id: introduction2
|
||||
translation: ''
|
||||
Loading…
Reference in New Issue