Create a new DefaultTheme instance.
The renderer this theme is attached to.
The name of this component as set by the @Component
decorator.
The icons which will actually be rendered. The source of truth lives on the theme, and the DefaultThemeRenderContext.icons member will produce references to these.
These icons will be written twice. Once to an icons.svg
file in the assets directory
which will be referenced by icons on the context, and once to an icons.js
file so that
references to the icons can be dynamically embedded within the page for use by the search
dropdown and when loading the page on file://
urls.
Custom themes may overwrite this entire object or individual properties on it to customize the icons used within the page, however TypeDoc currently assumes that all icons are svg elements, so custom themes must also use svg elements.
Internal
markedStatic
URL_Return the application / root component instance.
Return the owner of this component.
Build the url for the the given reflection and all of its children.
The reflection the url should be created for.
The array the url should be appended to.
The altered urls array.
If implementing a custom theme, it is recommended to override buildNavigation instead.
Map the models of the given project to the desired output files.
The project whose urls should be generated.
A list of UrlMapping instances defining which models should be rendered to which files.
Protected
initializeStops listening to an event.
Starts listening to an event.
Renders the provided page to a string, which will be written to disk by the Renderer
Emits an event to all currently subscribed listeners.
Static
applyGenerate an anchor url for the given reflection and all of its children.
The reflection an anchor url should be created for.
The nearest reflection having an own document.
Static
getReturn a url for the given reflection.
The reflection the url should be generated for.
Optional
relative: Models.ReflectionThe parent reflection the url generation should stop on.
The separator used to generate the url.
The generated url.
Default theme implementation of TypeDoc. If a theme does not provide a custom Theme implementation, this theme class will be used.