Blame Documentation/conf.py

Packit 7b02f3
# -*- coding: utf-8 -*-
Packit 7b02f3
#
Packit 7b02f3
# The Linux Kernel documentation build configuration file, created by
Packit 7b02f3
# sphinx-quickstart on Fri Feb 12 13:51:46 2016.
Packit 7b02f3
#
Packit 7b02f3
# This file is execfile()d with the current directory set to its
Packit 7b02f3
# containing dir.
Packit 7b02f3
#
Packit 7b02f3
# Note that not all possible configuration values are present in this
Packit 7b02f3
# autogenerated file.
Packit 7b02f3
#
Packit 7b02f3
# All configuration values have a default; values that are commented out
Packit 7b02f3
# serve to show the default.
Packit 7b02f3
Packit 7b02f3
import sys
Packit 7b02f3
import os
Packit 7b02f3
import sphinx
Packit 7b02f3
Packit 7b02f3
# Get Sphinx version
Packit 7b02f3
major, minor, patch = sphinx.version_info[:3]
Packit 7b02f3
Packit 7b02f3
Packit 7b02f3
# If extensions (or modules to document with autodoc) are in another directory,
Packit 7b02f3
# add these directories to sys.path here. If the directory is relative to the
Packit 7b02f3
# documentation root, use os.path.abspath to make it absolute, like shown here.
Packit 7b02f3
sys.path.insert(0, os.path.abspath('sphinx'))
Packit 7b02f3
from load_config import loadConfig
Packit 7b02f3
Packit 7b02f3
# -- General configuration ------------------------------------------------
Packit 7b02f3
Packit 7b02f3
# If your documentation needs a minimal Sphinx version, state it here.
Packit 7b02f3
needs_sphinx = '1.3'
Packit 7b02f3
Packit 7b02f3
# Add any Sphinx extension module names here, as strings. They can be
Packit 7b02f3
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Packit 7b02f3
# ones.
Packit 7b02f3
extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include', 'cdomain', 'kfigure']
Packit 7b02f3
Packit 7b02f3
# The name of the math extension changed on Sphinx 1.4
Packit 7b02f3
if major == 1 and minor > 3:
Packit 7b02f3
    extensions.append("sphinx.ext.imgmath")
Packit 7b02f3
else:
Packit 7b02f3
    extensions.append("sphinx.ext.pngmath")
Packit 7b02f3
Packit 7b02f3
# Add any paths that contain templates here, relative to this directory.
Packit 7b02f3
templates_path = ['_templates']
Packit 7b02f3
Packit 7b02f3
# The suffix(es) of source filenames.
Packit 7b02f3
# You can specify multiple suffix as a list of string:
Packit 7b02f3
# source_suffix = ['.rst', '.md']
Packit 7b02f3
source_suffix = '.rst'
Packit 7b02f3
Packit 7b02f3
# The encoding of source files.
Packit 7b02f3
#source_encoding = 'utf-8-sig'
Packit 7b02f3
Packit 7b02f3
# The master toctree document.
Packit 7b02f3
master_doc = 'index'
Packit 7b02f3
Packit 7b02f3
# General information about the project.
Packit 7b02f3
project = 'The Linux Kernel'
Packit 7b02f3
copyright = 'The kernel development community'
Packit 7b02f3
author = 'The kernel development community'
Packit 7b02f3
Packit 7b02f3
# The version info for the project you're documenting, acts as replacement for
Packit 7b02f3
# |version| and |release|, also used in various other places throughout the
Packit 7b02f3
# built documents.
Packit 7b02f3
#
Packit 7b02f3
# In a normal build, version and release are are set to KERNELVERSION and
Packit 7b02f3
# KERNELRELEASE, respectively, from the Makefile via Sphinx command line
Packit 7b02f3
# arguments.
Packit 7b02f3
#
Packit 7b02f3
# The following code tries to extract the information by reading the Makefile,
Packit 7b02f3
# when Sphinx is run directly (e.g. by Read the Docs).
Packit 7b02f3
try:
Packit 7b02f3
    makefile_version = None
Packit 7b02f3
    makefile_patchlevel = None
Packit 7b02f3
    for line in open('../Makefile'):
Packit 7b02f3
        key, val = [x.strip() for x in line.split('=', 2)]
Packit 7b02f3
        if key == 'VERSION':
Packit 7b02f3
            makefile_version = val
Packit 7b02f3
        elif key == 'PATCHLEVEL':
Packit 7b02f3
            makefile_patchlevel = val
Packit 7b02f3
        if makefile_version and makefile_patchlevel:
Packit 7b02f3
            break
Packit 7b02f3
except:
Packit 7b02f3
    pass
Packit 7b02f3
finally:
Packit 7b02f3
    if makefile_version and makefile_patchlevel:
Packit 7b02f3
        version = release = makefile_version + '.' + makefile_patchlevel
Packit 7b02f3
    else:
Packit 7b02f3
        version = release = "unknown version"
Packit 7b02f3
Packit 7b02f3
# The language for content autogenerated by Sphinx. Refer to documentation
Packit 7b02f3
# for a list of supported languages.
Packit 7b02f3
#
Packit 7b02f3
# This is also used if you do content translation via gettext catalogs.
Packit 7b02f3
# Usually you set "language" from the command line for these cases.
Packit 7b02f3
language = None
Packit 7b02f3
Packit 7b02f3
# There are two options for replacing |today|: either, you set today to some
Packit 7b02f3
# non-false value, then it is used:
Packit 7b02f3
#today = ''
Packit 7b02f3
# Else, today_fmt is used as the format for a strftime call.
Packit 7b02f3
#today_fmt = '%B %d, %Y'
Packit 7b02f3
Packit 7b02f3
# List of patterns, relative to source directory, that match files and
Packit 7b02f3
# directories to ignore when looking for source files.
Packit 7b02f3
exclude_patterns = ['output']
Packit 7b02f3
Packit 7b02f3
# The reST default role (used for this markup: `text`) to use for all
Packit 7b02f3
# documents.
Packit 7b02f3
#default_role = None
Packit 7b02f3
Packit 7b02f3
# If true, '()' will be appended to :func: etc. cross-reference text.
Packit 7b02f3
#add_function_parentheses = True
Packit 7b02f3
Packit 7b02f3
# If true, the current module name will be prepended to all description
Packit 7b02f3
# unit titles (such as .. function::).
Packit 7b02f3
#add_module_names = True
Packit 7b02f3
Packit 7b02f3
# If true, sectionauthor and moduleauthor directives will be shown in the
Packit 7b02f3
# output. They are ignored by default.
Packit 7b02f3
#show_authors = False
Packit 7b02f3
Packit 7b02f3
# The name of the Pygments (syntax highlighting) style to use.
Packit 7b02f3
pygments_style = 'sphinx'
Packit 7b02f3
Packit 7b02f3
# A list of ignored prefixes for module index sorting.
Packit 7b02f3
#modindex_common_prefix = []
Packit 7b02f3
Packit 7b02f3
# If true, keep warnings as "system message" paragraphs in the built documents.
Packit 7b02f3
#keep_warnings = False
Packit 7b02f3
Packit 7b02f3
# If true, `todo` and `todoList` produce output, else they produce nothing.
Packit 7b02f3
todo_include_todos = False
Packit 7b02f3
Packit 7b02f3
primary_domain = 'c'
Packit 7b02f3
highlight_language = 'none'
Packit 7b02f3
Packit 7b02f3
# -- Options for HTML output ----------------------------------------------
Packit 7b02f3
Packit 7b02f3
# The theme to use for HTML and HTML Help pages.  See the documentation for
Packit 7b02f3
# a list of builtin themes.
Packit 7b02f3
Packit 7b02f3
# The Read the Docs theme is available from
Packit 7b02f3
# - https://github.com/snide/sphinx_rtd_theme
Packit 7b02f3
# - https://pypi.python.org/pypi/sphinx_rtd_theme
Packit 7b02f3
# - python-sphinx-rtd-theme package (on Debian)
Packit 7b02f3
try:
Packit 7b02f3
    import sphinx_rtd_theme
Packit 7b02f3
    html_theme = 'sphinx_rtd_theme'
Packit 7b02f3
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
Packit 7b02f3
except ImportError:
Packit 7b02f3
    sys.stderr.write('Warning: The Sphinx \'sphinx_rtd_theme\' HTML theme was not found. Make sure you have the theme installed to produce pretty HTML output. Falling back to the default theme.\n')
Packit 7b02f3
Packit 7b02f3
# Theme options are theme-specific and customize the look and feel of a theme
Packit 7b02f3
# further.  For a list of options available for each theme, see the
Packit 7b02f3
# documentation.
Packit 7b02f3
#html_theme_options = {}
Packit 7b02f3
Packit 7b02f3
# Add any paths that contain custom themes here, relative to this directory.
Packit 7b02f3
#html_theme_path = []
Packit 7b02f3
Packit 7b02f3
# The name for this set of Sphinx documents.  If None, it defaults to
Packit 7b02f3
# "<project> v<release> documentation".
Packit 7b02f3
#html_title = None
Packit 7b02f3
Packit 7b02f3
# A shorter title for the navigation bar.  Default is the same as html_title.
Packit 7b02f3
#html_short_title = None
Packit 7b02f3
Packit 7b02f3
# The name of an image file (relative to this directory) to place at the top
Packit 7b02f3
# of the sidebar.
Packit 7b02f3
#html_logo = None
Packit 7b02f3
Packit 7b02f3
# The name of an image file (within the static path) to use as favicon of the
Packit 7b02f3
# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
Packit 7b02f3
# pixels large.
Packit 7b02f3
#html_favicon = None
Packit 7b02f3
Packit 7b02f3
# Add any paths that contain custom static files (such as style sheets) here,
Packit 7b02f3
# relative to this directory. They are copied after the builtin static files,
Packit 7b02f3
# so a file named "default.css" will overwrite the builtin "default.css".
Packit 7b02f3
Packit 7b02f3
html_static_path = ['sphinx-static']
Packit 7b02f3
Packit 7b02f3
html_context = {
Packit 7b02f3
    'css_files': [
Packit 7b02f3
        '_static/theme_overrides.css',
Packit 7b02f3
    ],
Packit 7b02f3
}
Packit 7b02f3
Packit 7b02f3
# Add any extra paths that contain custom files (such as robots.txt or
Packit 7b02f3
# .htaccess) here, relative to this directory. These files are copied
Packit 7b02f3
# directly to the root of the documentation.
Packit 7b02f3
#html_extra_path = []
Packit 7b02f3
Packit 7b02f3
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
Packit 7b02f3
# using the given strftime format.
Packit 7b02f3
#html_last_updated_fmt = '%b %d, %Y'
Packit 7b02f3
Packit 7b02f3
# If true, SmartyPants will be used to convert quotes and dashes to
Packit 7b02f3
# typographically correct entities.
Packit 7b02f3
#html_use_smartypants = True
Packit 7b02f3
Packit 7b02f3
# Custom sidebar templates, maps document names to template names.
Packit 7b02f3
#html_sidebars = {}
Packit 7b02f3
Packit 7b02f3
# Additional templates that should be rendered to pages, maps page names to
Packit 7b02f3
# template names.
Packit 7b02f3
#html_additional_pages = {}
Packit 7b02f3
Packit 7b02f3
# If false, no module index is generated.
Packit 7b02f3
#html_domain_indices = True
Packit 7b02f3
Packit 7b02f3
# If false, no index is generated.
Packit 7b02f3
#html_use_index = True
Packit 7b02f3
Packit 7b02f3
# If true, the index is split into individual pages for each letter.
Packit 7b02f3
#html_split_index = False
Packit 7b02f3
Packit 7b02f3
# If true, links to the reST sources are added to the pages.
Packit 7b02f3
#html_show_sourcelink = True
Packit 7b02f3
Packit 7b02f3
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
Packit 7b02f3
#html_show_sphinx = True
Packit 7b02f3
Packit 7b02f3
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
Packit 7b02f3
#html_show_copyright = True
Packit 7b02f3
Packit 7b02f3
# If true, an OpenSearch description file will be output, and all pages will
Packit 7b02f3
# contain a <link> tag referring to it.  The value of this option must be the
Packit 7b02f3
# base URL from which the finished HTML is served.
Packit 7b02f3
#html_use_opensearch = ''
Packit 7b02f3
Packit 7b02f3
# This is the file name suffix for HTML files (e.g. ".xhtml").
Packit 7b02f3
#html_file_suffix = None
Packit 7b02f3
Packit 7b02f3
# Language to be used for generating the HTML full-text search index.
Packit 7b02f3
# Sphinx supports the following languages:
Packit 7b02f3
#   'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
Packit 7b02f3
#   'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
Packit 7b02f3
#html_search_language = 'en'
Packit 7b02f3
Packit 7b02f3
# A dictionary with options for the search language support, empty by default.
Packit 7b02f3
# Now only 'ja' uses this config value
Packit 7b02f3
#html_search_options = {'type': 'default'}
Packit 7b02f3
Packit 7b02f3
# The name of a javascript file (relative to the configuration directory) that
Packit 7b02f3
# implements a search results scorer. If empty, the default will be used.
Packit 7b02f3
#html_search_scorer = 'scorer.js'
Packit 7b02f3
Packit 7b02f3
# Output file base name for HTML help builder.
Packit 7b02f3
htmlhelp_basename = 'TheLinuxKerneldoc'
Packit 7b02f3
Packit 7b02f3
# -- Options for LaTeX output ---------------------------------------------
Packit 7b02f3
Packit 7b02f3
latex_elements = {
Packit 7b02f3
# The paper size ('letterpaper' or 'a4paper').
Packit 7b02f3
'papersize': 'a4paper',
Packit 7b02f3
Packit 7b02f3
# The font size ('10pt', '11pt' or '12pt').
Packit 7b02f3
'pointsize': '8pt',
Packit 7b02f3
Packit 7b02f3
# Latex figure (float) alignment
Packit 7b02f3
#'figure_align': 'htbp',
Packit 7b02f3
Packit 7b02f3
# Don't mangle with UTF-8 chars
Packit 7b02f3
'inputenc': '',
Packit 7b02f3
'utf8extra': '',
Packit 7b02f3
Packit 7b02f3
# Additional stuff for the LaTeX preamble.
Packit 7b02f3
    'preamble': '''
Packit 7b02f3
	% Use some font with UTF-8 support with XeLaTeX
Packit 7b02f3
        \\usepackage{fontspec}
Packit 7b02f3
        \\setsansfont{DejaVu Serif}
Packit 7b02f3
        \\setromanfont{DejaVu Sans}
Packit 7b02f3
        \\setmonofont{DejaVu Sans Mono}
Packit 7b02f3
Packit 7b02f3
     '''
Packit 7b02f3
}
Packit 7b02f3
Packit 7b02f3
# Fix reference escape troubles with Sphinx 1.4.x
Packit 7b02f3
if major == 1 and minor > 3:
Packit 7b02f3
    latex_elements['preamble']  += '\\renewcommand*{\\DUrole}[2]{ #2 }\n'
Packit 7b02f3
Packit 7b02f3
if major == 1 and minor <= 4:
Packit 7b02f3
    latex_elements['preamble']  += '\\usepackage[margin=0.5in, top=1in, bottom=1in]{geometry}'
Packit 7b02f3
elif major == 1 and (minor > 5 or (minor == 5 and patch >= 3)):
Packit 7b02f3
    latex_elements['sphinxsetup'] = 'hmargin=0.5in, vmargin=1in'
Packit 7b02f3
    latex_elements['preamble']  += '\\fvset{fontsize=auto}\n'
Packit 7b02f3
Packit 7b02f3
# Customize notice background colors on Sphinx < 1.6:
Packit 7b02f3
if major == 1 and minor < 6:
Packit 7b02f3
   latex_elements['preamble']  += '''
Packit 7b02f3
        \\usepackage{ifthen}
Packit 7b02f3
Packit 7b02f3
        % Put notes in color and let them be inside a table
Packit 7b02f3
	\\definecolor{NoteColor}{RGB}{204,255,255}
Packit 7b02f3
	\\definecolor{WarningColor}{RGB}{255,204,204}
Packit 7b02f3
	\\definecolor{AttentionColor}{RGB}{255,255,204}
Packit 7b02f3
	\\definecolor{ImportantColor}{RGB}{192,255,204}
Packit 7b02f3
	\\definecolor{OtherColor}{RGB}{204,204,204}
Packit 7b02f3
        \\newlength{\\mynoticelength}
Packit 7b02f3
        \\makeatletter\\newenvironment{coloredbox}[1]{%
Packit 7b02f3
	   \\setlength{\\fboxrule}{1pt}
Packit 7b02f3
	   \\setlength{\\fboxsep}{7pt}
Packit 7b02f3
	   \\setlength{\\mynoticelength}{\\linewidth}
Packit 7b02f3
	   \\addtolength{\\mynoticelength}{-2\\fboxsep}
Packit 7b02f3
	   \\addtolength{\\mynoticelength}{-2\\fboxrule}
Packit 7b02f3
           \\begin{lrbox}{\\@tempboxa}\\begin{minipage}{\\mynoticelength}}{\\end{minipage}\\end{lrbox}%
Packit 7b02f3
	   \\ifthenelse%
Packit 7b02f3
	      {\\equal{\\py@noticetype}{note}}%
Packit 7b02f3
	      {\\colorbox{NoteColor}{\\usebox{\\@tempboxa}}}%
Packit 7b02f3
	      {%
Packit 7b02f3
	         \\ifthenelse%
Packit 7b02f3
	         {\\equal{\\py@noticetype}{warning}}%
Packit 7b02f3
	         {\\colorbox{WarningColor}{\\usebox{\\@tempboxa}}}%
Packit 7b02f3
		 {%
Packit 7b02f3
	            \\ifthenelse%
Packit 7b02f3
	            {\\equal{\\py@noticetype}{attention}}%
Packit 7b02f3
	            {\\colorbox{AttentionColor}{\\usebox{\\@tempboxa}}}%
Packit 7b02f3
		    {%
Packit 7b02f3
	               \\ifthenelse%
Packit 7b02f3
	               {\\equal{\\py@noticetype}{important}}%
Packit 7b02f3
	               {\\colorbox{ImportantColor}{\\usebox{\\@tempboxa}}}%
Packit 7b02f3
	               {\\colorbox{OtherColor}{\\usebox{\\@tempboxa}}}%
Packit 7b02f3
		    }%
Packit 7b02f3
		 }%
Packit 7b02f3
	      }%
Packit 7b02f3
        }\\makeatother
Packit 7b02f3
Packit 7b02f3
        \\makeatletter
Packit 7b02f3
        \\renewenvironment{notice}[2]{%
Packit 7b02f3
          \\def\\py@noticetype{#1}
Packit 7b02f3
          \\begin{coloredbox}{#1}
Packit 7b02f3
          \\bf\\it
Packit 7b02f3
          \\par\\strong{#2}
Packit 7b02f3
          \\csname py@noticestart@#1\\endcsname
Packit 7b02f3
        }
Packit 7b02f3
	{
Packit 7b02f3
          \\csname py@noticeend@\\py@noticetype\\endcsname
Packit 7b02f3
          \\end{coloredbox}
Packit 7b02f3
        }
Packit 7b02f3
	\\makeatother
Packit 7b02f3
Packit 7b02f3
     '''
Packit 7b02f3
Packit 7b02f3
# With Sphinx 1.6, it is possible to change the Bg color directly
Packit 7b02f3
# by using:
Packit 7b02f3
#	\definecolor{sphinxnoteBgColor}{RGB}{204,255,255}
Packit 7b02f3
#	\definecolor{sphinxwarningBgColor}{RGB}{255,204,204}
Packit 7b02f3
#	\definecolor{sphinxattentionBgColor}{RGB}{255,255,204}
Packit 7b02f3
#	\definecolor{sphinximportantBgColor}{RGB}{192,255,204}
Packit 7b02f3
#
Packit 7b02f3
# However, it require to use sphinx heavy box with:
Packit 7b02f3
#
Packit 7b02f3
#	\renewenvironment{sphinxlightbox} {%
Packit 7b02f3
#		\\begin{sphinxheavybox}
Packit 7b02f3
#	}
Packit 7b02f3
#		\\end{sphinxheavybox}
Packit 7b02f3
#	}
Packit 7b02f3
#
Packit 7b02f3
# Unfortunately, the implementation is buggy: if a note is inside a
Packit 7b02f3
# table, it isn't displayed well. So, for now, let's use boring
Packit 7b02f3
# black and white notes.
Packit 7b02f3
Packit 7b02f3
# Grouping the document tree into LaTeX files. List of tuples
Packit 7b02f3
# (source start file, target name, title,
Packit 7b02f3
#  author, documentclass [howto, manual, or own class]).
Packit 7b02f3
# Sorted in alphabetical order
Packit 7b02f3
latex_documents = [
Packit 7b02f3
    ('admin-guide/index', 'linux-user.tex', 'Linux Kernel User Documentation',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('core-api/index', 'core-api.tex', 'The kernel core API manual',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('crypto/index', 'crypto-api.tex', 'Linux Kernel Crypto API manual',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('dev-tools/index', 'dev-tools.tex', 'Development tools for the Kernel',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('doc-guide/index', 'kernel-doc-guide.tex', 'Linux Kernel Documentation Guide',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('driver-api/index', 'driver-api.tex', 'The kernel driver API manual',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('filesystems/index', 'filesystems.tex', 'Linux Filesystems API',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('gpu/index', 'gpu.tex', 'Linux GPU Driver Developer\'s Guide',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('input/index', 'linux-input.tex', 'The Linux input driver subsystem',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('kernel-hacking/index', 'kernel-hacking.tex', 'Unreliable Guide To Hacking The Linux Kernel',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('media/index', 'media.tex', 'Linux Media Subsystem Documentation',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('networking/index', 'networking.tex', 'Linux Networking Documentation',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('process/index', 'development-process.tex', 'Linux Kernel Development Documentation',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('security/index', 'security.tex', 'The kernel security subsystem manual',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('sh/index', 'sh.tex', 'SuperH architecture implementation manual',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('sound/index', 'sound.tex', 'Linux Sound Subsystem Documentation',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
    ('userspace-api/index', 'userspace-api.tex', 'The Linux kernel user-space API guide',
Packit 7b02f3
     'The kernel development community', 'manual'),
Packit 7b02f3
]
Packit 7b02f3
Packit 7b02f3
# The name of an image file (relative to this directory) to place at the top of
Packit 7b02f3
# the title page.
Packit 7b02f3
#latex_logo = None
Packit 7b02f3
Packit 7b02f3
# For "manual" documents, if this is true, then toplevel headings are parts,
Packit 7b02f3
# not chapters.
Packit 7b02f3
#latex_use_parts = False
Packit 7b02f3
Packit 7b02f3
# If true, show page references after internal links.
Packit 7b02f3
#latex_show_pagerefs = False
Packit 7b02f3
Packit 7b02f3
# If true, show URL addresses after external links.
Packit 7b02f3
#latex_show_urls = False
Packit 7b02f3
Packit 7b02f3
# Documents to append as an appendix to all manuals.
Packit 7b02f3
#latex_appendices = []
Packit 7b02f3
Packit 7b02f3
# If false, no module index is generated.
Packit 7b02f3
#latex_domain_indices = True
Packit 7b02f3
Packit 7b02f3
Packit 7b02f3
# -- Options for manual page output ---------------------------------------
Packit 7b02f3
Packit 7b02f3
# One entry per manual page. List of tuples
Packit 7b02f3
# (source start file, name, description, authors, manual section).
Packit 7b02f3
man_pages = [
Packit 7b02f3
    (master_doc, 'thelinuxkernel', 'The Linux Kernel Documentation',
Packit 7b02f3
     [author], 1)
Packit 7b02f3
]
Packit 7b02f3
Packit 7b02f3
# If true, show URL addresses after external links.
Packit 7b02f3
#man_show_urls = False
Packit 7b02f3
Packit 7b02f3
Packit 7b02f3
# -- Options for Texinfo output -------------------------------------------
Packit 7b02f3
Packit 7b02f3
# Grouping the document tree into Texinfo files. List of tuples
Packit 7b02f3
# (source start file, target name, title, author,
Packit 7b02f3
#  dir menu entry, description, category)
Packit 7b02f3
texinfo_documents = [
Packit 7b02f3
    (master_doc, 'TheLinuxKernel', 'The Linux Kernel Documentation',
Packit 7b02f3
     author, 'TheLinuxKernel', 'One line description of project.',
Packit 7b02f3
     'Miscellaneous'),
Packit 7b02f3
]
Packit 7b02f3
Packit 7b02f3
# Documents to append as an appendix to all manuals.
Packit 7b02f3
#texinfo_appendices = []
Packit 7b02f3
Packit 7b02f3
# If false, no module index is generated.
Packit 7b02f3
#texinfo_domain_indices = True
Packit 7b02f3
Packit 7b02f3
# How to display URL addresses: 'footnote', 'no', or 'inline'.
Packit 7b02f3
#texinfo_show_urls = 'footnote'
Packit 7b02f3
Packit 7b02f3
# If true, do not generate a @detailmenu in the "Top" node's menu.
Packit 7b02f3
#texinfo_no_detailmenu = False
Packit 7b02f3
Packit 7b02f3
Packit 7b02f3
# -- Options for Epub output ----------------------------------------------
Packit 7b02f3
Packit 7b02f3
# Bibliographic Dublin Core info.
Packit 7b02f3
epub_title = project
Packit 7b02f3
epub_author = author
Packit 7b02f3
epub_publisher = author
Packit 7b02f3
epub_copyright = copyright
Packit 7b02f3
Packit 7b02f3
# The basename for the epub file. It defaults to the project name.
Packit 7b02f3
#epub_basename = project
Packit 7b02f3
Packit 7b02f3
# The HTML theme for the epub output. Since the default themes are not
Packit 7b02f3
# optimized for small screen space, using the same theme for HTML and epub
Packit 7b02f3
# output is usually not wise. This defaults to 'epub', a theme designed to save
Packit 7b02f3
# visual space.
Packit 7b02f3
#epub_theme = 'epub'
Packit 7b02f3
Packit 7b02f3
# The language of the text. It defaults to the language option
Packit 7b02f3
# or 'en' if the language is not set.
Packit 7b02f3
#epub_language = ''
Packit 7b02f3
Packit 7b02f3
# The scheme of the identifier. Typical schemes are ISBN or URL.
Packit 7b02f3
#epub_scheme = ''
Packit 7b02f3
Packit 7b02f3
# The unique identifier of the text. This can be a ISBN number
Packit 7b02f3
# or the project homepage.
Packit 7b02f3
#epub_identifier = ''
Packit 7b02f3
Packit 7b02f3
# A unique identification for the text.
Packit 7b02f3
#epub_uid = ''
Packit 7b02f3
Packit 7b02f3
# A tuple containing the cover image and cover page html template filenames.
Packit 7b02f3
#epub_cover = ()
Packit 7b02f3
Packit 7b02f3
# A sequence of (type, uri, title) tuples for the guide element of content.opf.
Packit 7b02f3
#epub_guide = ()
Packit 7b02f3
Packit 7b02f3
# HTML files that should be inserted before the pages created by sphinx.
Packit 7b02f3
# The format is a list of tuples containing the path and title.
Packit 7b02f3
#epub_pre_files = []
Packit 7b02f3
Packit 7b02f3
# HTML files that should be inserted after the pages created by sphinx.
Packit 7b02f3
# The format is a list of tuples containing the path and title.
Packit 7b02f3
#epub_post_files = []
Packit 7b02f3
Packit 7b02f3
# A list of files that should not be packed into the epub file.
Packit 7b02f3
epub_exclude_files = ['search.html']
Packit 7b02f3
Packit 7b02f3
# The depth of the table of contents in toc.ncx.
Packit 7b02f3
#epub_tocdepth = 3
Packit 7b02f3
Packit 7b02f3
# Allow duplicate toc entries.
Packit 7b02f3
#epub_tocdup = True
Packit 7b02f3
Packit 7b02f3
# Choose between 'default' and 'includehidden'.
Packit 7b02f3
#epub_tocscope = 'default'
Packit 7b02f3
Packit 7b02f3
# Fix unsupported image types using the Pillow.
Packit 7b02f3
#epub_fix_images = False
Packit 7b02f3
Packit 7b02f3
# Scale large images.
Packit 7b02f3
#epub_max_image_width = 0
Packit 7b02f3
Packit 7b02f3
# How to display URL addresses: 'footnote', 'no', or 'inline'.
Packit 7b02f3
#epub_show_urls = 'inline'
Packit 7b02f3
Packit 7b02f3
# If false, no index is generated.
Packit 7b02f3
#epub_use_index = True
Packit 7b02f3
Packit 7b02f3
#=======
Packit 7b02f3
# rst2pdf
Packit 7b02f3
#
Packit 7b02f3
# Grouping the document tree into PDF files. List of tuples
Packit 7b02f3
# (source start file, target name, title, author, options).
Packit 7b02f3
#
Packit 7b02f3
# See the Sphinx chapter of http://ralsina.me/static/manual.pdf
Packit 7b02f3
#
Packit 7b02f3
# FIXME: Do not add the index file here; the result will be too big. Adding
Packit 7b02f3
# multiple PDF files here actually tries to get the cross-referencing right
Packit 7b02f3
# *between* PDF files.
Packit 7b02f3
pdf_documents = [
Packit 7b02f3
    ('kernel-documentation', u'Kernel', u'Kernel', u'J. Random Bozo'),
Packit 7b02f3
]
Packit 7b02f3
Packit 7b02f3
# kernel-doc extension configuration for running Sphinx directly (e.g. by Read
Packit 7b02f3
# the Docs). In a normal build, these are supplied from the Makefile via command
Packit 7b02f3
# line arguments.
Packit 7b02f3
kerneldoc_bin = '../scripts/kernel-doc'
Packit 7b02f3
kerneldoc_srctree = '..'
Packit 7b02f3
Packit 7b02f3
# ------------------------------------------------------------------------------
Packit 7b02f3
# Since loadConfig overwrites settings from the global namespace, it has to be
Packit 7b02f3
# the last statement in the conf.py file
Packit 7b02f3
# ------------------------------------------------------------------------------
Packit 7b02f3
loadConfig(globals())