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
{{ message }}
Repository navigation
Commit 01f985c
Browse filesBrowse the repository at this point in the historyBrowse files
feat(typedoc): document a type on the page of the one member using it
A type with members that only one member with a page of its own uses, as
`treeshake?: boolean | TreeshakeOptions` uses `TreeshakeOptions`, is
documented on that member's page, as `buildOptions.treeshake.annotations`
and so on. The type's own page links there, and so do links to it and the
type map; the page list leaves it out. The plugin did this before, and
links into such options (`InputOptions.treeshake#annotations`) rely on it.
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/typedoc/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,9 +43,9 @@ The output directory receives, following TypeDoc's own layout:
43
43
44
44
- A page per module and namespace (`modules/plugins.md`), listing its exports.
45
45
- A page per exported class, interface, enum, type alias, function and variable: `classes/Watcher.md`, `functions/build.md`, …
46
-
- A page per member of the types in `docKitMemberPages`: `interfaces/BuildOptions.input.md`, …
46
+
- A page per member of the types in `docKitMemberPages`: `interfaces/BuildOptions.input.md`, … A type only one of these members uses (`boolean | TreeshakeOptions`) is documented on its page, and the type's own page links there.
47
47
-`type-map.json`, mapping type names to their pages, for doc-kit's `typeMap` to link `{Type}` annotations with.
48
-
-`pages.json`, listing every page (full name, kind, URL and `@category`) for the site to build its navigation from.
48
+
-`pages.json`, listing every page (full name, kind, URL and `@category`) for the site to build its navigation from, but those of types documented on a member's page.
49
49
50
50
`docKitUrlAdapter` adapts these URLs, to keep the URLs of a previous site working. Links between pages are relative `.md` links, which doc-kit resolves. Source links are relative to TypeDoc's `basePath` (or `displayBasePath`); set it to the root of your repository.
0 commit comments