r-universe-org / help

Support and bug tracker for R-universe
https://docs.r-universe.dev/
8 stars 2 forks source link

Link to specific sections of package pages #178

Closed maelle closed 1 year ago

maelle commented 2 years ago

For instance I'd like to be able to link directly to "development and contributors". What's needed is an header id ("easy"), potentially something like headings on rOpenSci blog (the anchor icon, less easy)

jeroen commented 2 years ago

I'd like this too but it requires a significant rewrite of the front-end, because currently every package page is it's own anchor, for example: https://ropensci.r-universe.dev/ui#package:magick already uses #package:magick to navigate to the package page.

So we would need to rewrite things such that each package gets a full url I think. Which would be better but it's quite a bit of work.

jeroen commented 1 year ago

I think this should work now:

https://jeroen.r-universe.dev/jsonlite#readme https://jeroen.r-universe.dev/jsonlite#reference https://jeroen.r-universe.dev/jsonlite#citation https://jeroen.r-universe.dev/jsonlite#development https://jeroen.r-universe.dev/jsonlite#users

maelle commented 1 year ago

Thank you!! A anchor icon on hover or something similar would be nice, as otherwise one does not know there's the ID?

jeroen commented 1 year ago

I made the headers clickable now, hopefully that helps :)

maelle commented 1 year ago

I think this can be closed, thanks a ton for the new feature :sparkles: :star2: