|
33 | 33 | # The full version, including alpha/beta/rc tags. |
34 | 34 | release = "6" |
35 | 35 |
|
| 36 | + |
36 | 37 | # -- General configuration ---------------------------------------------------- |
37 | 38 |
|
38 | 39 | # Add any paths that contain templates here, relative to this directory. |
|
85 | 86 | # Ignore pages that require authentication |
86 | 87 | r"https://github.com/orgs/plone/teams/", # requires auth |
87 | 88 | r"https://github.com/plone/documentation/issues/new", # requires auth |
| 89 | + r"https://github.com/plone/volto/issues/new/choose", # requires auth |
88 | 90 | r"https://opensource.org/", # requires auth |
89 | 91 | # Ignore github.com pages with anchors |
90 | 92 | r"https://github.com/.*#.*", |
91 | 93 | # Ignore github.com searches |
92 | 94 | r"https://github.com/search", |
| 95 | + # Ignore GitHub 429 Client Error: Too Many Requests for url |
| 96 | + r"https://github.com/collective/plone.app.locales/commits/master/", |
93 | 97 | # Ignore rate limiting by github.com |
94 | 98 | r"https://github.com/plone/volto/issues", |
95 | 99 | r"https://github.com/plone/volto/pull", |
|
98 | 102 | r"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors#Identifying_the_issue", |
99 | 103 | r"https://docs.cypress.io/guides/references/migration-guide#Migrating-to-Cypress-version-10-0", # volto |
100 | 104 | # Ignore unreliable sites |
101 | | - # r"https://chromewebstore.google.com/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi", # TODO retest with latest Sphinx when upgrading theme. chromewebstore recently changed its URL and has "too many redirects". |
102 | | - # r"https://chromewebstore.google.com/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd", # TODO retest with latest Sphinx when upgrading theme. chromewebstore recently changed its URL and has "too many redirects". |
103 | | - # r"https://stackoverflow.com", # volto and documentation # TODO retest with latest Sphinx. |
104 | | - r"https://web.archive.org/", # volto |
105 | | -# r"https://www.youtube.com/playlist", # volto, TODO remove after installing sphinxcontrib.youtube |
| 105 | + r"https://web.archive.org/", |
| 106 | + r"https://www.youtube.com/playlist", # volto, TODO remove after installing sphinxcontrib.youtube |
106 | 107 | r"http://z3c.pt", # fluke where Sphinx interprets this as a URL |
107 | 108 | ] |
108 | 109 | linkcheck_allowed_redirects = { # TODO: Confirm usage of linkcheck_allowed_redirects |
|
241 | 242 | "primary_sidebar_end": [ |
242 | 243 | "version-switcher", |
243 | 244 | ], |
244 | | - "repository_branch": "main", |
| 245 | + "repository_branch": "6.0", |
245 | 246 | "repository_url": "https://github.com/plone/documentation", |
246 | 247 | "search_bar_text": "Search", |
247 | 248 | "switcher": { |
248 | 249 | "json_url": "https://6.docs.plone.org/_static/switcher.json", |
249 | 250 | "version_match": version, |
250 | 251 | }, |
251 | | - "use_edit_page_button": True, |
| 252 | + "use_edit_page_button": False, # This option does not support multiple repositories. |
252 | 253 | "use_issues_button": True, |
253 | 254 | "use_repository_button": True, |
254 | 255 | } |
255 | 256 | # suggest edit link |
256 | 257 | # remark: {{ file_name }} is mandatory in "edit_page_url_template" |
257 | | -html_context = { |
258 | | - "edit_page_url_template": "https://6.docs.plone.org/contributing/index.html?{{ file_name }}#making-contributions-on-github", |
259 | | -} |
| 258 | +# used by `use_edit_page_button`, but it does not support multiple repositories |
| 259 | +# html_context = { |
| 260 | +# "edit_page_url_template": "https://6.docs.plone.org/contributing/documentation/index.html?{{ file_name }}#making-contributions-on-github", |
| 261 | +# } |
260 | 262 |
|
261 | 263 | # Announce that we have an opensearch plugin |
262 | 264 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_use_opensearch |
|
275 | 277 | html_extra_path = [ |
276 | 278 | "robots.txt", |
277 | 279 | ] |
278 | | - |
279 | 280 | # Add any paths that contain custom static files (such as style sheets) here, |
280 | 281 | # relative to this directory. They are copied after the builtin static files, |
281 | 282 | # so a file named "default.css" will overwrite the builtin "default.css". |
|
295 | 296 | # Don't show class signature with the class' name. |
296 | 297 | autodoc_class_signature = "separated" |
297 | 298 |
|
298 | | - |
299 | | -# -- Options for sphinx_sitemap to html ----------------------------- |
300 | | - |
301 | | -# Used by sphinx_sitemap to generate a sitemap |
302 | | -html_baseurl = "https://6.docs.plone.org/" |
303 | | -# https://sphinx-sitemap.readthedocs.io/en/latest/advanced-configuration.html#customizing-the-url-scheme |
304 | | -sitemap_url_scheme = "{link}" |
305 | | -sitemap_filename = "sitemap-custom.xml" |
306 | | - |
307 | | -# -- Options for myST markdown conversion to html ----------------------------- |
| 299 | +# -- Options for MyST markdown conversion to HTML ----------------------------- |
308 | 300 |
|
309 | 301 | # For more information see: |
310 | 302 | # https://myst-parser.readthedocs.io/en/latest/syntax/optional.html |
|
328 | 320 | "fawrench": '<span class="fa fa-wrench" style="font-size: 1.6em;"></span>', |
329 | 321 | } |
330 | 322 |
|
| 323 | + |
331 | 324 | # -- Intersphinx configuration ---------------------------------- |
332 | 325 |
|
333 | 326 | # This extension can generate automatic links to the documentation of objects |
|
359 | 352 |
|
360 | 353 |
|
361 | 354 | # -- Mermaid configuration ---------------------------------- |
362 | | -# mermaid_version = "10.9.1" |
| 355 | +mermaid_version = "11.2.0" |
363 | 356 |
|
364 | 357 |
|
365 | 358 | # -- OpenGraph configuration ---------------------------------- |
|
374 | 367 | ] |
375 | 368 |
|
376 | 369 |
|
377 | | -# -- sphinx.ext.todo ----------------------- |
| 370 | +# -- Options for sphinx.ext.todo ----------------------- |
| 371 | + |
378 | 372 | # See http://sphinx-doc.org/ext/todo.html#confval-todo_include_todos |
379 | 373 | todo_include_todos = True |
380 | 374 |
|
381 | 375 |
|
382 | | -# -- sphinx-notfound-page configuration ---------------------------------- |
| 376 | +# -- Options for sphinx-notfound-page ---------------------------------- |
383 | 377 |
|
384 | 378 | notfound_urls_prefix = "" |
385 | 379 | notfound_template = "404.html" |
|
396 | 390 | } |
397 | 391 |
|
398 | 392 |
|
| 393 | +# -- Options for sphinx_sitemap to HTML ----------------------------- |
| 394 | + |
| 395 | +# Used by sphinx_sitemap to generate a sitemap |
| 396 | +html_baseurl = "https://6.docs.plone.org/" |
| 397 | +# https://sphinx-sitemap.readthedocs.io/en/latest/advanced-configuration.html#customizing-the-url-scheme |
| 398 | +sitemap_url_scheme = "{link}" |
| 399 | +sitemap_filename = "sitemap-custom.xml" |
| 400 | + |
| 401 | + |
399 | 402 | # -- Options for HTML help output ------------------------------------------------- |
400 | 403 |
|
401 | 404 | # Output file base name for HTML help builder. |
|
411 | 414 | "index", |
412 | 415 | "PloneDocumentation.tex", |
413 | 416 | "Plone Documentation", |
414 | | - "The Plone community", |
| 417 | + "Plone community", |
415 | 418 | "manual", |
416 | 419 | ), |
417 | 420 | ] |
|
421 | 424 | latex_logo = "_static/logo_2x.png" |
422 | 425 |
|
423 | 426 | # -- Configuration for source_replacements extension ----------------------- |
| 427 | + |
424 | 428 | # An extension that allows replacements for code blocks that |
425 | 429 | # are not supported in `rst_epilog` or other substitutions. |
426 | 430 | # https://stackoverflow.com/a/56328457/2214933 |
|
0 commit comments