Re: Hyperlinks for source file references

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Hyperlinks for source file references
Date: 2023-09-25 12:22:47
Message-ID: 202309251222.lglg4cjyv7uj@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On 2023-Sep-25, Daniel Gustafsson wrote:

> This does of course present a question for the backbranches, pointing to the
> HEAD version in the docs for a previous major release isn't entirely accurate.
> On the other hand, we already do that today in the above tableam page so if we
> don't like that we might as well sort out now what to do about that.

I think you can just change the ;hb=HEAD parameter in the URL to the
current branch.

https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/access/tableam.h;hb=REL_12_STABLE
https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/access/tableam.h;hb=master

It should be easy to add a line to version.sgml that expands to the
current branch.

--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Daniel Gustafsson 2023-09-25 12:27:48 Re: Hyperlinks for source file references
Previous Message Daniel Gustafsson 2023-09-25 12:09:58 Hyperlinks for source file references