Re: [PATCH RFC] docs: automarkup: linkify git revs

From: Jonathan Corbet
Date: Fri Nov 17 2023 - 15:38:08 EST


Vegard Nossum <vegard.nossum@xxxxxxxxxx> writes:

> There aren't a ton of references to commits in the documentation, but
> they do exist, and we can use automarkup to linkify them to make them
> easier to follow.
>
> Use something like this to find references to commits:
>
> git grep -P 'commit.*[0-9a-f]{8,}' Documentation/
>
> Also fix a few of these to standardize on the exact format that is
> already used in changelogs.
>
> Signed-off-by: Vegard Nossum <vegard.nossum@xxxxxxxxxx>
> ---
> Documentation/arch/x86/boot.rst | 2 +-
> Documentation/bpf/btf.rst | 6 ++----
> Documentation/doc-guide/sphinx.rst | 9 +++++++++
> Documentation/livepatch/callbacks.rst | 4 ++--
> Documentation/networking/snmp_counter.rst | 16 ++++++----------
> Documentation/sphinx/automarkup.py | 20 +++++++++++++++++++-
> 6 files changed, 39 insertions(+), 18 deletions(-)

That seems to work nicely. Applied, thanks.

jon