Blame doc/sphinx/conf.py.in

Packit 534379
# -*- coding: utf-8 -*-
Packit 534379
#
Packit 534379
Packit 534379
import sys
Packit 534379
import os
Packit 534379
import shutil
Packit 534379
Packit 534379
Packit 534379
Packit 534379
# Pandoc-based markdown parser for sphinx
Packit 534379
from recommonmark.parser import CommonMarkParser
Packit 534379
Packit 534379
# Enabled extensions
Packit 534379
extensions = [
Packit 534379
    'sphinx.ext.autodoc',
Packit 534379
    'sphinx.ext.autosummary',
Packit 534379
    'sphinx.ext.todo',
Packit 534379
    'sphinx.ext.coverage',
Packit 534379
    'sphinx.ext.napoleon',
Packit 534379
    'sphinx.ext.imgmath',
Packit 534379
    'sphinx.ext.ifconfig',
Packit 534379
    'sphinx.ext.viewcode',
Packit 534379
    'breathe'
Packit 534379
]
Packit 534379
Packit 534379
# numpy style documentation with Napoleon
Packit 534379
napoleon_google_docstring = False
Packit 534379
napoleon_use_param = False
Packit 534379
napoleon_use_ivar = True
Packit 534379
Packit 534379
# Use breathe to include doxygen documents
Packit 534379
breathe_projects = {'FPGA-API' : 'doxygen_xml/'}
Packit 534379
breathe_default_project = 'FPGA-API'
Packit 534379
Packit 534379
# Do not use this; if _contrib markdown plugin was used
Packit 534379
source_parsers = { '.md': CommonMarkParser}
Packit 534379
Packit 534379
# Add any paths that contain templates here, relative to this directory.
Packit 534379
templates_path = ['_templates']
Packit 534379
Packit 534379
# The encoding of source files.
Packit 534379
source_encoding = 'utf-8-sig'
Packit 534379
Packit 534379
# The suffix of source filenames.
Packit 534379
source_suffix = ['.md', '.rst']
Packit 534379
Packit 534379
# The master toctree document.
Packit 534379
master_doc = 'index'
Packit 534379
Packit 534379
# General information about the project.
Packit 534379
project = u'OPAE'
Packit 534379
copyright = u'2017 Intel Corporation'
Packit 534379
author = u'Intel DCG FPT SW'
Packit 534379
Packit 534379
# The version info for the project you're documenting
Packit 534379
#
Packit 534379
# The short X.Y version.
Packit 534379
version = u'@OPAE_VERSION@'
Packit 534379
Packit 534379
# The full version, including alpha/beta/rc tags.
Packit 534379
release = u'@OPAE_VERSION@'
Packit 534379
Packit 534379
# This is also used if you do content translation via gettext catalogs.
Packit 534379
# Usually you set "language" from the command line for these cases.
Packit 534379
language = 'en'
Packit 534379
Packit 534379
# List of patterns, relative to source directory, that match files and
Packit 534379
# directories to ignore when looking for source files.
Packit 534379
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
Packit 534379
Packit 534379
# The default language to highlight source code in.
Packit 534379
highlight_language = 'c'
Packit 534379
Packit 534379
# The name of the Pygments (syntax highlighting) style to use.
Packit 534379
pygments_style = 'sphinx'
Packit 534379
Packit 534379
# If true, `todo` and `todoList` produce output, else they produce nothing.
Packit 534379
todo_include_todos = True
Packit 534379
Packit 534379
# -- Options for HTML output ---------------------------------------------
Packit 534379
Packit 534379
# The theme to use for HTML and HTML Help pages.  See the documentation for
Packit 534379
# a list of builtin themes.
Packit 534379
Packit 534379
# html_extra_path = ['../../doc/html']
Packit 534379
Packit 534379
# Add any paths that contain custom themes here, relative to this directory.
Packit 534379
html_theme_path = ['_themes']
Packit 534379
Packit 534379
import sphinx_rtd_theme
Packit 534379
html_theme_path += [sphinx_rtd_theme.get_html_theme_path()]
Packit 534379
html_theme = "sphinx_rtd_theme"
Packit 534379
Packit 534379
# Theme options are theme-specific and customize the look and feel of a theme
Packit 534379
# further.  For a list of options available for each theme, see the
Packit 534379
# documentation.
Packit 534379
#html_theme_options = {}
Packit 534379
Packit 534379
# The name for this set of Sphinx documents.  If None, it defaults to
Packit 534379
# "<project> v<release> documentation".
Packit 534379
html_title = u'OPAE'
Packit 534379
Packit 534379
# Output file base name for HTML help builder.
Packit 534379
htmlhelp_basename = 'IntelFPGADocumentation'
Packit 534379
Packit 534379
# -- Options for LaTeX output ---------------------------------------------
Packit 534379
Packit 534379
latex_elements = {
Packit 534379
# The paper size ('letterpaper' or 'a4paper').
Packit 534379
#'papersize': 'letterpaper',
Packit 534379
Packit 534379
# The font size ('10pt', '11pt' or '12pt').
Packit 534379
#'pointsize': '10pt',
Packit 534379
Packit 534379
# Additional stuff for the LaTeX preamble.
Packit 534379
#'preamble': '',
Packit 534379
Packit 534379
# Latex figure (float) alignment
Packit 534379
#'figure_align': 'htbp',
Packit 534379
}
Packit 534379
Packit 534379
# Grouping the document tree into LaTeX files. List of tuples
Packit 534379
# (source start file, target name, title,
Packit 534379
#  author, documentclass [howto, manual, or own class]).
Packit 534379
Packit 534379
# Split document toctrees
Packit 534379
quick_start_doc = 'docs/fpga_api/quick_start/readme'
Packit 534379
prog_guide_doc = 'docs/fpga_api/prog_guide/readme'
Packit 534379
drv_arch_doc = 'docs/drv_arch/drv_arch'
Packit 534379
#hssi_config_doc = 'docs/fpga_tools/hssi_config/readme'
Packit 534379
#hssi_loopback_doc = 'docs/fpga_tools/hssi_loopback/readme'
Packit 534379
hssi_tuner_doc = 'docs/fpga_tools/mhssi_tuner/readme'
Packit 534379
alaska_fw_loader_doc = 'docs/fpga_tools/alaska_fw_loader/readme'
Packit 534379
fpga_tools_doc = 'docs/fpga_tools/readme'
Packit 534379
ase_userguide_doc = 'docs/ase_userguide/ase_userguide'
Packit 534379
api_build_doc = 'docs/build_chain/fpga_api/api_build'
Packit 534379
driver_build_doc = 'docs/build_chain/fpga_driver/driver_build'
Packit 534379
install_guide_doc = 'docs/install_guide/installation_guide'
Packit 534379
Packit 534379
Packit 534379
latex_documents = [
Packit 534379
    (quick_start_doc, 'quick_start.tex', u'Intel FPGA Quick Start Guide', u'FPT SW Development Team', 'howto'),
Packit 534379
    (prog_guide_doc, 'prog_guide.tex', u'Intel FPGA Programming Guide', u'FPT SW Development Team', 'howto'),
Packit 534379
    (fpga_tools_doc, 'fpga_tools.tex', u'Intel FPGA Tools', u'FPT SW Development Team', 'howto'),
Packit 534379
    # (fpgainfo_doc, 'fpgainfo.tex', u'fpgainfo', u'FPT SW Development Team', 'howto'),
Packit 534379
    (ase_userguide_doc, 'ase_userguide.tex', u'Intel AFU Simulation Environment (ASE) User Guide', u'FPT SW Development Team', 'howto'),
Packit 534379
    (api_build_doc, 'api_build.tex', u'apiBuild', u'FPT SW Development Team', 'howto'),
Packit 534379
    (driver_build_doc, 'driver_build.tex', u'Building the Intel FPGA driver', u'FPT SW Development Team', 'howto'),
Packit 534379
    (install_guide_doc, 'install_guide.tex', u'Intel FPGA Software Stack Installation Guide', u'FPT SW Development Team', 'howto'),
Packit 534379
    (drv_arch_doc, 'drv_arch.tex', u'FPGA Driver Architecture', u'FPT SW Development Team', 'manual'),
Packit 534379
    # (hssi_config_doc, 'hssi_config.tex', u'HSSI config manual', u'FPT SW Development Team', 'howto'),
Packit 534379
    # (hssi_loopback_doc, 'hssi_loopback.tex', u'HSSI loopback manual', u'FPT SW Development Team', 'manual'),
Packit 534379
    ]
Packit 534379
Packit 534379
# -- Options for manual page output ---------------------------------------
Packit 534379
Packit 534379
# One entry per manual page. List of tuples
Packit 534379
# (source start file, name, description, authors, manual section).
Packit 534379
man_pages = [
Packit 534379
#    (master_doc, 'intel-fpga', u'Intel FPGA Documentation',
Packit 534379
#     [author], 1),
Packit 534379
    ("docs/fpga_tools/fpgabist/fpgabist", 'fpgabist', u'Perform self-diagnostic tests on supported FPGA platforms', [author], 8),
Packit 534379
    ("docs/fpga_tools/fpgaport/fpgaport", 'fpgaport', u'Enable/Disable virtualization', [author], 8),
Packit 534379
    ("docs/fpga_tools/fpgaflash/fpgaflash", 'fpgaflash', u'Update static FIM image loaded from flash at power-on', [author], 8),
Packit 534379
    ("docs/fpga_tools/fpgaflash/superrsu", 'super-rsu', u'Flash image files and command an Intel PAC device to perform RSU', [author], 8),
Packit 534379
    ("docs/fpga_tools/coreidle/coreidle", 'coreidle', u'Adjust number of active cores to account for FPGA power consumption', [author], 8),
Packit 534379
    ("docs/fpga_tools/fpgaconf/fpgaconf", 'fpgaconf', u'Configure green bitstreams to an FPGA', [author], 8),
Packit 534379
    ("docs/fpga_tools/fpgad/fpgad", 'fpgad', u'Log errors and generate events', [author], 8),
Packit 534379
    ("docs/fpga_tools/fpgadiag/README", 'fpgadiag', u'FPGA diagnosis and testing tool', [author], 8),
Packit 534379
    ("docs/fpga_tools/fpgainfo/fpgainfo", 'fpgainfo', u'FPGA information tool', [author], 8),
Packit 534379
    ("docs/fpga_tools/fpgamux/fpgamux", 'fpgamux', u'Software MUX for running multiple AFU tests in one GBS', [author], 8),
Packit 534379
    ("docs/fpga_tools/pac_hssi_config/pac_hssi_config", 'pac_hssi_config', u'Access Ethernet transceivers for designs', [author], 8),
Packit 534379
    ("docs/fpga_tools/hssi_loopback/readme", 'hssi_loopback', u'Interact with a packet generator GBS', [author], 8),
Packit 534379
    ("docs/fpga_tools/hssi_config/readme", 'hssi_config', u'Read from or write to HSSI registers', [author], 8),
Packit 534379
    ("docs/fpga_tools/mmlink/mmlink", 'mmlink', u'Enable remote SignalTAP debugging', [author], 8),
Packit 534379
    ("docs/fpga_tools/userclk/userclk", 'userclk', u'Set AFU high and low clock frequency', [author], 8),
Packit 534379
    ("docs/fpga_api/fpga_api", 'fpga_api', u'OPAE C API', [author], 8),
Packit 534379
    ("docs/fpga_api/fpga_cxx_api", 'fpga_cxx_api', u'OPAE C++ API', [author], 8),
Packit 534379
    ("docs/fpga_api/fpga_python_api", 'fpga_python_api', u'OPAE Python API', [author], 8),
Packit 534379
    ("docs/fpga_api/plug_guide/readme", 'plug_guide', u'OPAE Plugin API', [author], 8),
Packit 534379
    ("docs/fpga_api/prog_guide/readme", 'prog_guide', u'OPAE Programming Guide', [author], 8),
Packit 534379
    ("docs/fpga_api/quick_start/readme", 'quick_start', u'OPAE Quick Start Guide', [author], 8),
Packit 534379
    ("index", 'index', u'Manual page index', [author], 8)
Packit 534379
Packit 534379
]
Packit 534379
Packit 534379
# If true, show URL addresses after external links.
Packit 534379
#man_show_urls = False
Packit 534379
Packit 534379
# Example configuration for intersphinx: refer to the Python standard library.
Packit 534379
intersphinx_mapping = {'https://docs.python.org/': None}
Packit 534379
Packit 534379
# app setup hook to enable AutoStructify (for ```eval_rst blocks)
Packit 534379
def setup(app):
Packit 534379
    app.add_config_value('recommonmark_config', {
Packit 534379
        # 'url_resolver': lambda url: github_doc_root + url,
Packit 534379
        'auto_toc_tree_section': 'Contents',
Packit 534379
        'enable_eval_rst': True,
Packit 534379
        'enable_auto_doc_ref': True,
Packit 534379
        'enable_math': True,
Packit 534379
        'enable_inline_math': True,
Packit 534379
        }, True)