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

Expand first-level of class hierarchy and file hierarchy by default #82

Open
apartridge opened this issue Oct 16, 2019 · 2 comments
Open

Comments

@apartridge
Copy link

We have every class in our own namespace + directory, so the hierarchy looks something like this

  • Namespace X

  • Directory X

It would be very nice if there was a config for expanding the first level of the hierarchy by default, so that the user does not have to click it. We are using sphinx_rtd_theme, with "createTreeView": True.

@svenevs
Copy link
Owner

svenevs commented Oct 20, 2019

Hi @apartridge,

So just to make sure I understand, you are wanting to have an option to expand stuff one level while using the sphinx_rtd_theme? Right now there's a bootstrap version of that treeViewBootstrapLevels.

Easiest to just confirm with a picture, compare the current output online with the following screenshot made by setting it to two (git clone https://github.com/svenevs/exhale-companion.git -b bootstrap)

--- a/docs/conf.py
+++ b/docs/conf.py
@@ -68,6 +68,7 @@ exhale_args = {
     # HTML Theme specific configurations.                                      #
     ############################################################################
     "treeViewIsBootstrap": True,
+    "treeViewBootstrapLevels": 2,
     # NOTE: there exist many other options for you to tweak.  See
     # http://exhale.readthedocs.io/en/latest/reference_exhale_configs.html#bootstrap-mods
     ############################################################################

level_2

The bootstrap stuff is all kind of legacy at this point, I'm not telling you to switch themes, just making sure this is what you are looking for only for the collapsibleLists version (the default, unless you set treeViewIsBootstrap to True).

I need to fix some broken CI but am hoping I can hack in a quick feature patch. The javascript library is different, but the logic tracking levels is already in place so it may just be a matter of changing something small. Let me know if this isn't what you are looking for, but I'll proceed assuming it is 🙂

@apartridge
Copy link
Author

Hi @svenevs, yes that sounds correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants