diff options
| author | 2019-06-23 21:36:31 +0000 | |
|---|---|---|
| committer | 2019-06-23 21:36:31 +0000 | |
| commit | 23f101f37937a1bd4a29726cab2f76e0fb038b35 (patch) | |
| tree | f7da7d6b32c2e07114da399150bfa88d72187012 /gnu/llvm/docs/conf.py | |
| parent | sort previous; ok deraadt (diff) | |
| download | wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.tar.xz wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.zip | |
Import LLVM 8.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/docs/conf.py')
| -rw-r--r-- | gnu/llvm/docs/conf.py | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/gnu/llvm/docs/conf.py b/gnu/llvm/docs/conf.py index ce7df14ac3a..7fdcb3d2f52 100644 --- a/gnu/llvm/docs/conf.py +++ b/gnu/llvm/docs/conf.py @@ -9,6 +9,7 @@ # # All configuration values have a default; values that are commented out # serve to show the default. +from __future__ import print_function import sys, os from datetime import date @@ -31,7 +32,9 @@ extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo'] templates_path = ['_templates'] # The suffix of source filenames. -source_suffix = '.rst' +source_suffix = ['.rst', '.md'] + +source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'} # The encoding of source files. #source_encoding = 'utf-8-sig' @@ -48,9 +51,9 @@ copyright = u'2003-%d, LLVM Project' % date.today().year # built documents. # # The short version. -version = '7' +version = '8' # The full version, including alpha/beta/rc tags. -release = '7' +release = '8' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -217,7 +220,7 @@ man_pages = [] # Automatically derive the list of man pages from the contents of the command # guide subdirectory. basedir = os.path.dirname(__file__) -man_page_authors = "Maintained by The LLVM Team (http://llvm.org/)." +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) for name in os.listdir(command_guide_path): @@ -232,14 +235,14 @@ for name in os.listdir(command_guide_path): header = f.readline().rstrip('\n') if len(header) != len(title): - print >>sys.stderr, ( + print(( "error: invalid header in %r (does not match title)" % ( - file_subpath,)) + file_subpath,)), file=sys.stderr) if ' - ' not in title: - print >>sys.stderr, ( + print(( ("error: invalid title in %r " "(expected '<name> - <description>')") % ( - file_subpath,)) + file_subpath,)), file=sys.stderr) # Split the name out of the title. name,description = title.split(' - ', 1) @@ -255,3 +258,6 @@ intersphinx_mapping = {} # 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' |
