Skip to content

How to distinguish between /modules.html and /index.html inside theme rendering context? #2953

Closed Answered by Gerrit0
balthild asked this question in Q&A
Discussion options

You must be logged in to vote

Both have the url being index.html.

This doesn't seem to be the case. Running the following plugin on TypeDoc's repo prints:

export function load(app) {
    app.renderer.on("beginPage", page => {
        console.log(page.url, page.model.getFriendlyFullName());
    });
}
...
index.html TypeDoc API
modules.html TypeDoc API
hierarchy.html TypeDoc API
modules/Configuration.html Configuration
modules/Configuration.OptionDefaults.html Configuration.OptionDefaults
...

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by balthild
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants