|
12 | 12 | #
|
13 | 13 | import os
|
14 | 14 | import sys
|
15 |
| -# Attempt to make plone.api importable to Sphinx |
16 |
| -# sys.path.insert(0, os.path.abspath(".")) |
17 |
| -# sys.path.insert(0, os.path.abspath(os.path.join("..", ".."))) |
18 | 15 | sys.path.insert(0, os.path.abspath("../submodules/plone.api/src"))
|
19 |
| -# sys.path.insert(0, os.path.abspath("../submodules/plone.api/src/plone")) |
20 |
| -print("====== sys.path ======\n" + str(sys.path) + "\n======\n") |
21 |
| -print("====== os.listdir() ======\n" + str(os.listdir()) + "\n======\n") |
22 |
| -print("====== os.listdir(sys.path[0]) ======\n" + str(os.listdir(sys.path[0])) + "\n======\n") |
| 16 | + |
23 | 17 |
|
24 | 18 | # -- Project information -----------------------------------------------------
|
25 | 19 |
|
|
39 | 33 | # The full version, including alpha/beta/rc tags.
|
40 | 34 | release = "6.0"
|
41 | 35 |
|
| 36 | + |
42 | 37 | # -- General configuration ----------------------------------------------------
|
43 | 38 |
|
44 | 39 | # Add any paths that contain templates here, relative to this directory.
|
|
161 | 156 | html_theme_options = {
|
162 | 157 | "article_header_start": ["toggle-primary-sidebar"],
|
163 | 158 | "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>
|
164 |
| -<p>Pull request previews by <a href="https://readthedocs.org/">Read the Docs</a></p>""", |
| 159 | +<p>Pull request previews by <a href="https://readthedocs.org/" target="_blank">Read the Docs</a>.</p>""", |
165 | 160 | "footer_end": ["version.html"],
|
166 | 161 | "icon_links": [
|
167 | 162 | {
|
|
199 | 194 | },
|
200 | 195 | ],
|
201 | 196 | "logo": {
|
202 |
| - "text": "Plone Sphinx Theme", |
| 197 | + "text": "Plone Documentation", |
203 | 198 | },
|
204 | 199 | "navigation_with_keys": True,
|
205 | 200 | "path_to_docs": "docs",
|
|
215 | 210 | "use_repository_button": True,
|
216 | 211 | }
|
217 | 212 |
|
| 213 | +# suggest edit link |
| 214 | +# remark: {{ file_name }} is mandatory in "edit_page_url_template" |
218 | 215 | html_context = { # TODO: verify html_context usage in plone-sphinx-theme
|
219 | 216 | "edit_page_url_template": "https://6.docs.plone.org/contributing/index.html?{{ file_name }}#making-contributions-on-github",
|
220 | 217 | }
|
|
241 | 238 | ]
|
242 | 239 |
|
243 | 240 |
|
244 |
| -# -- Options for sphinx_sitemap to html ----------------------------- |
| 241 | +# -- Options for sphinx_sitemap to HTML ----------------------------- |
245 | 242 |
|
246 | 243 | # Used by sphinx_sitemap to generate a sitemap
|
247 | 244 | html_baseurl = "https://6.docs.plone.org/"
|
|
315 | 312 | ]
|
316 | 313 |
|
317 | 314 |
|
318 |
| -# -- sphinx.ext.todo ----------------------- |
| 315 | +# -- Options for sphinx.ext.todo ----------------------- |
319 | 316 | # See http://sphinx-doc.org/ext/todo.html#confval-todo_include_todos
|
320 | 317 | todo_include_todos = True
|
321 | 318 |
|
322 | 319 |
|
323 |
| -# -- sphinx-notfound-page configuration ---------------------------------- |
| 320 | +# -- Options for sphinx-notfound-page ---------------------------------- |
324 | 321 |
|
325 | 322 | notfound_urls_prefix = ""
|
326 | 323 | notfound_template = "404.html"
|
|
351 | 348 | "index",
|
352 | 349 | "PloneDocumentation.tex",
|
353 | 350 | "Plone Documentation",
|
354 |
| - "The Plone community", |
| 351 | + "Plone Community", |
355 | 352 | "manual",
|
356 | 353 | ),
|
357 | 354 | ]
|
|
361 | 358 | latex_logo = "_static/logo_2x.png"
|
362 | 359 |
|
363 | 360 |
|
364 |
| -# suggest edit link |
365 |
| -# remark: {{ file_name }} is mandatory in "edit_page_url_template" |
366 |
| -html_context = { |
367 |
| - "edit_page_url_template": "https://6.docs.plone.org/contributing/index.html?{{ file_name }}#making-contributions-on-github", |
368 |
| -} |
369 |
| - |
370 | 361 | # An extension that allows replacements for code blocks that
|
371 | 362 | # are not supported in `rst_epilog` or other substitutions.
|
372 | 363 | # https://stackoverflow.com/a/56328457/2214933
|
|
0 commit comments