Docs: css tweaks

* Add vertical space between items in "open" lists
  (rtfd/sphinx_rtd_theme#590)
* Distinguish shell prompts in console examples,
  and omit them if the code is copied
* Add css and js extras directly from Sphinx conf.py
  (no need to override template)
This commit is contained in:
medmunds
2018-03-16 12:16:57 -07:00
parent b06d684dd5
commit 0c3e3e9bad
4 changed files with 37 additions and 13 deletions

View File

@@ -145,6 +145,11 @@ html_static_path = ['_static']
# typographically correct entities.
# html_use_smartypants = True
# If true, a list all whose items consist of a single paragraph and/or a
# sub-list all whose items etc… (recursive definition) will not use the <p>
# element for any of its items. This is standard docutils behavior.
# html_compact_lists = True
# Custom sidebar templates, maps document names to template names.
# html_sidebars = {}
@@ -272,6 +277,9 @@ intersphinx_mapping = {
def setup(app):
app.add_stylesheet("anymail-theme.css")
app.add_javascript("version-alert.js")
# Django-specific roles, from https://github.com/django/django/blob/master/docs/_ext/djangodocs.py:
app.add_crossref_type(
directivename="setting",