Skip to content

Commit

Permalink
Merge branch 'TypeStrong:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Nil2000 committed Apr 27, 2024
2 parents dfbfa36 + 4e56239 commit cc642dd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,11 @@

- Header anchor links in rendered markdown are now more consistent with headers generated by TypeDoc, #2546.
- Types rendered in the `Returns` header are now properly colored, #2546.
- Links added with the `navigationLinks` option are now moved into the pull out navigation on mobile displays, #2548.

### Thanks!

- @HarelM

## v0.25.13 (2024-04-07)

Expand Down
9 changes: 8 additions & 1 deletion src/lib/output/themes/default/partials/navigation.tsx
Expand Up @@ -27,12 +27,19 @@ function buildFilterItem(context: DefaultThemeRenderContext, name: string, displ

export function sidebarLinks(context: DefaultThemeRenderContext) {
const links = Object.entries(context.options.getValue("sidebarLinks"));
if (!links.length) return null;
const navLinks = Object.entries(context.options.getValue("navigationLinks"));

if (!links.length && !navLinks.length) return null;
return (
<nav id="tsd-sidebar-links" class="tsd-navigation">
{links.map(([label, url]) => (
<a href={url}>{label}</a>
))}
{navLinks.map(([label, url]) => (
<a href={url} class="tsd-nav-link">
{label}
</a>
))}
</nav>
);
}
Expand Down
9 changes: 9 additions & 0 deletions static/style.css
Expand Up @@ -762,6 +762,9 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
padding: 0;
max-width: 100%;
}
.tsd-navigation .tsd-nav-link {
display: none;
}
.tsd-nested-navigation {
margin-left: 3rem;
}
Expand Down Expand Up @@ -1340,6 +1343,12 @@ img {
.has-menu .tsd-navigation {
max-height: 100%;
}
#tsd-toolbar-links {
display: none;
}
.tsd-navigation .tsd-nav-link {
display: flex;
}
}

/* one sidebar */
Expand Down

0 comments on commit cc642dd

Please sign in to comment.