pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: Daniel Gustafsson <daniel@yesql.se>
To: pgsql-docs@lists.postgresql.org
Subject: Re: Hyperlinks for source file references
Date: Wed, 27 Sep 2023 14:18:49 +0100
Message-ID: <ac5ad37e-1e36-eb2c-7b67-954cc83d677d@eisentraut.org> (raw)
In-Reply-To: <7C6E4AF2-62BA-49AB-8EC6-FA27136A8B88@yesql.se>
References: <7C6E4AF2-62BA-49AB-8EC6-FA27136A8B88@yesql.se>

On 25.09.23 13:09, Daniel Gustafsson wrote:
> Commit b73c3a11963 introduced <ulink url=xyz><filename>xyz</filename><ulink>
> hyperlinks for files in the postgres source tree by linking to the gitweb
> interface at git.postgresql.org.  This, IMO, makes the content referred to more
> accessible, and is especially interesting for README files.  The links in
> question can be found here:
> 
>      https://www.postgresql.org/docs/devel/tableam.html
> 
> Right now we have ~85 references to source files using <filename /> in the
> docs, should we convert them to hyperlinks like the ones in the Table AM docs?
> I would be happy to make a patch that implements this, but I wanted to check
> here before making the effort to make sure it's not immediately nayed.

A slightly fancier variant that avoids having to hardcode the git web 
URL pattern in a bunch of places:

You mark it up like

     <ulink url="file://src/include/access/tableam.h" type="pgsrc"/>

and then write a bit of XSL to process that into whatever form you want.





view thread (6+ messages)  latest in thread

Message-ID: <ac5ad37e-1e36-eb2c-7b67-954cc83d677d@eisentraut.org>
Permalink:  ../ac5ad37e-1e36-eb2c-7b67-954cc83d677d@eisentraut.org/
Also on:    postgresql.org/message-id/ac5ad37e-1e36-eb2c-7b67-954cc83d677d@eisentraut.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: peter@eisentraut.org, daniel@yesql.se, pgsql-docs@lists.postgresql.org
  Subject: Re: Hyperlinks for source file references
  In-Reply-To: <ac5ad37e-1e36-eb2c-7b67-954cc83d677d@eisentraut.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox