Skip to content

Commit ec05be1

Browse files
committed
Spring Cleaning
- Sort and reorganize `conf.py` settings - Add 2024 training to Intersphinx - Add `genindex` to `toctree`
1 parent 8941111 commit ec05be1

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

docs/conf.py

+8-10
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
smartquotes = False
7676

7777
# Options for the linkcheck builder
78+
linkcheck_anchors = True
7879
# Ignore localhost
7980
linkcheck_ignore = [
8081
# Ignore local and example URLs
@@ -114,9 +115,9 @@
114115
# Example
115116
# r"https://chrome\.google\.com/webstore/detail/.*": r"https://consent\.google\.com/.*",
116117
}
117-
linkcheck_anchors = True
118-
linkcheck_timeout = 5
119118
linkcheck_retries = 1
119+
linkcheck_report_timeouts_as_broken = True
120+
linkcheck_timeout = 5
120121

121122
# The suffix of source filenames.
122123
source_suffix = {
@@ -185,15 +186,15 @@
185186

186187
html_theme_options = {
187188
"article_header_start": ["toggle-primary-sidebar"],
189+
"extra_footer": """<p>The text and illustrations in this website are licensed by the Plone Foundation under a Creative Commons Attribution 4.0 International license. Plone and the Plone® logo are registered trademarks of the Plone Foundation, registered in the United States and other countries. For guidelines on the permitted uses of the Plone trademarks, see <a href="https://plone.org/foundation/logo">https://plone.org/foundation/logo</a>. All other trademarks are owned by their respective owners.</p>
190+
<p>Pull request previews by <a href="https://readthedocs.org/">Read the Docs</a>.</p>""",
188191
"footer_content_items": [
189192
"author",
190193
"copyright",
191194
"last-updated",
192195
"extra-footer",
193196
"icon-links",
194197
],
195-
"extra_footer": """<p>The text and illustrations in this website are licensed by the Plone Foundation under a Creative Commons Attribution 4.0 International license. Plone and the Plone® logo are registered trademarks of the Plone Foundation, registered in the United States and other countries. For guidelines on the permitted uses of the Plone trademarks, see <a href="https://plone.org/foundation/logo">https://plone.org/foundation/logo</a>. All other trademarks are owned by their respective owners.</p>
196-
<p>Pull request previews by <a href="https://readthedocs.org/">Read the Docs</a>.</p>""",
197198
"icon_links": [
198199
{
199200
"name": "GitHub",
@@ -275,12 +276,8 @@
275276
# "<project> v<release> documentation".
276277
html_title = "%(project)s v%(release)s" % {"project": project, "release": release}
277278

278-
# If false, no index is generated.
279-
html_use_index = True
280-
281279
html_css_files = ["documentation.css", ("print.css", {"media": "print"})]
282280
html_js_files = []
283-
284281
html_extra_path = [
285282
"robots.txt",
286283
]
@@ -308,8 +305,8 @@
308305
# For more information see:
309306
# https://myst-parser.readthedocs.io/en/latest/syntax/optional.html
310307
myst_enable_extensions = [
311-
"attrs_block", # Support parsing of block attributes.
312-
"attrs_inline", # Support parsing of inline attributes.
308+
"attrs_block", # Support parsing of block attributes.
309+
"attrs_inline", # Support parsing of inline attributes.
313310
"colon_fence", # You can also use ::: delimiters to denote code fences, instead of ```.
314311
"deflist", # Support definition lists. https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#definition-lists
315312
"html_image", # For inline images. See https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#html-images
@@ -354,6 +351,7 @@
354351
"training": ("https://training.plone.org/", None),
355352
"training-2022": ("https://2022.training.plone.org/", None),
356353
"training-2023": ("https://2023.training.plone.org/", None),
354+
"training-2024": ("https://2024.training.plone.org/", None),
357355
}
358356

359357

docs/index.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ user-guide/index
145145
:hidden: true
146146
147147
glossary
148+
genindex
148149
```
149150

150151
```{toctree}
@@ -154,5 +155,3 @@ glossary
154155
155156
training/index
156157
```
157-
158-
{ref}`genindex`

0 commit comments

Comments
 (0)