Skip to content

feat: allow linking to individual headers on package page#224

Merged
danielroe merged 11 commits intonpmx-dev:mainfrom
okineadev:patch-1
Jan 28, 2026
Merged

feat: allow linking to individual headers on package page#224
danielroe merged 11 commits intonpmx-dev:mainfrom
okineadev:patch-1

Conversation

@okineadev
Copy link
Copy Markdown
Contributor

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


The only problem I see right now is that when adding #readme to the URL it jumps incorrectly to the section

image

It should jump so that the "README" heading is visible:

image

There is probably some problem with the <header>.

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`
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs.npmx.dev Ready Ready Preview, Comment Jan 28, 2026 3:03pm
npmx.dev Ready Ready Preview, Comment Jan 28, 2026 3:03pm

Request Review

@okineadev
Copy link
Copy Markdown
Contributor Author

Great addition!

This PR need to be renamed and the description changed.

@danielroe danielroe changed the title feat(frontend): add #readme id to instantly view package readme feat: allow linking to individual headers on package page Jan 28, 2026
@danielroe danielroe enabled auto-merge January 28, 2026 15:03
@danielroe danielroe added this pull request to the merge queue Jan 28, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Jan 28, 2026
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Jonathan Yeong <hey@jonathanyeong.com>
Co-authored-by: Vida Xie <vida_2020@163.com>
Co-authored-by: Joaquín Sánchez <userquin@gmail.com>
Merged via the queue into npmx-dev:main with commit 8b74db0 Jan 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants