1*5dd36a3bSchristos# -*- coding: utf-8 -*- 2*5dd36a3bSchristos# 3*5dd36a3bSchristos# libcbor documentation build configuration file, created by 4*5dd36a3bSchristos# sphinx-quickstart on Sun Jun 8 13:27:19 2014. 5*5dd36a3bSchristos# 6*5dd36a3bSchristos# This file is execfile()d with the current directory set to its 7*5dd36a3bSchristos# containing dir. 8*5dd36a3bSchristos# 9*5dd36a3bSchristos# Note that not all possible configuration values are present in this 10*5dd36a3bSchristos# autogenerated file. 11*5dd36a3bSchristos# 12*5dd36a3bSchristos# All configuration values have a default; values that are commented out 13*5dd36a3bSchristos# serve to show the default. 14*5dd36a3bSchristos 15*5dd36a3bSchristosimport sys 16*5dd36a3bSchristosimport os 17*5dd36a3bSchristos 18*5dd36a3bSchristos# If extensions (or modules to document with autodoc) are in another directory, 19*5dd36a3bSchristos# add these directories to sys.path here. If the directory is relative to the 20*5dd36a3bSchristos# documentation root, use os.path.abspath to make it absolute, like shown here. 21*5dd36a3bSchristos#sys.path.insert(0, os.path.abspath('.')) 22*5dd36a3bSchristossys.path.append(os.path.abspath(os.path.dirname(__file__))) 23*5dd36a3bSchristos 24*5dd36a3bSchristos# -- General configuration ------------------------------------------------ 25*5dd36a3bSchristos 26*5dd36a3bSchristos# If your documentation needs a minimal Sphinx version, state it here. 27*5dd36a3bSchristos#needs_sphinx = '1.0' 28*5dd36a3bSchristos 29*5dd36a3bSchristos# Add any Sphinx extension module names here, as strings. They can be 30*5dd36a3bSchristos# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 31*5dd36a3bSchristos# ones. 32*5dd36a3bSchristosextensions = [ 33*5dd36a3bSchristos 'breathe', 34*5dd36a3bSchristos 'sphinx.ext.mathjax', 35*5dd36a3bSchristos 'sphinx.ext.autodoc', 36*5dd36a3bSchristos 'sphinx.ext.ifconfig' 37*5dd36a3bSchristos] 38*5dd36a3bSchristos 39*5dd36a3bSchristosimport subprocess, os 40*5dd36a3bSchristos 41*5dd36a3bSchristos# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org 42*5dd36a3bSchristoson_rtd = os.environ.get('READTHEDOCS', None) == 'True' 43*5dd36a3bSchristos 44*5dd36a3bSchristosif on_rtd: 45*5dd36a3bSchristos print subprocess.check_output('cd ../..; mkdir doc/build; doxygen', shell=True) 46*5dd36a3bSchristos 47*5dd36a3bSchristos 48*5dd36a3bSchristosprint os.getcwd() 49*5dd36a3bSchristosprint os.getcwd() + '/../build/doxygen/xml' 50*5dd36a3bSchristos 51*5dd36a3bSchristosbreathe_projects = { 52*5dd36a3bSchristos 'libcbor': '../build/doxygen/xml' 53*5dd36a3bSchristos} 54*5dd36a3bSchristos 55*5dd36a3bSchristosbreathe_default_project = "libcbor" 56*5dd36a3bSchristos 57*5dd36a3bSchristos# Add any paths that contain templates here, relative to this directory. 58*5dd36a3bSchristostemplates_path = ['_templates'] 59*5dd36a3bSchristos 60*5dd36a3bSchristos# The suffix of source filenames. 61*5dd36a3bSchristossource_suffix = '.rst' 62*5dd36a3bSchristos 63*5dd36a3bSchristos# The encoding of source files. 64*5dd36a3bSchristos#source_encoding = 'utf-8-sig' 65*5dd36a3bSchristos 66*5dd36a3bSchristos# The master toctree document. 67*5dd36a3bSchristosmaster_doc = 'index' 68*5dd36a3bSchristos 69*5dd36a3bSchristos# General information about the project. 70*5dd36a3bSchristosproject = u'libcbor' 71*5dd36a3bSchristoscopyright = u'2014 - 2019, Pavel Kalvoda' 72*5dd36a3bSchristos 73*5dd36a3bSchristos# The version info for the project you're documenting, acts as replacement for 74*5dd36a3bSchristos# |version| and |release|, also used in various other places throughout the 75*5dd36a3bSchristos# built documents. 76*5dd36a3bSchristos# 77*5dd36a3bSchristos# The short X.Y version. 78*5dd36a3bSchristosversion = '0.5' 79*5dd36a3bSchristos# The full version, including alpha/beta/rc tags. 80*5dd36a3bSchristosrelease = '0.5.0' 81*5dd36a3bSchristos 82*5dd36a3bSchristos# The language for content autogenerated by Sphinx. Refer to documentation 83*5dd36a3bSchristos# for a list of supported languages. 84*5dd36a3bSchristos#language = None 85*5dd36a3bSchristos 86*5dd36a3bSchristos# There are two options for replacing |today|: either, you set today to some 87*5dd36a3bSchristos# non-false value, then it is used: 88*5dd36a3bSchristos#today = '' 89*5dd36a3bSchristos# Else, today_fmt is used as the format for a strftime call. 90*5dd36a3bSchristos#today_fmt = '%B %d, %Y' 91*5dd36a3bSchristos 92*5dd36a3bSchristos# List of patterns, relative to source directory, that match files and 93*5dd36a3bSchristos# directories to ignore when looking for source files. 94*5dd36a3bSchristos# https://github.com/michaeljones/breathe/issues/197 95*5dd36a3bSchristosexclude_patterns = ['breathe/*'] 96*5dd36a3bSchristos 97*5dd36a3bSchristos# The reST default role (used for this markup: `text`) to use for all 98*5dd36a3bSchristos# documents. 99*5dd36a3bSchristosbreathe_domain_by_extension = { 100*5dd36a3bSchristos "h" : "C", 101*5dd36a3bSchristos } 102*5dd36a3bSchristos#default_role = 'c:func' 103*5dd36a3bSchristosprimary_domain = "cpp" 104*5dd36a3bSchristos 105*5dd36a3bSchristos# If true, '()' will be appended to :func: etc. cross-reference text. 106*5dd36a3bSchristosadd_function_parentheses = True 107*5dd36a3bSchristos 108*5dd36a3bSchristos# If true, the current module name will be prepended to all description 109*5dd36a3bSchristos# unit titles (such as .. function::). 110*5dd36a3bSchristos#add_module_names = True 111*5dd36a3bSchristos 112*5dd36a3bSchristos# If true, sectionauthor and moduleauthor directives will be shown in the 113*5dd36a3bSchristos# output. They are ignored by default. 114*5dd36a3bSchristos#show_authors = False 115*5dd36a3bSchristos 116*5dd36a3bSchristos# The name of the Pygments (syntax highlighting) style to use. 117*5dd36a3bSchristospygments_style = 'sphinx' 118*5dd36a3bSchristos 119*5dd36a3bSchristos# A list of ignored prefixes for module index sorting. 120*5dd36a3bSchristos#modindex_common_prefix = [] 121*5dd36a3bSchristos 122*5dd36a3bSchristos# If true, keep warnings as "system message" paragraphs in the built documents. 123*5dd36a3bSchristos#keep_warnings = False 124*5dd36a3bSchristos 125*5dd36a3bSchristos 126*5dd36a3bSchristos# -- Options for HTML output ---------------------------------------------- 127*5dd36a3bSchristos 128*5dd36a3bSchristos# The theme to use for HTML and HTML Help pages. See the documentation for 129*5dd36a3bSchristos# a list of builtin themes. 130*5dd36a3bSchristoshtml_theme = 'default' 131*5dd36a3bSchristos 132*5dd36a3bSchristos# Theme options are theme-specific and customize the look and feel of a theme 133*5dd36a3bSchristos# further. For a list of options available for each theme, see the 134*5dd36a3bSchristos# documentation. 135*5dd36a3bSchristos#html_theme_options = {} 136*5dd36a3bSchristos 137*5dd36a3bSchristos# Add any paths that contain custom themes here, relative to this directory. 138*5dd36a3bSchristos#html_theme_path = [] 139*5dd36a3bSchristos 140*5dd36a3bSchristos# The name for this set of Sphinx documents. If None, it defaults to 141*5dd36a3bSchristos# "<project> v<release> documentation". 142*5dd36a3bSchristos#html_title = None 143*5dd36a3bSchristos 144*5dd36a3bSchristos# A shorter title for the navigation bar. Default is the same as html_title. 145*5dd36a3bSchristos#html_short_title = None 146*5dd36a3bSchristos 147*5dd36a3bSchristos# The name of an image file (relative to this directory) to place at the top 148*5dd36a3bSchristos# of the sidebar. 149*5dd36a3bSchristos#html_logo = None 150*5dd36a3bSchristos 151*5dd36a3bSchristos# The name of an image file (within the static path) to use as favicon of the 152*5dd36a3bSchristos# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 153*5dd36a3bSchristos# pixels large. 154*5dd36a3bSchristos#html_favicon = None 155*5dd36a3bSchristos 156*5dd36a3bSchristos# Add any paths that contain custom static files (such as style sheets) here, 157*5dd36a3bSchristos# relative to this directory. They are copied after the builtin static files, 158*5dd36a3bSchristos# so a file named "default.css" will overwrite the builtin "default.css". 159*5dd36a3bSchristoshtml_static_path = ['_static'] 160*5dd36a3bSchristos 161*5dd36a3bSchristos# Add any extra paths that contain custom files (such as robots.txt or 162*5dd36a3bSchristos# .htaccess) here, relative to this directory. These files are copied 163*5dd36a3bSchristos# directly to the root of the documentation. 164*5dd36a3bSchristos#html_extra_path = [] 165*5dd36a3bSchristos 166*5dd36a3bSchristos# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, 167*5dd36a3bSchristos# using the given strftime format. 168*5dd36a3bSchristos#html_last_updated_fmt = '%b %d, %Y' 169*5dd36a3bSchristos 170*5dd36a3bSchristos# If true, SmartyPants will be used to convert quotes and dashes to 171*5dd36a3bSchristos# typographically correct entities. 172*5dd36a3bSchristos#html_use_smartypants = True 173*5dd36a3bSchristos 174*5dd36a3bSchristos# Custom sidebar templates, maps document names to template names. 175*5dd36a3bSchristos#html_sidebars = {} 176*5dd36a3bSchristos 177*5dd36a3bSchristos# Additional templates that should be rendered to pages, maps page names to 178*5dd36a3bSchristos# template names. 179*5dd36a3bSchristos#html_additional_pages = {} 180*5dd36a3bSchristos 181*5dd36a3bSchristos# If false, no module index is generated. 182*5dd36a3bSchristos#html_domain_indices = True 183*5dd36a3bSchristos 184*5dd36a3bSchristos# If false, no index is generated. 185*5dd36a3bSchristos#html_use_index = True 186*5dd36a3bSchristos 187*5dd36a3bSchristos# If true, the index is split into individual pages for each letter. 188*5dd36a3bSchristos#html_split_index = False 189*5dd36a3bSchristos 190*5dd36a3bSchristos# If true, links to the reST sources are added to the pages. 191*5dd36a3bSchristos#html_show_sourcelink = True 192*5dd36a3bSchristos 193*5dd36a3bSchristos# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. 194*5dd36a3bSchristos#html_show_sphinx = True 195*5dd36a3bSchristos 196*5dd36a3bSchristos# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. 197*5dd36a3bSchristos#html_show_copyright = True 198*5dd36a3bSchristos 199*5dd36a3bSchristos# If true, an OpenSearch description file will be output, and all pages will 200*5dd36a3bSchristos# contain a <link> tag referring to it. The value of this option must be the 201*5dd36a3bSchristos# base URL from which the finished HTML is served. 202*5dd36a3bSchristos#html_use_opensearch = '' 203*5dd36a3bSchristos 204*5dd36a3bSchristos# This is the file name suffix for HTML files (e.g. ".xhtml"). 205*5dd36a3bSchristos#html_file_suffix = None 206*5dd36a3bSchristos 207*5dd36a3bSchristos# Output file base name for HTML help builder. 208*5dd36a3bSchristoshtmlhelp_basename = 'libcbordoc' 209*5dd36a3bSchristos 210*5dd36a3bSchristos 211*5dd36a3bSchristos# -- Options for LaTeX output --------------------------------------------- 212*5dd36a3bSchristos 213*5dd36a3bSchristoslatex_elements = { 214*5dd36a3bSchristos# The paper size ('letterpaper' or 'a4paper'). 215*5dd36a3bSchristos#'papersize': 'letterpaper', 216*5dd36a3bSchristos 217*5dd36a3bSchristos# The font size ('10pt', '11pt' or '12pt'). 218*5dd36a3bSchristos#'pointsize': '10pt', 219*5dd36a3bSchristos 220*5dd36a3bSchristos# Additional stuff for the LaTeX preamble. 221*5dd36a3bSchristos#'preamble': '', 222*5dd36a3bSchristos} 223*5dd36a3bSchristos 224*5dd36a3bSchristos# Grouping the document tree into LaTeX files. List of tuples 225*5dd36a3bSchristos# (source start file, target name, title, 226*5dd36a3bSchristos# author, documentclass [howto, manual, or own class]). 227*5dd36a3bSchristoslatex_documents = [ 228*5dd36a3bSchristos ('index', 'libcbor.tex', u'libcbor Documentation', 229*5dd36a3bSchristos u'Pavel Kalvoda', 'manual'), 230*5dd36a3bSchristos] 231*5dd36a3bSchristos 232*5dd36a3bSchristos# The name of an image file (relative to this directory) to place at the top of 233*5dd36a3bSchristos# the title page. 234*5dd36a3bSchristos#latex_logo = None 235*5dd36a3bSchristos 236*5dd36a3bSchristos# For "manual" documents, if this is true, then toplevel headings are parts, 237*5dd36a3bSchristos# not chapters. 238*5dd36a3bSchristos#latex_use_parts = False 239*5dd36a3bSchristos 240*5dd36a3bSchristos# If true, show page references after internal links. 241*5dd36a3bSchristos#latex_show_pagerefs = False 242*5dd36a3bSchristos 243*5dd36a3bSchristos# If true, show URL addresses after external links. 244*5dd36a3bSchristos#latex_show_urls = False 245*5dd36a3bSchristos 246*5dd36a3bSchristos# Documents to append as an appendix to all manuals. 247*5dd36a3bSchristos#latex_appendices = [] 248*5dd36a3bSchristos 249*5dd36a3bSchristos# If false, no module index is generated. 250*5dd36a3bSchristos#latex_domain_indices = True 251*5dd36a3bSchristos 252*5dd36a3bSchristos 253*5dd36a3bSchristos# -- Options for manual page output --------------------------------------- 254*5dd36a3bSchristos 255*5dd36a3bSchristos# One entry per manual page. List of tuples 256*5dd36a3bSchristos# (source start file, name, description, authors, manual section). 257*5dd36a3bSchristosman_pages = [ 258*5dd36a3bSchristos ('index', 'libcbor', u'libcbor Documentation', 259*5dd36a3bSchristos [u'Pavel Kalvoda'], 1) 260*5dd36a3bSchristos] 261*5dd36a3bSchristos 262*5dd36a3bSchristos# If true, show URL addresses after external links. 263*5dd36a3bSchristos#man_show_urls = False 264*5dd36a3bSchristos 265*5dd36a3bSchristos 266*5dd36a3bSchristos# -- Options for Texinfo output ------------------------------------------- 267*5dd36a3bSchristos 268*5dd36a3bSchristos# Grouping the document tree into Texinfo files. List of tuples 269*5dd36a3bSchristos# (source start file, target name, title, author, 270*5dd36a3bSchristos# dir menu entry, description, category) 271*5dd36a3bSchristostexinfo_documents = [ 272*5dd36a3bSchristos ('index', 'libcbor', u'libcbor Documentation', 273*5dd36a3bSchristos u'Pavel Kalvoda', 'libcbor', 'C library for parsing and generating CBOR.', 274*5dd36a3bSchristos 'Miscellaneous'), 275*5dd36a3bSchristos] 276*5dd36a3bSchristos 277*5dd36a3bSchristos# Documents to append as an appendix to all manuals. 278*5dd36a3bSchristos#texinfo_appendices = [] 279*5dd36a3bSchristos 280*5dd36a3bSchristos# If false, no module index is generated. 281*5dd36a3bSchristos#texinfo_domain_indices = True 282*5dd36a3bSchristos 283*5dd36a3bSchristos# How to display URL addresses: 'footnote', 'no', or 'inline'. 284*5dd36a3bSchristos#texinfo_show_urls = 'footnote' 285*5dd36a3bSchristos 286*5dd36a3bSchristos# If true, do not generate a @detailmenu in the "Top" node's menu. 287*5dd36a3bSchristos#texinfo_no_detailmenu = False 288*5dd36a3bSchristos 289*5dd36a3bSchristos 290*5dd36a3bSchristosif not on_rtd: # only import and set the theme if we're building docs locally 291*5dd36a3bSchristos import sphinx_rtd_theme 292*5dd36a3bSchristos html_theme = 'sphinx_rtd_theme' 293*5dd36a3bSchristos html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] 294*5dd36a3bSchristos 295*5dd36a3bSchristos# otherwise, readthedocs.org uses their theme by default, so no need to specify it 296*5dd36a3bSchristos 297