Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are there two Tables of Contents in the Sphinx renders? #4

Open
westurner opened this issue Dec 13, 2014 · 3 comments
Open

Why are there two Tables of Contents in the Sphinx renders? #4

westurner opened this issue Dec 13, 2014 · 3 comments

Comments

@westurner
Copy link
Owner

No description provided.

@westurner
Copy link
Owner Author

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:

@westurner
Copy link
Owner Author

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.

@westurner westurner changed the title Why are there two tables of contents in the Sphinx renders? Why are there two Tables of Contents in the Sphinx renders? Dec 13, 2014
@westurner
Copy link
Owner Author

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 .

@westurner westurner modified the milestone: FAQ Jan 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant