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
fix(html): correct relative link depth on default-module subpages
Symbol pages are written to `{short_path.path}/~/{name}.html` for every
module, including the main entrypoint. But `href_path_resolve` hard-coded
the main entrypoint to a directory depth of 1 when computing the `../`
prefix for links back to the root.
That is only correct when the main module's path is `.` (the usual
single-package case). When several entrypoints share a common ancestor,
the main module gets a deeper path (e.g. `index.ts`), so its symbol pages
live two directories deep yet linked back to the root with a single
`../` — producing 404s for stylesheets, search results and cross-links on
those subpages.
Compute the depth from the actual number of path segments instead,
treating `.` as zero segments so the common case is unchanged.
0 commit comments