Skip to content

Commit

Permalink
FIX unecessary trailing newlines in literalinclude
Browse files Browse the repository at this point in the history
Use temporary workaround from readthedocs/sphinx_rtd_theme#417

Fixes #108
  • Loading branch information
sebp committed Aug 1, 2017
1 parent 991d283 commit 097487a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down Expand Up @@ -130,7 +130,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ['../static']

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down Expand Up @@ -224,3 +224,6 @@
('index', 'pygobjecttutorial', u'PyGObject Tutorial Documentation',
[u'Sebastian Pölsterl'], 1)
]

def setup(app):
app.add_stylesheet('css/custom.css')
5 changes: 5 additions & 0 deletions static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* Temporary fix for https://github.com/rtfd/sphinx_rtd_theme/issues/417 */

.rst-content .highlight>pre {
line-height: 18px;
}

0 comments on commit 097487a

Please sign in to comment.