Skip to content

Commit

Permalink
One last bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Apr 7, 2023
1 parent 864db57 commit 0c105ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
for your use case, please open an issue.
- Removed `--logger` option, to disable all logging, set the `logLevel` option to `none`.
- Dropped support for legacy `[[link]]`s, removed deprecated `Reflection.findReflectionByName`.
- Internal links are now only resolved with declaration references.
- Added `@overload` to default ignored tags.

### API Breaking Changes
Expand Down Expand Up @@ -66,6 +65,7 @@
- TypeDoc will now ignore a leading `v` in versions, #2212.
- Category titles now render with the same format in the page index and heading title, #2196.
- Fixed crash when using `typeof` on a reference with type arguments, #2220.
- Fixed broken anchor links generated to signatures nested within objects.

### Thanks!

Expand Down
14 changes: 9 additions & 5 deletions src/lib/output/themes/default/partials/anchor-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { JSX } from "../../../../utils";
import type { DefaultThemeRenderContext } from "../DefaultThemeRenderContext";

export const anchorIcon = (context: DefaultThemeRenderContext, anchor: string | undefined) => (
<a href={`#${anchor}`} aria-label="Permalink" class="tsd-anchor-icon">
{context.icons.anchor()}
</a>
);
export function anchorIcon(context: DefaultThemeRenderContext, anchor: string | undefined) {
if (!anchor) return <></>;

return (
<a href={`#${anchor}`} aria-label="Permalink" class="tsd-anchor-icon">
{context.icons.anchor()}
</a>
);
}

0 comments on commit 0c105ec

Please sign in to comment.