Path: blob/main/contrib/llvm-project/lld/docs/conf.py
39507 views
# -*- coding: utf-8 -*-1#2# lld documentation build configuration file.3#4# This file is execfile()d with the current directory set to its containing dir.5#6# Note that not all possible configuration values are present in this7# autogenerated file.8#9# All configuration values have a default; values that are commented out10# serve to show the default.1112import sys, os13from datetime import date1415# If extensions (or modules to document with autodoc) are in another directory,16# add these directories to sys.path here. If the directory is relative to the17# documentation root, use os.path.abspath to make it absolute, like shown here.18# sys.path.insert(0, os.path.abspath('.'))1920# -- General configuration -----------------------------------------------------2122# If your documentation needs a minimal Sphinx version, state it here.23# needs_sphinx = '1.0'2425# Add any Sphinx extension module names here, as strings. They can be extensions26# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.27extensions = ["sphinx.ext.intersphinx", "sphinx.ext.todo"]2829# Add any paths that contain templates here, relative to this directory.30templates_path = ["_templates"]3132# The suffix of source filenames.33source_suffix = ".rst"3435# The encoding of source files.36# source_encoding = 'utf-8-sig'3738# The master toctree document.39master_doc = "index"4041# General information about the project.42project = "lld"43copyright = "2011-%d, LLVM Project" % date.today().year4445# The language for content autogenerated by Sphinx. Refer to documentation46# for a list of supported languages.47# language = None4849# There are two options for replacing |today|: either, you set today to some50# non-false value, then it is used:51# today = ''52# Else, today_fmt is used as the format for a strftime call.53today_fmt = "%Y-%m-%d"5455# List of patterns, relative to source directory, that match files and56# directories to ignore when looking for source files.57exclude_patterns = ["_build"]5859# The reST default role (used for this markup: `text`) to use for all documents.60# default_role = None6162# If true, '()' will be appended to :func: etc. cross-reference text.63# add_function_parentheses = True6465# If true, the current module name will be prepended to all description66# unit titles (such as .. function::).67# add_module_names = True6869# If true, sectionauthor and moduleauthor directives will be shown in the70# output. They are ignored by default.71show_authors = True7273# The name of the Pygments (syntax highlighting) style to use.74pygments_style = "friendly"7576# A list of ignored prefixes for module index sorting.77# modindex_common_prefix = []787980# -- Options for HTML output ---------------------------------------------------8182# The theme to use for HTML and HTML Help pages. See the documentation for83# a list of builtin themes.84html_theme = "llvm-theme"8586# Theme options are theme-specific and customize the look and feel of a theme87# further. For a list of options available for each theme, see the88# documentation.89# html_theme_options = {}9091# Add any paths that contain custom themes here, relative to this directory.92html_theme_path = ["."]9394# The name for this set of Sphinx documents. If None, it defaults to95# "<project> v<release> documentation".96# html_title = None9798# A shorter title for the navigation bar. Default is the same as html_title.99# html_short_title = None100101# The name of an image file (relative to this directory) to place at the top102# of the sidebar.103# html_logo = None104105# If given, this must be the name of an image file (path relative to the106# configuration directory) that is the favicon of the docs. Modern browsers use107# this as icon for tabs, windows and bookmarks. It should be a Windows-style108# icon file (.ico), which is 16x16 or 32x32 pixels large. Default: None. The109# image file will be copied to the _static directory of the output HTML, but110# only if the file does not already exist there.111html_favicon = "_static/favicon.ico"112113# Add any paths that contain custom static files (such as style sheets) here,114# relative to this directory. They are copied after the builtin static files,115# so a file named "default.css" will overwrite the builtin "default.css".116html_static_path = ["_static"]117118# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,119# using the given strftime format.120html_last_updated_fmt = "%Y-%m-%d"121122# If true, SmartyPants will be used to convert quotes and dashes to123# typographically correct entities.124# html_use_smartypants = True125126# Custom sidebar templates, maps document names to template names.127html_sidebars = {"index": ["indexsidebar.html"]}128129# Additional templates that should be rendered to pages, maps page names to130# template names.131# html_additional_pages = {'index': 'index.html'}132133# If false, no module index is generated.134# html_domain_indices = True135136# If false, no index is generated.137# html_use_index = True138139# If true, the index is split into individual pages for each letter.140# html_split_index = False141142# If true, links to the reST sources are added to the pages.143html_show_sourcelink = True144145# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.146# html_show_sphinx = True147148# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.149# html_show_copyright = True150151# If true, an OpenSearch description file will be output, and all pages will152# contain a <link> tag referring to it. The value of this option must be the153# base URL from which the finished HTML is served.154# html_use_opensearch = ''155156# This is the file name suffix for HTML files (e.g. ".xhtml").157# html_file_suffix = None158159# Output file base name for HTML help builder.160htmlhelp_basename = "llddoc"161162163# -- Options for LaTeX output --------------------------------------------------164165latex_elements = {166# The paper size ('letterpaper' or 'a4paper').167#'papersize': 'letterpaper',168# The font size ('10pt', '11pt' or '12pt').169#'pointsize': '10pt',170# Additional stuff for the LaTeX preamble.171#'preamble': '',172}173174# Grouping the document tree into LaTeX files. List of tuples175# (source start file, target name, title, author, documentclass [howto/manual]).176latex_documents = [177("contents", "lld.tex", "lld Documentation", "LLVM project", "manual"),178]179180# The name of an image file (relative to this directory) to place at the top of181# the title page.182# latex_logo = None183184# For "manual" documents, if this is true, then toplevel headings are parts,185# not chapters.186# latex_use_parts = False187188# If true, show page references after internal links.189# latex_show_pagerefs = False190191# If true, show URL addresses after external links.192# latex_show_urls = False193194# Documents to append as an appendix to all manuals.195# latex_appendices = []196197# If false, no module index is generated.198# latex_domain_indices = True199200201# -- Options for manual page output --------------------------------------------202203# One entry per manual page. List of tuples204# (source start file, name, description, authors, manual section).205man_pages = [("contents", "lld", "lld Documentation", ["LLVM project"], 1)]206207# If true, show URL addresses after external links.208# man_show_urls = False209210211# -- Options for Texinfo output ------------------------------------------------212213# Grouping the document tree into Texinfo files. List of tuples214# (source start file, target name, title, author,215# dir menu entry, description, category)216texinfo_documents = [217(218"contents",219"lld",220"lld Documentation",221"LLVM project",222"lld",223"One line description of project.",224"Miscellaneous",225),226]227228# Documents to append as an appendix to all manuals.229# texinfo_appendices = []230231# If false, no module index is generated.232# texinfo_domain_indices = True233234# How to display URL addresses: 'footnote', 'no', or 'inline'.235# texinfo_show_urls = 'footnote'236237238# FIXME: Define intersphinx configuration.239intersphinx_mapping = {}240241242# -- Options for extensions ----------------------------------------------------243244# Enable this if you want TODOs to show up in the generated documentation.245todo_include_todos = True246247248