diff --git a/config.toml b/config.toml index 9b69117e9cd16bb15b37b13212343a2cd9ad43b6..76a6b9838fd867bd75a87b26e6192cfd24b2e3eb 100644 --- a/config.toml +++ b/config.toml @@ -224,33 +224,48 @@ paginate = 10 hasChidren = true [[languages.zh.menu.main]] - identifier = "get-start" - name = "快速入门" + identifier = "developer" + name = "开发指南" parent = "docs" - url = "/zh/docs/home.html" + url = "/zh/docs/home.html#" weight=1 [[languages.zh.menu.main]] - identifier = "tutorials" - name = "教程" + identifier = "release" + name = "发行说明" parent = "docs" - url = "/zh/docs/home.html" + url = "/zh/docs/releasenotes/release_notes.html" weight = 2 [[languages.zh.menu.main]] - identifier = "development" - name = "开发" + identifier = "install" + name = "安装指南" parent = "docs" - url = "/zh/docs/home.html" + url = "/zh/docs/installation/home.html" weight=3 [[languages.zh.menu.main]] - identifier = "reference" - name = "参考" + identifier = "management" + name = "管理员指南" parent = "docs" - url = "/zh/docs/home.html" + url = "/zh/docs/administration/administration.html" weight = 4 +[[languages.zh.menu.main]] + identifier = "container" + name = "容器用户指南" + parent = "docs" + url = "/zh/docs/container/container.html" + weight = 5 + +[[languages.zh.menu.main]] + identifier = "vitrual" + name = "虚拟化用户指南" + parent = "docs" + url = "/zh/docs/virtualization/virtualization.html" + weight = 6 + + [[languages.zh.menu.main]] identifier = "download" name = "下载" diff --git a/i18n/en.toml b/i18n/en.toml index 5f965438500cd6f6d8ed48c8585076e70873d687..db54b56c3e858d3015dcc6fdf9454fbc327ddd14 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -32,6 +32,11 @@ other = "NEWS" [main_nav_news_name] other = "News" +# DOC page +[doc_git_footer] +other = "Edit this page" + + # 404 page [404_title] other = "Page Not Found" @@ -39,4 +44,4 @@ other = "Page Not Found" other = "Go to Homepage" [docs_nav_menu_name] -other = "MENU" \ No newline at end of file +other = "MENU" diff --git a/i18n/zh.toml b/i18n/zh.toml index 9b15005fdc0c546e051414e0f98e6c64b896a0db..bd9390496e1df0bc5b23d44a4fca265d318f9d17 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -32,6 +32,10 @@ other = "新闻" [main_nav_news_name] other = "新闻" +# DOC page +[doc_git_footer] +other = "编辑此页" + # 404 page [404_title] other = "没有找到页面" @@ -39,4 +43,4 @@ other = "没有找到页面" other = "返回主页" [docs_nav_menu_name] -other = "目录" \ No newline at end of file +other = "目录" diff --git a/themes/project/layouts/partials/docs/git-footer.html b/themes/project/layouts/partials/docs/git-footer.html index ab04d9b8cc013c12c0ff65cd23b28644b148f52f..07dd59225567f86150c8537bd0d7217e9aa234c2 100644 --- a/themes/project/layouts/partials/docs/git-footer.html +++ b/themes/project/layouts/partials/docs/git-footer.html @@ -10,8 +10,8 @@ {{ end }} {{ with .Site.Params.BookEditPath }}
- {{ if $.File }} - Edit Edit this page + {{ if $.File }} + Edit{{ i18n "doc_git_footer"}} {{ end }}
{{ end }}