Skip to content

Commit e40f641

Browse files
kattnifreakboy3742
andauthored
Config updates for website migration compatibility. (#57)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
1 parent e834f52 commit e40f641

11 files changed

Lines changed: 103 additions & 6 deletions

docs/config.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ extra:
4747
- icon: fontawesome/brands/discord
4848
link: https://beeware.org/bee/chat/
4949
name: BeeWare on Discord
50+
generator: false
5051

5152
theme:
5253
name: material
@@ -58,6 +59,8 @@ theme:
5859
- toc.follow
5960
- navigation.indexes
6061
- navigation.footer
62+
- navigation.tabs
63+
- navigation.tabs.sticky
6164
- search.suggest
6265
- search.highlight
6366
- search.share
@@ -84,20 +87,58 @@ theme:
8487
name: Switch to system preference
8588

8689
markdown_extensions:
90+
# PyMdown Extensions
8791
pymdownx.highlight: {}
8892
pymdownx.superfences: {}
89-
pymdownx.blocks.admonition: {}
9093
pymdownx.blocks.caption: {}
94+
pymdownx.blocks.admonition: # Enables admonitions.
95+
types:
96+
- note
97+
- abstract
98+
- info
99+
- tip
100+
- success
101+
- question
102+
- warning
103+
- failure
104+
- danger
105+
- bug
106+
- example
107+
- quote
108+
pymdownx.blocks.details: # Enables collapsible content.
109+
types:
110+
- {name: details-note, class: note}
111+
- {name: details-abstract, class: abstract}
112+
- {name: details-info, class: info}
113+
- {name: details-tip, class: tip}
114+
- {name: details-success, class: success}
115+
- {name: details-question, class: question}
116+
- {name: details-warning, class: warning}
117+
- {name: details-failure, class: failure}
118+
- {name: details-danger, class: danger}
119+
- {name: details-bug, class: bug}
120+
- {name: details-example, class: example}
121+
- {name: details-quote, class: quote}
91122
pymdownx.blocks.tab:
92123
alternate_style: true
124+
pymdownx.magiclink: # Among other things, enables GitHub shorthand references.
125+
provider: "github"
126+
user: "beeware"
127+
repo: "toga"
128+
repo_url_shortener: true
129+
repo_url_shorthand: true
130+
normalize_issue_symbols: true
93131
pymdownx.snippets:
94132
base_path: ["docs"]
95133
url_download: true
96134
check_paths: true
135+
# Python Markdown Extensions
136+
attr_list: {}
137+
smarty: # Enables easy em and en dashes.
138+
smart_quotes: false
97139
toc:
98140
permalink: true
99141
title: On this page
100-
attr_list: {}
101142

102143
plugins:
103144
search: {}

docs/mkdocs.de.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ theme:
88

99
extra:
1010
translation_type: machine
11+
language_url: de/
12+
header:
13+
About: Über
14+
Documentation: Dokumentation
15+
Community: Verbund
16+
Contributing: Mithelfen
17+
News: Neuigkeiten
18+
Sponsor: Fördern

docs/mkdocs.en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ docs_dir: en
55

66
extra:
77
translation_type: original
8+
header: {}

docs/mkdocs.es.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ theme:
88

99
extra:
1010
translation_type: machine
11+
language_url: es/
12+
header:
13+
About: Acerca
14+
Documentation: Documentación
15+
Community: Comunidad
16+
Contributing: Contribuir
17+
News: Noticias
18+
Sponsor: Auspiciar

docs/mkdocs.fr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ theme:
88

99
extra:
1010
translation_type: machine
11+
language_url: fr/
12+
header:
13+
About: À Propos
14+
Documentation: Documentation
15+
Community: Communauté
16+
Contributing: Contribuer
17+
News: Nouvelles
18+
Sponsor: Parrainer

docs/mkdocs.it.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ theme:
88

99
extra:
1010
translation_type: machine
11+
language_url: it/
12+
header:
13+
About: Circa
14+
Documentation: Documentazione
15+
Community: Comunità
16+
Contributing: Contribuire
17+
News: Notizie
18+
Sponsor: Sponsorizzare

docs/mkdocs.pt.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ theme:
88

99
extra:
1010
translation_type: machine
11+
language_url: pt/
12+
header:
13+
About: Sobre
14+
Documentation: Documentação
15+
Community: Comunidade
16+
Contributing: Contribuir
17+
News: News
18+
Sponsor: Patrocinar

docs/mkdocs.zh_CN.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
INHERIT: config.yml
22
site_name: BeeWare Tutorial
3-
site_url: https://tutorial.beeware.org/zh_CN
3+
site_url: https://tutorial.beeware.org/zh-cn
44
docs_dir: zh_CN
55

66
theme:
77
language: zh
88

99
extra:
1010
translation_type: machine
11+
language_url: zh-cn/
12+
header:
13+
About: 关于
14+
Documentation: 文档
15+
Community: 社区
16+
Contributing: 贡献
17+
News: 新闻
18+
Sponsor: 赞助

docs/mkdocs.zh_TW.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
INHERIT: config.yml
22
site_name: BeeWare Tutorial
3-
site_url: https://tutorial.beeware.org/zh_TW
3+
site_url: https://tutorial.beeware.org/zh-tw
44
docs_dir: zh_TW
55

66
theme:
77
language: zh-TW
88

99
extra:
1010
translation_type: machine
11+
language_url: zh-tw/
12+
header:
13+
About: 關於
14+
Documentation: 文件
15+
Community: 社群
16+
Contributing: 貢獻
17+
News: 新聞
18+
Sponsor: 贊助

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ exclude = ["CODE_OF_CONDUCT.md"]
3333
respect-gitignore = true
3434

3535
# Disable rules:
36-
# MD013: Enforces line length
3736
# MD014: Forces commands in codeblocks to show output
3837
disable = ["MD014",]
3938

0 commit comments

Comments
 (0)