Skip to content

Commit 82db200

Browse files
authored
feat(frontend): add #readme id to instantly view package readme
This will allow jumping straight to the readme view just like on GitHub by appending `#readme` to the URL - `https://github.com/<user>/<repo>#readme` On npmx it will be like this - `https://npmx.com/<package>#readme`
1 parent 38960e2 commit 82db200

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/pages/[...package].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ defineOgImageComponent('Package', {
769769
</section>
770770

771771
<!-- README -->
772-
<section aria-labelledby="readme-heading" class="area-readme min-w-0">
772+
<section id="readme" aria-labelledby="readme-heading" class="area-readme min-w-0">
773773
<h2 id="readme-heading" class="text-xs text-fg-subtle uppercase tracking-wider mb-4">
774774
{{ $t('package.readme.title') }}
775775
</h2>

0 commit comments

Comments
 (0)