stable docs.kernel.org links?
When providing a URL to a bit of code, it's nice if the URL remains useful indefinitely, e.g., this should work "forever" because it includes a git tag:
Is there a similar "id=" mechanism for https://docs.kernel.org? I could use https://docs.kernel.org/core-api/genalloc.html, but the link may become stale as docs get reorganized.
I could link to the .rst file directly with the git tag, e.g.,
but of course that's not as nicely formatted.
Bjorn
Quoted 10 lines · Bjorn Helgaas
When providing a URL to a bit of code, it's nice if the URL remains useful indefinitely, e.g., this should work "forever" because it includes a git tag:
Is there a similar "id=" mechanism for https://docs.kernel.org? I could use https://docs.kernel.org/core-api/genalloc.html, but the link may become stale as docs get reorganized.
Quoted 5 lines
I could link to the .rst file directly with the git tag, e.g.,
but of course that's not as nicely formatted.
This works, but I don't know if there are any guarantees that it keeps working:
https://www.kernel.org/doc/html/v6.8/core-api/genalloc.html
BR,
Jani.
Signature · 1 line
Jani Nikula, Intel
Quoted 4 lines · Jani Nikula
This works, but I don't know if there are any guarantees that it keeps working:
Also works as https://docs.kernel.org/6.8/core-api/genalloc.html
No guarantees beyond the usual "we did this on purpose and don't intend to break this." :)
-K