Skip to content

Commit

Permalink
Merge pull request #319 from Monokaix/dev
Browse files Browse the repository at this point in the history
Add multi version doc support
  • Loading branch information
volcano-sh-bot authored Jan 23, 2024
2 parents 00d38a2 + 3a233b2 commit a404a1b
Show file tree
Hide file tree
Showing 92 changed files with 12,699 additions and 184 deletions.
12 changes: 10 additions & 2 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,13 @@ preserveTaxonomyNames = true
version_menu = "Documentation"

[[params.versions]]
name = "v1.x"
url = "/en/docs/"
name = "latest"
url = "/en/docs"

[[params.versions]]
name = "v1.8.2"
url = "/en/docs/v1-8-2"

[[params.versions]]
name = "v1.7.0"
url = "/en/docs/v1-7-0"
97 changes: 88 additions & 9 deletions config/_default/languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,23 @@
name = "生态"
url = "#required"
weight = 3

[zh.params]
version_menu = "文档"

[[zh.params.versions]]
name = "v1.x"
url = "/zh/docs/"
name = "latest"
url = "/zh/docs"

[[zh.params.versions]]
name = "v1.8.2"
url = "/zh/docs/v1-8-2"

[[zh.params.versions]]
name = "v1.7.0"
url = "/zh/docs/v1-7-0"

# Right Menu
# Right Menu

[[zh.menu.main_right]]
name = "<i class=\"fab fa-github\" style=\"color: #000000; font-size: 1rem; line-height: 1.25\"></i>"
Expand All @@ -64,7 +71,7 @@
url = "https://volcano-sh.slack.com"
weight = 30

# Documentation
# Documentation version latest

[[zh.menu.docs]]
name = "主页"
Expand All @@ -86,8 +93,6 @@
weight = 4
identifier = "zoology"



[[zh.menu.docs]]
name = "Scheduler"
weight = 5
Expand All @@ -99,11 +104,85 @@
identifier = "cli"

[[zh.menu.docs]]
name = "贡献"
name = "贡献"
weight = 7
identifier = "contribution"

# Documentation version v1.8.2

[[zh.menu.v1-8-2]]
name = "主页"
weight = 1
identifier = "home"

[[zh.menu.v1-8-2]]
name = "开始"
weight = 2
identifier = "getting-started"

[[zh.menu.v1-8-2]]
name = "概念"
weight = 3
identifier = "concepts"

[[zh.menu.v1-8-2]]
name = "生态"
weight = 4
identifier = "zoology"

[[zh.menu.v1-8-2]]
name = "Scheduler"
weight = 5
identifier = "scheduler"

[[zh.menu.v1-8-2]]
name = "CLI"
weight = 6
identifier = "cli"

[[zh.menu.v1-8-2]]
name = "贡献"
weight = 7
identifier = "contribution"

# Documentation version v1.7.0

[[zh.menu.v1-7-0]]
name = "主页"
weight = 1
identifier = "home"

[[zh.menu.v1-7-0]]
name = "开始"
weight = 2
identifier = "getting-started"

[[zh.menu.v1-7-0]]
name = "概念"
weight = 3
identifier = "concepts"

[[zh.menu.v1-7-0]]
name = "生态"
weight = 4
identifier = "zoology"

[[zh.menu.v1-7-0]]
name = "Scheduler"
weight = 5
identifier = "scheduler"

[[zh.menu.v1-7-0]]
name = "CLI"
weight = 6
identifier = "cli"

[[zh.menu.v1-7-0]]
name = "贡献"
weight = 7
identifier = "contribution"

# Blogs
# Blogs

[[zh.menu.posts]]
name = "讲解"
Expand Down
76 changes: 73 additions & 3 deletions config/_default/menus.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
url = "https://volcano-sh.slack.com"
weight = 30

# Documentation
# Documentation version latest

[[docs]]
name = "Home"
Expand All @@ -66,6 +66,7 @@
name = "Getting Started"
weight = 2
identifier = "getting-started"

[[docs]]
name = "Concepts"
weight = 3
Expand All @@ -76,8 +77,6 @@
weight = 4
identifier = "ecosystem"



[[docs]]
name = "Scheduler"
weight = 5
Expand All @@ -93,8 +92,79 @@
weight = 7
identifier = "contribution"

# Documentation version v1.8.2

[[v1-8-2]]
name = "Home"
weight = 1
identifier = "home"

[[v1-8-2]]
name = "Getting Started"
weight = 2
identifier = "getting-started"

[[v1-8-2]]
name = "Concepts"
weight = 3
identifier = "concepts"

[[v1-8-2]]
name = "Ecosystem"
weight = 4
identifier = "ecosystem"

[[v1-8-2]]
name = "Scheduler"
weight = 5
identifier = "scheduler"

[[v1-8-2]]
name = "CLI"
weight = 6
identifier = "cli"

[[v1-8-2]]
name = "Contribution"
weight = 7
identifier = "contribution"

# Documentation version v1.7.0

[[v1-7-0]]
name = "Home"
weight = 1
identifier = "home"

[[v1-7-0]]
name = "Getting Started"
weight = 2
identifier = "getting-started"

[[v1-7-0]]
name = "Concepts"
weight = 3
identifier = "concepts"

[[v1-7-0]]
name = "Ecosystem"
weight = 4
identifier = "ecosystem"

[[v1-7-0]]
name = "Scheduler"
weight = 5
identifier = "scheduler"

[[v1-7-0]]
name = "CLI"
weight = 6
identifier = "cli"

[[v1-7-0]]
name = "Contribution"
weight = 7
identifier = "contribution"

# Blogs

Expand Down
Loading

0 comments on commit a404a1b

Please sign in to comment.