Skip to content
Permalink
Browse files

fixes #62 add Chinese language for the document site

  • Loading branch information...
stevehu committed Apr 3, 2019
1 parent 2aab266 commit 5c820aa31d627b76b781730a2effc05f387f4b96
Showing 689 changed files with 262 additions and 2 deletions.
@@ -16,7 +16,6 @@ pluralizeListTitles = false
# We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below).
disableAliases = true


# Highlighting config (Pygments)
# It is (currently) not in use, but you can do ```go in a content file if you want to.
pygmentsCodeFences = true
@@ -109,7 +108,8 @@ params = ["categories", "tags"]
## Configuration for BlackFriday markdown parser: https://github.com/russross/blackfriday
[blackfriday]
plainIDAnchors = true
hrefTargetBlank = true
# See https://github.com/gohugoio/hugo/issues/2424
hrefTargetBlank = false
angledQuotes = false
latexDashes = true

@@ -309,3 +309,180 @@ params = ["categories", "tags"]
identifier = "github"
post = "external"
url = "https://github.com/networknt/light-4j"


### LANGUAGES ###

[languages]
[languages.en]
contentDir = "content/en"
languageName = "English"
weight = 1
[languages.zh]
contentDir = "content/zh"
languageName = "中文"
weight = 2


### LANGUAGE-SPECIFIC MENUS ###

# Chinese menus

[[languages.zh.menu.docs]]
name = "关于 Light"
weight = 1
identifier = "about"
url = "/zh/about/"

[[languages.zh.menu.docs]]
name = "入门"
weight = 5
identifier = "getting-started"
url = "/zh/getting-started/"

# Core languages.zh.menus

[[languages.zh.menu.docs]]
name = "架构"
weight = 10
identifier = "architecture"
post = "expanded"
url = "/zh/architecture/"

[[languages.zh.menu.docs]]
name = "设计"
weight = 15
identifier = "design"
post = "expanded"
url = "/zh/design/"

[[languages.zh.menu.docs]]
name = "横切关注点"
weight = 20
identifier = "concern"
url = "/zh/concern/"

[[languages.zh.menu.docs]]
name = "API风格"
weight = 25
identifier = "style"
url = "/zh/style/"

[[languages.zh.menu.docs]]
name = "基础设施服务"
weight = 30
identifier = "service"
url = "/zh/service/"

[[languages.zh.menu.docs]]
name = "工具"
weight = 35
post = "expanded"
identifier = "tool"
url = "/zh/tool/"

[[languages.zh.menu.docs]]
name = "实用库"
weight = 36
post = "expanded"
identifier = "library"
url = "/zh/library/"

[[languages.zh.menu.docs]]
name = "服务使用者"
weight = 38
identifier = "consumer"
url = "/zh/consumer/"

[[languages.zh.menu.docs]]
name = "开发"
weight = 39
identifier = "development"
url = "/zh/development/"

[[languages.zh.menu.docs]]
name = "部署"
weight = 40
identifier = "deployment"
url = "/zh/deployment/"

# LOW LEVEL ITEMS

[[languages.zh.menu.docs]]
name = "例子"
weight = 40
identifier = "example"
url = "/zh/example/"

[[languages.zh.menu.docs]]
name = "教程"
weight = 45
identifier = "tutorial"
url = "/zh/tutorial/"

[[languages.zh.menu.docs]]
name = "性能测试"
weight = 50
identifier = "benchmark"
url = "/zh/benchmark/"

[[languages.zh.menu.docs]]
name = "故障排除"
weight = 60
identifier = "troubleshooting"
url = "/zh/troubleshooting/"

[[languages.zh.menu.docs]]
name = "常见问题解答"
weight = 70
identifier = "faq"
url = "/zh/faq/"

[[languages.zh.menu.docs]]
name = "里程碑"
weight = 90
identifier = "milestone"
url = "/zh/milestone/"

[[languages.zh.menu.docs]]
name = "贡献"
weight = 100
post = "break"
identifier = "contribute"
url = "/zh/contribute/"

[[languages.zh.menu.global]]
name = "新闻"
weight = 1
identifier = "news"
url = "/zh/news/"

[[languages.zh.menu.global]]
name = "文档"
weight = 5
identifier = "docs"
url = "/zh/documentation/"

# Anything with a weight > 100 gets an external icon
[[languages.zh.menu.global]]
name = "社区"
weight = 150
icon = true
identifier = "community"
post = "external"
url = "https://discourse.gohugo.io/"

[[languages.zh.menu.global]]
name = "Reddit"
weight = 160
icon = true
identifier = "reddit"
post = "external"
url = "https://www.reddit.com/r/lightapi/"

[[languages.zh.menu.global]]
name = "GitHub"
weight = 200
identifier = "github"
post = "external"
url = "https://github.com/networknt/light-4j"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.