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

navigation_depth has no effect #2718

Closed
goerz opened this issue Mar 11, 2017 · 5 comments
Closed

navigation_depth has no effect #2718

goerz opened this issue Mar 11, 2017 · 5 comments
Labels
Support Support question

Comments

@goerz
Copy link

goerz commented Mar 11, 2017

Details

Description

It appears the navigation_depth setting has no effect on the RTD website. In
conf.py, I have

html_theme_options = {
    'collapse_navigation': True,
    'display_version': True,
    'navigation_depth': 4,
}

This works correctly when generating the documentation locally (make doc in a
checkout of the project), using sphinx_rtd_theme. However, on the online
version of the docs, the navigation depth remains at 2, which is insufficient.
How do I get a deeper navigation in the sidebar?

@humitos humitos added the Support Support question label Mar 13, 2017
@humitos
Copy link
Member

humitos commented Mar 13, 2017

@goerz what version of sphinx_rtd_theme are you using locally?

In RTD it seems you are using 0.1.7 which I think doesn't support navigation_depth. Consider upgrading it in your requirements and let me know if that is the reason.

@humitos
Copy link
Member

humitos commented Mar 13, 2017

A good place to take a look is the RTD documentation itself, that seems to have at least 3. Maybe you can steal some configurations from there -> https://docs.readthedocs.io/en/latest/team.html#members

@goerz
Copy link
Author

goerz commented Mar 17, 2017

I'm using version 0.2.4 locally. Is it supposed to work by upgrading whatever older version of the theme RTD is using through environment.yml? I've added the following to environment.yml

- ...
- pip:
    - ...
    - sphinx_rtd_theme==0.2.4

In the RTD build logs, it says "requirement already fulfilled". It still
complains about "unsupported theme options"

And why is RTD not using the most current version of their own theme on their
server? I really wish they'd just let me create a clean conda environment and
issue the same make doc I'm using locally, and then just host the resulting
HTML file.

@goerz
Copy link
Author

goerz commented Mar 17, 2017

Oh, I think I get why it's not working: After installing the latest version of the theme from environment.yml, it then downgrades it again in the next step of the build process. So how do I get around that? Do I have to fork the theme under a different name just so I can put that name in conf.py?

@stsewd
Copy link
Member

stsewd commented Jun 15, 2018

Closing in favor of #3829

@stsewd stsewd closed this as completed Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

3 participants