Skip to content

Commit

Permalink
Override some theme's css
Browse files Browse the repository at this point in the history
It seems, Code of Conduct again successfully works!  But
code review - doesn't.  They introduce readthedocs/sphinx_rtd_theme#329 again.

Workaround readthedocs/sphinx_rtd_theme#687
  • Loading branch information
skirpichev committed Oct 11, 2018
1 parent 3e9e801 commit 70d87da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.rst-content div[class^="highlight"] pre {
line-height: normal;
}
9 changes: 9 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,12 @@
# This value controls if docstring for classes or methods, if not explicitly
# set, is inherited form parents.
autodoc_inherit_docstrings = False

# A list of paths that contain custom static files. Relative paths are taken as
# relative to the configuration directory. They are copied to the output’s
# _static directory.
html_static_path = ['_static']

# https://docs.readthedocs.io/en/latest/guides/adding-custom-css.html
def setup(app):
app.add_stylesheet('custom.css')

0 comments on commit 70d87da

Please sign in to comment.