12fc86ccdSsameeran joshi# -*- coding: utf-8 -*- 22fc86ccdSsameeran joshi# Flang documentation build configuration file. 32fc86ccdSsameeran joshi# 42fc86ccdSsameeran joshi# This file is execfile()d with the current directory set to its containing dir. 52fc86ccdSsameeran joshi# 62fc86ccdSsameeran joshi# Note that not all possible configuration values are present in this 72fc86ccdSsameeran joshi# autogenerated file. 82fc86ccdSsameeran joshi# 92fc86ccdSsameeran joshi# All configuration values have a default; values that are commented out 102fc86ccdSsameeran joshi# serve to show the default. 112fc86ccdSsameeran joshi 122fc86ccdSsameeran joshifrom datetime import date 132fc86ccdSsameeran joshi# If extensions (or modules to document with autodoc) are in another directory, 142fc86ccdSsameeran joshi# add these directories to sys.path here. If the directory is relative to the 152fc86ccdSsameeran joshi# documentation root, use os.path.abspath to make it absolute, like shown here. 162fc86ccdSsameeran joshi# sys.path.insert(0, os.path.abspath('.')) 172fc86ccdSsameeran joshi 182fc86ccdSsameeran joshi# -- General configuration ----------------------------------------------------- 192fc86ccdSsameeran joshi 202fc86ccdSsameeran joshi# If your documentation needs a minimal Sphinx version, state it here. 212fc86ccdSsameeran joshi# needs_sphinx = '1.0' 222fc86ccdSsameeran joshi# Add any Sphinx extension module names here, as strings. They can be extensions 232fc86ccdSsameeran joshi# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 24b7ff0320Scor3ntinextensions = [ 25b7ff0320Scor3ntin "sphinx.ext.todo", 26b7ff0320Scor3ntin "sphinx.ext.mathjax", 27b7ff0320Scor3ntin "sphinx.ext.intersphinx", 28b7ff0320Scor3ntin "sphinx.ext.autodoc", 29b7ff0320Scor3ntin] 302fc86ccdSsameeran joshi 31*7d55a3baScor3ntin# When building man pages, we do not use the markdown pages, 32*7d55a3baScor3ntin# So, we can continue without the myst_parser dependencies. 33*7d55a3baScor3ntin# Doing so reduces dependencies of some packaged llvm distributions. 34*7d55a3baScor3ntintry: 35*7d55a3baScor3ntin import myst_parser 36*7d55a3baScor3ntin 37*7d55a3baScor3ntin extensions.append("myst_parser") 38*7d55a3baScor3ntinexcept ImportError: 39*7d55a3baScor3ntin if not tags.has("builder-man"): 40*7d55a3baScor3ntin raise 41*7d55a3baScor3ntin 42*7d55a3baScor3ntin 432fc86ccdSsameeran joshi# Add any paths that contain templates here, relative to this directory. 44f98ee40fSTobias Hietatemplates_path = ["_templates"] 456989c484Scor3ntinmyst_heading_anchors = 6 462fc86ccdSsameeran joshi 47bc9cdfa1SSameeran joshiimport sphinx 48f98ee40fSTobias Hieta 492fc86ccdSsameeran joshi# The encoding of source files. 502fc86ccdSsameeran joshi# source_encoding = 'utf-8-sig' 512fc86ccdSsameeran joshi 522fc86ccdSsameeran joshi# The master toctree document. 53f98ee40fSTobias Hietamaster_doc = "index" 542fc86ccdSsameeran joshi 552fc86ccdSsameeran joshi# General information about the project. 56f98ee40fSTobias Hietaproject = "Flang" 57f98ee40fSTobias Hietacopyright = "2017-%d, The Flang Team" % date.today().year 582fc86ccdSsameeran joshi 592fc86ccdSsameeran joshi# The version info for the project you're documenting, acts as replacement for 602fc86ccdSsameeran joshi# |version| and |release|, also used in various other places throughout the 612fc86ccdSsameeran joshi# built documents. These are currently set to zero because we don't use them. 622fc86ccdSsameeran joshi# Should somebody consider in the future to change them, they need to be updated 632fc86ccdSsameeran joshi# everytime a new release comes out. 642fc86ccdSsameeran joshi# 652fc86ccdSsameeran joshi# The short version. 662fc86ccdSsameeran joshi# version = '0' 672fc86ccdSsameeran joshi# The full version, including alpha/beta/rc tags. 682fc86ccdSsameeran joshi# release = '0' 692fc86ccdSsameeran joshi 702fc86ccdSsameeran joshi# The language for content autogenerated by Sphinx. Refer to documentation 712fc86ccdSsameeran joshi# for a list of supported languages. 722fc86ccdSsameeran joshi# language = None 732fc86ccdSsameeran joshi 742fc86ccdSsameeran joshi# There are two options for replacing |today|: either, you set today to some 752fc86ccdSsameeran joshi# non-false value, then it is used: 762fc86ccdSsameeran joshi# today = '' 772fc86ccdSsameeran joshi# Else, today_fmt is used as the format for a strftime call. 782fc86ccdSsameeran joshi# today_fmt = '%B %d, %Y' 792fc86ccdSsameeran joshi 802fc86ccdSsameeran joshi# List of patterns, relative to source directory, that match files and 812fc86ccdSsameeran joshi# directories to ignore when looking for source files. 82d32df989SKiran Chandramohanexclude_patterns = ["_build", "analyzer", "FIR/*"] 832fc86ccdSsameeran joshi 842fc86ccdSsameeran joshi# The reST default role (used for this markup: `text`) to use for all documents. 852fc86ccdSsameeran joshi# default_role = None 862fc86ccdSsameeran joshi 872fc86ccdSsameeran joshi# If true, '()' will be appended to :func: etc. cross-reference text. 882fc86ccdSsameeran joshi# add_function_parentheses = True 892fc86ccdSsameeran joshi 902fc86ccdSsameeran joshi# If true, the current module name will be prepended to all description 912fc86ccdSsameeran joshi# unit titles (such as .. function::). 922fc86ccdSsameeran joshi# add_module_names = True 932fc86ccdSsameeran joshi 942fc86ccdSsameeran joshi# If true, sectionauthor and moduleauthor directives will be shown in the 952fc86ccdSsameeran joshi# output. They are ignored by default. 962fc86ccdSsameeran joshi# show_authors = False 972fc86ccdSsameeran joshi 982fc86ccdSsameeran joshi# The name of the Pygments (syntax highlighting) style to use. 99f98ee40fSTobias Hietapygments_style = "friendly" 1002fc86ccdSsameeran joshi 1012fc86ccdSsameeran joshi# A list of ignored prefixes for module index sorting. 1022fc86ccdSsameeran joshi# modindex_common_prefix = [] 1032fc86ccdSsameeran joshi 1042fc86ccdSsameeran joshi 1052fc86ccdSsameeran joshi# -- Options for HTML output --------------------------------------------------- 1062fc86ccdSsameeran joshi 1072fc86ccdSsameeran joshi# The theme to use for HTML and HTML Help pages. See the documentation for 1082fc86ccdSsameeran joshi# a list of builtin themes. 1097ca4012eSTarun Prabhuhtml_theme = "haiku" 1102fc86ccdSsameeran joshi 1112fc86ccdSsameeran joshi# Theme options are theme-specific and customize the look and feel of a theme 1122fc86ccdSsameeran joshi# further. For a list of options available for each theme, see the 1132fc86ccdSsameeran joshi# documentation. 1147ca4012eSTarun Prabhu# html_theme_options = {} 1152fc86ccdSsameeran joshi 1162fc86ccdSsameeran joshi# Add any paths that contain custom themes here, relative to this directory. 1172fc86ccdSsameeran joshi# html_theme_path = [] 1182fc86ccdSsameeran joshi 1192fc86ccdSsameeran joshi# The name for this set of Sphinx documents. If None, it defaults to 1202fc86ccdSsameeran joshi# "<project> v<release> documentation". 121f98ee40fSTobias Hietahtml_title = "The Flang Compiler" 1222fc86ccdSsameeran joshi 1232fc86ccdSsameeran joshi# A shorter title for the navigation bar. Default is the same as html_title. 1242fc86ccdSsameeran joshi# html_short_title = None 1252fc86ccdSsameeran joshi 1262fc86ccdSsameeran joshi# The name of an image file (relative to this directory) to place at the top 1272fc86ccdSsameeran joshi# of the sidebar. 1282fc86ccdSsameeran joshi# html_logo = None 1292fc86ccdSsameeran joshi 1302fc86ccdSsameeran joshi# The name of an image file (within the static path) to use as favicon of the 1312fc86ccdSsameeran joshi# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 1322fc86ccdSsameeran joshi# pixels large. 1332fc86ccdSsameeran joshi# html_favicon = None 1342fc86ccdSsameeran joshi 1352fc86ccdSsameeran joshi# Add any paths that contain custom static files (such as style sheets) here, 1362fc86ccdSsameeran joshi# relative to this directory. They are copied after the builtin static files, 1372fc86ccdSsameeran joshi# so a file named "default.css" will overwrite the builtin "default.css". 1387ca4012eSTarun Prabhu# html_static_path = [] 1392fc86ccdSsameeran joshi 1402fc86ccdSsameeran joshi# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, 1412fc86ccdSsameeran joshi# using the given strftime format. 142f98ee40fSTobias Hietahtml_last_updated_fmt = "%b %d, %Y" 1432fc86ccdSsameeran joshi 1442fc86ccdSsameeran joshi# If true, SmartyPants will be used to convert quotes and dashes to 1452fc86ccdSsameeran joshi# typographically correct entities. 1462fc86ccdSsameeran joshi# html_use_smartypants = True 1472fc86ccdSsameeran joshi 1482fc86ccdSsameeran joshi# Custom sidebar templates, maps document names to template names. 1497ca4012eSTarun Prabhu# html_sidebars = {} 1502fc86ccdSsameeran joshi 1512fc86ccdSsameeran joshi# Additional templates that should be rendered to pages, maps page names to 1522fc86ccdSsameeran joshi# template names. 1532fc86ccdSsameeran joshi# html_additional_pages = {} 1542fc86ccdSsameeran joshi 1552fc86ccdSsameeran joshi# If false, no module index is generated. 1562fc86ccdSsameeran joshi# html_domain_indices = True 1572fc86ccdSsameeran joshi 1582fc86ccdSsameeran joshi# If false, no index is generated. 1592fc86ccdSsameeran joshi# html_use_index = True 1602fc86ccdSsameeran joshi 1612fc86ccdSsameeran joshi# If true, the index is split into individual pages for each letter. 1622fc86ccdSsameeran joshi# html_split_index = False 1632fc86ccdSsameeran joshi 1642fc86ccdSsameeran joshi# If true, links to the reST sources are added to the pages. 1652fc86ccdSsameeran joshi# html_show_sourcelink = True 1662fc86ccdSsameeran joshi 1672fc86ccdSsameeran joshi# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. 1682fc86ccdSsameeran joshi# html_show_sphinx = True 1692fc86ccdSsameeran joshi 1702fc86ccdSsameeran joshi# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. 1712fc86ccdSsameeran joshi# html_show_copyright = True 1722fc86ccdSsameeran joshi 1732fc86ccdSsameeran joshi# If true, an OpenSearch description file will be output, and all pages will 1742fc86ccdSsameeran joshi# contain a <link> tag referring to it. The value of this option must be the 1752fc86ccdSsameeran joshi# base URL from which the finished HTML is served. 1762fc86ccdSsameeran joshi# html_use_opensearch = '' 1772fc86ccdSsameeran joshi 1782fc86ccdSsameeran joshi# This is the file name suffix for HTML files (e.g. ".xhtml"). 1792fc86ccdSsameeran joshi# html_file_suffix = None 1802fc86ccdSsameeran joshi 1812fc86ccdSsameeran joshi# Output file base name for HTML help builder. 182f98ee40fSTobias Hietahtmlhelp_basename = "Flangdoc" 1832fc86ccdSsameeran joshi 1842fc86ccdSsameeran joshi# If true, the reST sources are included in the HTML build as 1852fc86ccdSsameeran joshi# _sources/name. The default is True. 1862fc86ccdSsameeran joshihtml_copy_source = False 1872fc86ccdSsameeran joshi 1882fc86ccdSsameeran joshi# -- Options for LaTeX output -------------------------------------------------- 1892fc86ccdSsameeran joshi 1902fc86ccdSsameeran joshilatex_elements = { 1912fc86ccdSsameeran joshi # The paper size ('letterpaper' or 'a4paper'). 1922fc86ccdSsameeran joshi #'papersize': 'letterpaper', 1932fc86ccdSsameeran joshi # The font size ('10pt', '11pt' or '12pt'). 1942fc86ccdSsameeran joshi #'pointsize': '10pt', 1952fc86ccdSsameeran joshi # Additional stuff for the LaTeX preamble. 1962fc86ccdSsameeran joshi #'preamble': '', 1972fc86ccdSsameeran joshi} 1982fc86ccdSsameeran joshi 1992fc86ccdSsameeran joshi# Grouping the document tree into LaTeX files. List of tuples 2002fc86ccdSsameeran joshi# (source start file, target name, title, author, documentclass [howto/manual]). 2012fc86ccdSsameeran joshilatex_documents = [ 202f98ee40fSTobias Hieta ("Overview", "Flang.tex", "Flang Documentation", "The Flang Team", "manual"), 2032fc86ccdSsameeran joshi] 2042fc86ccdSsameeran joshi 2052fc86ccdSsameeran joshi# The name of an image file (relative to this directory) to place at the top of 2062fc86ccdSsameeran joshi# the title page. 2072fc86ccdSsameeran joshi# latex_logo = None 2082fc86ccdSsameeran joshi 2092fc86ccdSsameeran joshi# For "manual" documents, if this is true, then toplevel headings are parts, 2102fc86ccdSsameeran joshi# not chapters. 2112fc86ccdSsameeran joshi# latex_use_parts = False 2122fc86ccdSsameeran joshi 2132fc86ccdSsameeran joshi# If true, show page references after internal links. 2142fc86ccdSsameeran joshi# latex_show_pagerefs = False 2152fc86ccdSsameeran joshi 2162fc86ccdSsameeran joshi# If true, show URL addresses after external links. 2172fc86ccdSsameeran joshi# latex_show_urls = False 2182fc86ccdSsameeran joshi 2192fc86ccdSsameeran joshi# Documents to append as an appendix to all manuals. 2202fc86ccdSsameeran joshi# latex_appendices = [] 2212fc86ccdSsameeran joshi 2222fc86ccdSsameeran joshi# If false, no module index is generated. 2232fc86ccdSsameeran joshi# latex_domain_indices = True 2242fc86ccdSsameeran joshi 2252fc86ccdSsameeran joshi 2262fc86ccdSsameeran joshi# -- Options for manual page output -------------------------------------------- 2272fc86ccdSsameeran joshi 2282fc86ccdSsameeran joshi# One entry per manual page. List of tuples 2292fc86ccdSsameeran joshi# (source start file, name, description, authors, manual section). 2302fc86ccdSsameeran joshiman_pages = [] 2312fc86ccdSsameeran joshi 2322fc86ccdSsameeran joshi# If true, show URL addresses after external links. 2332fc86ccdSsameeran joshi# man_show_urls = False 2342fc86ccdSsameeran joshi 2352fc86ccdSsameeran joshi 2362fc86ccdSsameeran joshi# -- Options for Texinfo output ------------------------------------------------ 2372fc86ccdSsameeran joshi 2382fc86ccdSsameeran joshi# Grouping the document tree into Texinfo files. List of tuples 2392fc86ccdSsameeran joshi# (source start file, target name, title, author, 2402fc86ccdSsameeran joshi# dir menu entry, description, category) 2412fc86ccdSsameeran joshitexinfo_documents = [ 242f98ee40fSTobias Hieta ( 243f98ee40fSTobias Hieta "Overview", 244f98ee40fSTobias Hieta "Flang", 245f98ee40fSTobias Hieta "Flang Documentation", 246f98ee40fSTobias Hieta "The Flang Team", 247f98ee40fSTobias Hieta "Flang", 248f98ee40fSTobias Hieta "A Fortran front end for LLVM.", 249f98ee40fSTobias Hieta "Miscellaneous", 250f98ee40fSTobias Hieta ), 2512fc86ccdSsameeran joshi] 2522fc86ccdSsameeran joshi 2532fc86ccdSsameeran joshi# Documents to append as an appendix to all manuals. 2542fc86ccdSsameeran joshi# texinfo_appendices = [] 2552fc86ccdSsameeran joshi 2562fc86ccdSsameeran joshi# If false, no module index is generated. 2572fc86ccdSsameeran joshi# texinfo_domain_indices = True 2582fc86ccdSsameeran joshi 2592fc86ccdSsameeran joshi# How to display URL addresses: 'footnote', 'no', or 'inline'. 2602fc86ccdSsameeran joshi# texinfo_show_urls = 'footnote' 261