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
conditional toc tree not discarded #1717
Comments
|
OK,
but then what is the alternative? Of course I can work out some script that changes the source folder, but this is kind of annoying. I think this is a broader issue with conditionals. There are some similar bugs open. |
Thanks for the notification. I think I'll have to go with something like this scope solution: Related extension: https://gist.github.com/kakawait/9215487 |
Hi, I still believe that ifconfig should be used instead and its condition evaluated from the very beginning. |
What about adding an option to a toctree like :condition: so that it will be evaluate during the doctree-read or doctree-resolved event? |
I understood this is expected. Issue closed. |
Hi,
I'd like to have a conditional toctree, i.e. some entries should apperars depending on whether I set an variable to a specific value. I have tried as follow:
The I run with lang=="dotnet". Curiosly the toctree in the main page is
but from api-reference I get
It seems that the section is correctly dropped locally but it appears in the main toc. lang is correctly set.
Am I missing something?
The text was updated successfully, but these errors were encountered: