Skip to content

Commit 13c7ce7

Browse files
authored
Config updates for website migration compatibility. (#2665)
1 parent fca2cab commit 13c7ce7

5 files changed

Lines changed: 49 additions & 5 deletions

File tree

changes/2665.misc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Documentation build configuration is now updated to work with the updated tooling.

docs/config.yml

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ extra:
3333
"ci_tested":
3434
"maintainer_tested":
3535
"not_tested":
36+
generator: false
3637

3738
extra_css:
3839
- stylesheets/briefcase.css
@@ -45,6 +46,8 @@ theme:
4546
features:
4647
- content.tabs.link
4748
- toc.follow
49+
- navigation.tabs
50+
- navigation.tabs.sticky
4851
- navigation.indexes
4952
- navigation.footer
5053
- search.suggest
@@ -73,21 +76,58 @@ theme:
7376
name: Switch to system preference
7477

7578
markdown_extensions:
79+
# PyMdown Extensions
7680
pymdownx.highlight: {}
7781
pymdownx.superfences: {}
78-
pymdownx.blocks.admonition: {}
7982
pymdownx.blocks.caption: {}
80-
pymdownx.details: {}
83+
pymdownx.blocks.admonition: # Enables admonitions.
84+
types:
85+
- note
86+
- abstract
87+
- info
88+
- tip
89+
- success
90+
- question
91+
- warning
92+
- failure
93+
- danger
94+
- bug
95+
- example
96+
- quote
97+
pymdownx.blocks.details: # Enables collapsible content.
98+
types:
99+
- {name: details-note, class: note}
100+
- {name: details-abstract, class: abstract}
101+
- {name: details-info, class: info}
102+
- {name: details-tip, class: tip}
103+
- {name: details-success, class: success}
104+
- {name: details-question, class: question}
105+
- {name: details-warning, class: warning}
106+
- {name: details-failure, class: failure}
107+
- {name: details-danger, class: danger}
108+
- {name: details-bug, class: bug}
109+
- {name: details-example, class: example}
110+
- {name: details-quote, class: quote}
81111
pymdownx.blocks.tab:
82112
alternate_style: true
113+
pymdownx.magiclink: # Among other things, enables GitHub shorthand references.
114+
provider: "github"
115+
user: "beeware"
116+
repo: "toga"
117+
repo_url_shortener: true
118+
repo_url_shorthand: true
119+
normalize_issue_symbols: true
83120
pymdownx.snippets:
84121
base_path: ["docs/en"]
85122
url_download: true
86123
check_paths: true
124+
# Python Markdown Extensions
125+
attr_list: {}
126+
smarty: # Enables easy em and en dashes.
127+
smart_quotes: false
87128
toc:
88129
permalink: true
89130
title: On this page
90-
attr_list: {}
91131

92132
plugins:
93133
search: {}

docs/mkdocs.en.yml

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

66
theme:
77
language: en
8+
9+
extra:
10+
header: {}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ setuptools-scm = [
108108
]
109109

110110
towncrier = [
111-
"towncrier==25.8.0",
111+
"towncrier == 25.8.0",
112112
]
113113

114114
tox-uv = [

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ commands =
9898
!lint-!all-!live-!en : build_md_translations {posargs} en
9999
lint : pyspelling
100100
lint : markdown-checker --dir {[docs]docs_dir} --func check_broken_urls --skip-domains=https://www.firegiant.com,https://flathub.org,https://wunjo.online,https://www.x.org
101-
live : live_serve_en {posargs}
101+
live : live_serve_en {posargs} --port=8039
102102
all : build_md_translations {posargs} en
103103
en : build_md_translations {posargs} en

0 commit comments

Comments
 (0)