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

Is there any way to have the "<internal>" menu collapsed by default? #25

Open
docmattman opened this issue Mar 3, 2024 · 1 comment

Comments

@docmattman
Copy link

The plugin works great. Definitely a huge help to have all the extra missing types available in the generated docs. However, some of my code packages contain a LOT of "internals". When I open a package from the sidebar, the <internals> submenu item is the first item in the list and it defaults to expanded. So in some cases I need to scroll down a LOT just to get past all of the internal stuff to see the actual package code docs.

Any idea how to handle this? Is there a way to have the <internals> menu collapsed by default?

@Gerrit0
Copy link
Owner

Gerrit0 commented Mar 3, 2024

TypeDoc remembers what menus you have open, and restores that when you load the page... so you'd have to use its hooks to avoid this behavior.

The easiest way to do this is have a script that looks for any localStorage items whose name starts with tsd-accordion and contains <internal> and set them to false

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