forked from rust-lang-cn/rustwiki.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
124 lines (89 loc) · 2.69 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# The URL the site will be built for
base_url = "https://rustwiki.org"
# The basic information
title = "Rust 文档网"
description = "Rust 文档网是 Rust 官方文档中文翻译项目组创建的 Rust 文档在线知识库,涵盖了最全面的 Rust 的中文学习内容和编程入门资料,包括 Rust 官方或非官方文档的中文翻译,以及 Rust 中文翻译项目组制定的 Rust 翻译规范及标准。"
# Whether to automatically compile all Sass files in the sass directory
compile_sass = true
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = true
# When set to "true", a feed is automatically generated.
generate_feed = true
# The taxonomies to be rendered for the site and their configuration.
taxonomies = [
{name = "categories", paginate_by = 10, feed = true},
{name = "tags", feed = true}, # each tag will have its own feed
]
[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true
highlight_theme = "base16-ocean-light"
[extra]
# Put all your custom variables here
author = "rust-lang-cn"
language_code = "zh-CN"
copy = "© 2016-2021 rust-lang-cn"
################################ Chinese Version ###############################
# Header menus
[[extra.menu]]
name = "文档教程"
path = "/docs/"
[[extra.menu]]
name = "Wiki"
path = "/wiki/"
[[extra.menu]]
name = "博客"
path = "/blog/"
[[extra.menu]]
name = "常见问题"
path = "/faq/"
[[extra.menu]]
name = "Rust 编程交流"
url = "https://github.com/rust-lang-cn/rustwiki.org/discussions"
[[extra.menu]]
name = "GitHub"
url = "https://github.com/rust-lang-cn"
# Footer
[[extra.footer]]
name = "教程"
path = "/docs/"
[[extra.footer]]
name = "Wiki"
path = "/wiki/"
[[extra.footer]]
name = "官方文档"
path = "/zh-CN/"
[[extra.footer]]
name = "常见问题"
path = "/faq/"
[[extra.footer]]
name = "Rust 官网"
url = "https://www.rust-lang.org/zh-CN"
[[extra.footer]]
name = "Rust 交流"
url = "https://github.com/rust-lang-cn/rustwiki.org/discussions"
[[extra.footer]]
name = "GitHub"
url = "https://github.com/rust-lang-cn"
[[extra.footer]]
name = "English"
path = "/en/"
################################ English Version ###############################
[extra.en]
title = "Rust Wiki"
description = "The wiki documentation of the Rust programming language."
# Header menus
[[extra.en.menu]]
name = "GitHub"
url = "https://github.com/rust-lang-cn"
# Footer
[[extra.en.footer]]
name = "Rust"
url = "https://www.rust-lang.org"
[[extra.en.footer]]
name = "GitHub"
url = "https://github.com/rust-lang-cn"
[[extra.en.footer]]
name = "简体中文"
path = "/"