[llvm] e4f64ad - [docs] Use relative URLs for man pages

Aaron Puchert via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 11 11:45:47 PDT 2022


Author: Aaron Puchert
Date: 2022-09-11T20:43:57+02:00
New Revision: e4f64ad4e38d296948b03f001fba5c2bed056f43

URL: https://github.com/llvm/llvm-project/commit/e4f64ad4e38d296948b03f001fba5c2bed056f43
DIFF: https://github.com/llvm/llvm-project/commit/e4f64ad4e38d296948b03f001fba5c2bed056f43.diff

LOG: [docs] Use relative URLs for man pages

Should have no effect on the online documentation, but it makes offline
builds more self-contained. With relative links however we have to
abstain from using `:manpage:` outside of man page cross-references.

Reviewed By: mysterymath

Differential Revision: https://reviews.llvm.org/D132794

Added: 
    

Modified: 
    llvm/docs/SymbolizerMarkupFormat.rst
    llvm/docs/conf.py

Removed: 
    


################################################################################
diff  --git a/llvm/docs/SymbolizerMarkupFormat.rst b/llvm/docs/SymbolizerMarkupFormat.rst
index 169e57a3aa8a9..88c1939c16aff 100644
--- a/llvm/docs/SymbolizerMarkupFormat.rst
+++ b/llvm/docs/SymbolizerMarkupFormat.rst
@@ -32,8 +32,8 @@ or end of a markup element should rarely if ever appear incidentally in logging
 text. It's specifically intended not to require sanitizing plain text, such as
 the HTML/XML requirement to replace ``<`` with ``<`` and the like.
 
-:manpage:`llvm-symbolizer(1)` includes a symbolizing filter via its ``--filter``
-option.
+:doc:`llvm-symbolizer <CommandGuide/llvm-symbolizer>` includes a symbolizing
+filter via its ``--filter`` option.
 
 Scope and assumptions
 =====================
@@ -431,4 +431,4 @@ over the raw logging stream, accumulating context and massaging text as it goes.
 .. rubric:: Footnotes
 
 .. [#not_yet_implemented] This markup element is not yet implemented in
-  :manpage:`llvm-symbolizer(1)`.
+  :doc:`llvm-symbolizer <CommandGuide/llvm-symbolizer>`.

diff  --git a/llvm/docs/conf.py b/llvm/docs/conf.py
index 80aef2202bcd6..617ce564bbeef 100644
--- a/llvm/docs/conf.py
+++ b/llvm/docs/conf.py
@@ -236,6 +236,7 @@
 man_page_authors = "Maintained by the LLVM Team (https://llvm.org/)."
 command_guide_subpath = 'CommandGuide'
 command_guide_path = os.path.join(basedir, command_guide_subpath)
+manpages_url = '{page}.html'
 
 
 def process_md(name):
@@ -289,6 +290,3 @@ def process_rst(name):
 # Pygment lexer are sometimes out of date (when parsing LLVM for example) or
 # wrong. Suppress the warning so the build doesn't abort.
 suppress_warnings = [ 'misc.highlighting_failure' ]
-
-# Direct html-ified man pages to llvm.org
-manpages_url = 'https://llvm.org/docs/CommandGuide/{page}.html'


        


More information about the llvm-commits mailing list