Skip to content

Commit d99838e

Browse files
committed
Clean up conf.py
1 parent 35ab6fb commit d99838e

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

docs/conf.py

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,8 @@
1212
#
1313
import os
1414
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("..", "..")))
1815
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+
2317

2418
# -- Project information -----------------------------------------------------
2519

@@ -39,6 +33,7 @@
3933
# The full version, including alpha/beta/rc tags.
4034
release = "6.0"
4135

36+
4237
# -- General configuration ----------------------------------------------------
4338

4439
# Add any paths that contain templates here, relative to this directory.
@@ -161,7 +156,7 @@
161156
html_theme_options = {
162157
"article_header_start": ["toggle-primary-sidebar"],
163158
"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>""",
165160
"footer_end": ["version.html"],
166161
"icon_links": [
167162
{
@@ -199,7 +194,7 @@
199194
},
200195
],
201196
"logo": {
202-
"text": "Plone Sphinx Theme",
197+
"text": "Plone Documentation",
203198
},
204199
"navigation_with_keys": True,
205200
"path_to_docs": "docs",
@@ -215,6 +210,8 @@
215210
"use_repository_button": True,
216211
}
217212

213+
# suggest edit link
214+
# remark: {{ file_name }} is mandatory in "edit_page_url_template"
218215
html_context = { # TODO: verify html_context usage in plone-sphinx-theme
219216
"edit_page_url_template": "https://6.docs.plone.org/contributing/index.html?{{ file_name }}#making-contributions-on-github",
220217
}
@@ -241,7 +238,7 @@
241238
]
242239

243240

244-
# -- Options for sphinx_sitemap to html -----------------------------
241+
# -- Options for sphinx_sitemap to HTML -----------------------------
245242

246243
# Used by sphinx_sitemap to generate a sitemap
247244
html_baseurl = "https://6.docs.plone.org/"
@@ -315,12 +312,12 @@
315312
]
316313

317314

318-
# -- sphinx.ext.todo -----------------------
315+
# -- Options for sphinx.ext.todo -----------------------
319316
# See http://sphinx-doc.org/ext/todo.html#confval-todo_include_todos
320317
todo_include_todos = True
321318

322319

323-
# -- sphinx-notfound-page configuration ----------------------------------
320+
# -- Options for sphinx-notfound-page ----------------------------------
324321

325322
notfound_urls_prefix = ""
326323
notfound_template = "404.html"
@@ -351,7 +348,7 @@
351348
"index",
352349
"PloneDocumentation.tex",
353350
"Plone Documentation",
354-
"The Plone community",
351+
"Plone Community",
355352
"manual",
356353
),
357354
]
@@ -361,12 +358,6 @@
361358
latex_logo = "_static/logo_2x.png"
362359

363360

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-
370361
# An extension that allows replacements for code blocks that
371362
# are not supported in `rst_epilog` or other substitutions.
372363
# https://stackoverflow.com/a/56328457/2214933

0 commit comments

Comments
 (0)