linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* stable docs.kernel.org links?
@ 2024-03-18 17:03 Bjorn Helgaas
  2024-03-18 17:35 ` Jani Nikula
  0 siblings, 1 reply; 3+ messages in thread
From: Bjorn Helgaas @ 2024-03-18 17:03 UTC (permalink / raw)
  To: linux-doc; +Cc: linux-kernel

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:

  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/pci.c?id=v6.8#n1300

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.,

  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/core-api/genalloc.rst?id=v6.8

but of course that's not as nicely formatted.

Bjorn

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: stable docs.kernel.org links?
  2024-03-18 17:03 stable docs.kernel.org links? Bjorn Helgaas
@ 2024-03-18 17:35 ` Jani Nikula
  2024-03-18 17:59   ` Konstantin Ryabitsev
  0 siblings, 1 reply; 3+ messages in thread
From: Jani Nikula @ 2024-03-18 17:35 UTC (permalink / raw)
  To: Bjorn Helgaas, linux-doc; +Cc: linux-kernel, Konstantin Ryabitsev

On Mon, 18 Mar 2024, Bjorn Helgaas <helgaas@kernel.org> wrote:
> 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:
>
>   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/pci.c?id=v6.8#n1300
>
> 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.,
>
>   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/core-api/genalloc.rst?id=v6.8
>
> 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

Cc: Konstantin


BR,
Jani.


-- 
Jani Nikula, Intel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: stable docs.kernel.org links?
  2024-03-18 17:35 ` Jani Nikula
@ 2024-03-18 17:59   ` Konstantin Ryabitsev
  0 siblings, 0 replies; 3+ messages in thread
From: Konstantin Ryabitsev @ 2024-03-18 17:59 UTC (permalink / raw)
  To: Jani Nikula; +Cc: Bjorn Helgaas, linux-doc, linux-kernel

On Mon, Mar 18, 2024 at 07:35:55PM +0200, Jani Nikula wrote:
> 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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-18 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-18 17:03 stable docs.kernel.org links? Bjorn Helgaas
2024-03-18 17:35 ` Jani Nikula
2024-03-18 17:59   ` Konstantin Ryabitsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).