docs: Allow multiple automarkup functions
authorNícolas F. R. A. Prado <nfraprado@protonmail.com>
Fri, 11 Sep 2020 13:34:33 +0000 (13:34 +0000)
committerJonathan Corbet <corbet@lwn.net>
Wed, 16 Sep 2020 17:09:51 +0000 (11:09 -0600)
commit1ac4cfb2ce03e1a7382c64fe73c9e16c0acc20db
tree0225ee341d2ab983f25695ca3596de7ce80439a1
parent78ff97ebd4e9d02a99ca894b643c78c8fda7df5d
docs: Allow multiple automarkup functions

The automarkup script previously matched expressions and substituted
them with markup to enable automatic cross-reference all in the same
function.

Split the expression matching iteration and the markup substitution into
different functions to make it easier to add new regular expressions and
functions to treat each of them.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@protonmail.com>
Link: https://lore.kernel.org/r/20200911133339.327721-2-nfraprado@protonmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/sphinx/automarkup.py