#!/usr/bin/env python31# -*- coding: utf-8 -*-2#3# llvmlite documentation build configuration file, created by4# sphinx-quickstart on Wed Apr 29 14:18:42 2015.5#6# This file is execfile()d with the current directory set to its7# containing dir.8#9# Note that not all possible configuration values are present in this10# autogenerated file.11#12# All configuration values have a default; values that are commented out13# serve to show the default.1415import sys16import os17from datetime import datetime1819import sphinx_rtd_theme2021# If extensions (or modules to document with autodoc) are in another directory,22# add these directories to sys.path here. If the directory is relative to the23# documentation root, use os.path.abspath to make it absolute, like shown here.24#sys.path.insert(0, os.path.abspath('.'))25sys.path.append(os.path.abspath(os.path.join('..', '..')))262728# -- General configuration ------------------------------------------------2930# If your documentation needs a minimal Sphinx version, state it here.31#needs_sphinx = '1.0'3233# Add any Sphinx extension module names here, as strings. They can be34# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom35# ones.36extensions = [37'sphinx.ext.intersphinx',38]3940# Add any paths that contain templates here, relative to this directory.41templates_path = ['_templates']4243# The suffix(es) of source filenames.44# You can specify multiple suffix as a list of string:45# source_suffix = ['.rst', '.md']46source_suffix = '.rst'4748# The encoding of source files.49#source_encoding = 'utf-8-sig'5051# The master toctree document.52master_doc = 'index'5354# General information about the project.55project = 'llvmlite'56copyright = '2014, Anaconda Inc.'57author = 'Numba Developers'5859if os.environ.get('READTHEDOCS'):60# RTD replaces the last update date. So we need to hack it in here.61copyright += '. Last updated on {}'.format(62datetime.utcnow().strftime('%b %d, %Y'))6364# The version info for the project you're documenting, acts as replacement for65# |version| and |release|, also used in various other places throughout the66# built documents.67#68import llvmlite69# The short X.Y version.70version = llvmlite.__version__.split('-', 1)[0]71# The full version, including alpha/beta/rc tags.72release = llvmlite.__version__7374# The language for content autogenerated by Sphinx. Refer to documentation75# for a list of supported languages.76#77# This is also used if you do content translation via gettext catalogs.78# Usually you set "language" from the command line for these cases.79language = "en"8081# There are two options for replacing |today|: either, you set today to some82# non-false value, then it is used:83#today = ''84# Else, today_fmt is used as the format for a strftime call.85#today_fmt = '%B %d, %Y'8687# List of patterns, relative to source directory, that match files and88# directories to ignore when looking for source files.89exclude_patterns = []9091# The reST default role (used for this markup: `text`) to use for all92# documents.93#default_role = None9495# If true, '()' will be appended to :func: etc. cross-reference text.96#add_function_parentheses = True9798# If true, the current module name will be prepended to all description99# unit titles (such as .. function::).100#add_module_names = True101102# If true, sectionauthor and moduleauthor directives will be shown in the103# output. They are ignored by default.104#show_authors = False105106# The name of the Pygments (syntax highlighting) style to use.107pygments_style = 'sphinx'108109# A list of ignored prefixes for module index sorting.110#modindex_common_prefix = []111112# If true, keep warnings as "system message" paragraphs in the built documents.113#keep_warnings = False114115# If true, `todo` and `todoList` produce output, else they produce nothing.116todo_include_todos = False117118119# -- Options for HTML output ----------------------------------------------120121# The theme to use for HTML and HTML Help pages. See the documentation for122# a list of builtin themes.123124html_theme = 'sphinx_rtd_theme'125126# Theme options are theme-specific and customize the look and feel of a theme127# further. For a list of options available for each theme, see the128# documentation.129#html_theme_options = {}130131# Add any paths that contain custom themes here, relative to this directory.132#html_theme_path = []133134# The name for this set of Sphinx documents. If None, it defaults to135# "<project> v<release> documentation".136#html_title = None137138# A shorter title for the navigation bar. Default is the same as html_title.139#html_short_title = None140141# The name of an image file (relative to this directory) to place at the top142# of the sidebar.143#html_logo = None144145# The name of an image file (within the static path) to use as favicon of the146# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32147# pixels large.148#html_favicon = None149150# Add any paths that contain custom static files (such as style sheets) here,151# relative to this directory. They are copied after the builtin static files,152# so a file named "default.css" will overwrite the builtin "default.css".153html_static_path = ['_static']154155# Add any extra paths that contain custom files (such as robots.txt or156# .htaccess) here, relative to this directory. These files are copied157# directly to the root of the documentation.158#html_extra_path = []159160# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,161# using the given strftime format.162html_last_updated_fmt = '%b %d, %Y'163164# If true, SmartyPants will be used to convert quotes and dashes to165# typographically correct entities.166#html_use_smartypants = True167168# Custom sidebar templates, maps document names to template names.169#html_sidebars = {}170171# Additional templates that should be rendered to pages, maps page names to172# template names.173#html_additional_pages = {}174175# If false, no module index is generated.176#html_domain_indices = True177178# If false, no index is generated.179#html_use_index = True180181# If true, the index is split into individual pages for each letter.182#html_split_index = False183184# If true, links to the reST sources are added to the pages.185#html_show_sourcelink = True186187# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.188#html_show_sphinx = True189190# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.191#html_show_copyright = True192193# If true, an OpenSearch description file will be output, and all pages will194# contain a <link> tag referring to it. The value of this option must be the195# base URL from which the finished HTML is served.196#html_use_opensearch = ''197198# This is the file name suffix for HTML files (e.g. ".xhtml").199#html_file_suffix = None200201# Language to be used for generating the HTML full-text search index.202# Sphinx supports the following languages:203# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'204# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'205#html_search_language = 'en'206207# A dictionary with options for the search language support, empty by default.208# Now only 'ja' uses this config value209#html_search_options = {'type': 'default'}210211# The name of a javascript file (relative to the configuration directory) that212# implements a search results scorer. If empty, the default will be used.213#html_search_scorer = 'scorer.js'214215# Output file base name for HTML help builder.216htmlhelp_basename = 'llvmlitedoc'217218# -- Options for LaTeX output ---------------------------------------------219220latex_elements = {221# The paper size ('letterpaper' or 'a4paper').222#'papersize': 'letterpaper',223224# The font size ('10pt', '11pt' or '12pt').225#'pointsize': '10pt',226227# Additional stuff for the LaTeX preamble.228#'preamble': '',229230# Latex figure (float) alignment231#'figure_align': 'htbp',232}233234# Grouping the document tree into LaTeX files. List of tuples235# (source start file, target name, title,236# author, documentclass [howto, manual, or own class]).237latex_documents = [238(master_doc, 'llvmlite.tex', 'llvmlite Documentation',239'Anaconda Inc.', 'manual'),240]241242# The name of an image file (relative to this directory) to place at the top of243# the title page.244#latex_logo = None245246# For "manual" documents, if this is true, then toplevel headings are parts,247# not chapters.248#latex_use_parts = False249250# If true, show page references after internal links.251#latex_show_pagerefs = False252253# If true, show URL addresses after external links.254#latex_show_urls = False255256# Documents to append as an appendix to all manuals.257#latex_appendices = []258259# If false, no module index is generated.260#latex_domain_indices = True261262263# -- Options for manual page output ---------------------------------------264265# One entry per manual page. List of tuples266# (source start file, name, description, authors, manual section).267man_pages = [268(master_doc, 'llvmlite', 'llvmlite Documentation',269[author], 1)270]271272# If true, show URL addresses after external links.273#man_show_urls = False274275276# -- Options for Texinfo output -------------------------------------------277278# Grouping the document tree into Texinfo files. List of tuples279# (source start file, target name, title, author,280# dir menu entry, description, category)281texinfo_documents = [282(master_doc, 'llvmlite', 'llvmlite Documentation',283author, 'llvmlite', 'One line description of project.',284'Miscellaneous'),285]286287# Documents to append as an appendix to all manuals.288#texinfo_appendices = []289290# If false, no module index is generated.291#texinfo_domain_indices = True292293# How to display URL addresses: 'footnote', 'no', or 'inline'.294#texinfo_show_urls = 'footnote'295296# If true, do not generate a @detailmenu in the "Top" node's menu.297#texinfo_no_detailmenu = False298299300# Example configuration for intersphinx: refer to the Python standard library.301intersphinx_mapping = {302'python': ('https://docs.python.org/3', None),303'llvm': ('https://releases.llvm.org/20.1.0/docs', None),304}305306nitpicky = True307308309