Open westurner opened 9 years ago
Could the .. contents::
directives be stripped out before Sphinx render-time?
That's probably possible. At this time, this is just barely good enough for my purposes.
Solved by adding
div#contents {
display: none;
}
to https://github.com/westurner/wiki/blob/master/_static/css/local.css with app.add_stylesheet("css/local.css")
in https://github.com/westurner/wiki/blob/master/conf.py .
From a given source
.rest
file:There's the GitHub wiki view, which does not add a TOC sidebar, necessitating an explicit
.. contents::
directive.And there's the
gh-pages
Sphinx-rendered view, which does have TWO Tables of Contents: