Parcourir la source

fix rtd theme

justheuristic il y a 5 ans
Parent
commit
d9898e9ce1
2 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 4 0
      docs/_static/fix_rtd.css
  2. 2 2
      docs/conf.py

+ 4 - 0
docs/_static/fix_rtd.css

@@ -0,0 +1,4 @@
+/* work around https://github.com/snide/sphinx_rtd_theme/issues/149 */
+.rst-content table.field-list .field-body {
+    padding-top: 8px;
+}

+ 2 - 2
docs/conf.py

@@ -103,7 +103,7 @@ language = None
 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
 
 # The name of the Pygments (syntax highlighting) style to use.
-pygments_style = None
+pygments_style = 'sphinx'
 
 
 # -- Options for HTML output -------------------------------------------------
@@ -222,9 +222,9 @@ intersphinx_mapping = {'https://docs.python.org/': None}
 # If true, `todo` and `todoList` produce output, else they produce nothing.
 todo_include_todos = True
 
-# markdown autostructify
 
 def setup(app):
+    app.add_stylesheet("fix_rtd.css")
     github_doc_root = 'https://github.com/rtfd/recommonmark/tree/master/doc/'  # TODO
     app.add_config_value('recommonmark_config', {
         'url_resolver': lambda url: github_doc_root + url,