You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For most languages, this will be the same as the `docs_dir` language code; but
46
-
for some (in particular languages with locale variants like `zh_CN`), there are
47
-
differences.
48
-
* The `extra: translation_type:` should be `machine` until the translation reaches
49
-
100% for the first time, at which point it should be `human`. It will revert to
50
-
`machine`from `human` if it regresses to below 90%.
36
+
* The `theme: language:` value should be the language code, as [specified by the MkDocs Material theme](https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/). For most languages, this will be the same as the `docs_dir` language code; but for some (in particular languages with locale variants like `zh_CN`), there are differences.
37
+
* The `extra: translation_type:` should be `machine` until the translation reaches 100% for the first time, at which point it should be `human`. It will revert to `machine` from `human` if it regresses to below 90%.
51
38
52
39
### The update to `tox.ini`
53
40
54
41
You'll need to make several changes to this file.
55
42
56
43
You'll need to add the following:
57
44
58
-
* The language code environment flag to the header line which begins `[testenv:docs`,
59
-
preceded by a `-`, with no spaces included.
60
-
* The language code exclusion to the first command, which begins with `!lint`,
61
-
preceded by `-!`, with no spaces included.
45
+
* The language code environment flag to the header line which begins `[testenv:docs`, preceded by a `-`, with no spaces included.
46
+
* The language code exclusion to the first command, which begins with `!lint`, preceded by `-!`, with no spaces included.
62
47
* The language code to the end of the second line beginning with `translate :`.
63
48
* The language code to the end of the line beginning with `all :`.
64
-
* A new line at the end that matches the other language-specific lines with the
65
-
new language code.
49
+
* A new line at the end that matches the other language-specific lines with the new language code.
min_python_version: "3.10"# The oldest supported Python version
19
+
min_python_version_tag: "310"# The tag version of the minimum python version
20
+
recent_python_version: "3.13"# The newest Python version known to work on all platforms
21
+
docs_python_version: "3.13"# The version of Python required to build the documentation
22
+
translated: false # true hides content related to building translations. Default: false.
23
+
hide_coverage: false # true hides content related to code coverage. Default: false.
24
+
macos_only: false # true hides tabbed content, and displays only macOS instructions. Default: false.
15
25
alternate:
16
26
- name: English
17
27
link: /en/
@@ -73,6 +83,7 @@ markdown_extensions:
73
83
pymdownx.superfences: {}
74
84
pymdownx.blocks.admonition: {}
75
85
pymdownx.blocks.caption: {}
86
+
pymdownx.details: {}
76
87
pymdownx.blocks.tab:
77
88
alternate_style: true
78
89
pymdownx.snippets:
@@ -86,10 +97,12 @@ markdown_extensions:
86
97
87
98
plugins:
88
99
search: {}
89
-
autorefs: {}
100
+
autorefs:
101
+
resolve_closest: true # autorefs warns of the Usage headings begin duplicates without this - we will have to assign unique ids to all of them otherwise
0 commit comments