Workaround a problem with cloud_theme and sphinx2

This fixes a problem with sphinx and the cloud theme. Sphinx 2 adds <p> elements
in the tables and lists, which causes the theme to look werid.
This commit is contained in:
Morten Enemark Lund 2019-07-31 14:47:45 +02:00
parent 4c639beb89
commit 98a62c492c
2 changed files with 22 additions and 0 deletions

18
docs/_static/custom.css vendored Normal file
View file

@ -0,0 +1,18 @@
th > p:first-child,
td > p:first-child {
margin-top: 0px;
}
th > p:last-child,
td > p:last-child {
margin-bottom: 0px;
}
li > p:first-child {
margin-top: 0px;
}
li > p:last-child {
margin-bottom: 0px;
}

View file

@ -440,3 +440,7 @@ make_events()
builtins.__xonsh__.history = None
builtins.__xonsh__.env = {}
builtins.__xonsh__.commands_cache = CommandsCache()
def setup(app):
app.add_stylesheet("custom.css")