diff --git a/docs/commands.rst b/docs/commands.rst index a1e55654..24bf8490 100644 --- a/docs/commands.rst +++ b/docs/commands.rst @@ -334,9 +334,8 @@ Sub commands: Arguments: * ``name``: unique name of pattern -* ``pattern``: a valid `Perl-compatible Regular Expression`_ - -.. _Perl-compatible Regular Expression: https://developer.gnome.org/glib/stable/glib-regex-syntax.html +* ``pattern``: a valid Perl-compatible Regular Expression, + see :manpage:`pcrepattern(3)` .. _commands-filter: diff --git a/docs/conf.py b/docs/conf.py index 202a4429..5a867c63 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -81,6 +81,8 @@ # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' +# A URL to cross-reference manpage directives. +manpages_url = 'https://man7.org/linux/man-pages/man{section}/{page}.{section}.html' # -- Options for HTML output ----------------------------------------------