You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to modify the default theme. I've got a directory alongside my application which contains the theme, so I'm importing the distributed files as a plugin, then applying the theme, e.g:
I kind of expected the theme in this case to be exactly the same as the default one, where I could then override specific parts such as the footer.. However instead the generated docs contain none of the sub-pages (classes, interfaces etc) and no CSS styles.
Is this expected?
The text was updated successfully, but these errors were encountered:
Oops, apparently I completely forgot to update that, thanks for pointing it out!
Your intuition is correct for how that ought to work. I have a couple questions:
Are you getting a warning that says this?
TypeDoc has been loaded multiple times. This is commonly caused by plugins which have their own installation of TypeDoc
If so, then your theme is likely importing a different installation. This is a problem because TypeDoc relies on instanceof checks when determining whether to do some things (like copy CSS to the output directory). This is generally the most obvious place where things get broken, but there are tricky cases that aren't obvious too. The only reason it isn't an error is because for plugin development there are truly some cases where it doesn't matter.
Are the docs not containing sub pages, or are you not getting links to them in the sidebar? The generated JS for the sidebar is also guarded by an instanceof check. If the pages themselves aren't getting generated, that's odd...
Hello
I'm trying to modify the default theme. I've got a directory alongside my application which contains the theme, so I'm importing the distributed files as a plugin, then applying the theme, e.g:
The code for my theme is pretty simple, and follows the docs here: https://github.com/TypeStrong/typedoc/blob/master/internal-docs/custom-themes.md
The code (modified, as I think those are slightly out of date):
I kind of expected the theme in this case to be exactly the same as the default one, where I could then override specific parts such as the footer.. However instead the generated docs contain none of the sub-pages (classes, interfaces etc) and no CSS styles.
Is this expected?
The text was updated successfully, but these errors were encountered: