1f08c3bdfSopenharmony_ci# -*- coding: utf-8 -*- 2f08c3bdfSopenharmony_ci# 3f08c3bdfSopenharmony_ci# This file is execfile()d with the current directory set to its 4f08c3bdfSopenharmony_ci# containing dir. 5f08c3bdfSopenharmony_ci# 6f08c3bdfSopenharmony_ci# Note that not all possible configuration values are present in this 7f08c3bdfSopenharmony_ci# autogenerated file. 8f08c3bdfSopenharmony_ci# 9f08c3bdfSopenharmony_ci# All configuration values have a default; values that are commented out 10f08c3bdfSopenharmony_ci# serve to show the default. 11f08c3bdfSopenharmony_ci 12f08c3bdfSopenharmony_ci# If extensions (or modules to document with autodoc) are in another 13f08c3bdfSopenharmony_ci# directory, add these directories to sys.path here. If the directory 14f08c3bdfSopenharmony_ci# is relative to the documentation root, use os.path.abspath to make 15f08c3bdfSopenharmony_ci# it absolute, like shown here. 16f08c3bdfSopenharmony_ci# sys.path.insert(0, os.path.abspath('.')) 17f08c3bdfSopenharmony_ci 18f08c3bdfSopenharmony_ciimport os 19f08c3bdfSopenharmony_ciimport sys 20f08c3bdfSopenharmony_ciimport datetime 21f08c3bdfSopenharmony_ci 22f08c3bdfSopenharmony_ci# -- General configuration ------------------------------------------------ 23f08c3bdfSopenharmony_ci 24f08c3bdfSopenharmony_cineeds_sphinx = '1.7' 25f08c3bdfSopenharmony_ci 26f08c3bdfSopenharmony_ci# Add any Sphinx extension module names here, as strings. They can be 27f08c3bdfSopenharmony_ci# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 28f08c3bdfSopenharmony_ci# ones. 29f08c3bdfSopenharmony_cisys.path.insert(0, os.path.abspath('sphinx')) 30f08c3bdfSopenharmony_ciextensions = [ 31f08c3bdfSopenharmony_ci 'cdoc' 32f08c3bdfSopenharmony_ci , 'ir' 33f08c3bdfSopenharmony_ci] 34f08c3bdfSopenharmony_ci 35f08c3bdfSopenharmony_ci# support .md with python2 & python3 36f08c3bdfSopenharmony_ciif sys.version_info[0] > 2: 37f08c3bdfSopenharmony_ci from recommonmark.parser import CommonMarkParser 38f08c3bdfSopenharmony_ci source_parsers = { 39f08c3bdfSopenharmony_ci '.md': CommonMarkParser, 40f08c3bdfSopenharmony_ci } 41f08c3bdfSopenharmony_cielse: 42f08c3bdfSopenharmony_ci source_parsers = { 43f08c3bdfSopenharmony_ci '.md': 'recommonmark.parser.CommonMarkParser', 44f08c3bdfSopenharmony_ci } 45f08c3bdfSopenharmony_ci 46f08c3bdfSopenharmony_ci# Add any paths that contain templates here, relative to this directory. 47f08c3bdfSopenharmony_citemplates_path = ['templates'] 48f08c3bdfSopenharmony_ci 49f08c3bdfSopenharmony_ci# The suffix(es) of source filenames. 50f08c3bdfSopenharmony_ci# You can specify multiple suffix as a list of string: 51f08c3bdfSopenharmony_ci# 52f08c3bdfSopenharmony_cisource_suffix = ['.rst', '.md'] 53f08c3bdfSopenharmony_ci 54f08c3bdfSopenharmony_ci# The master toctree document. 55f08c3bdfSopenharmony_cimaster_doc = 'index' 56f08c3bdfSopenharmony_ci 57f08c3bdfSopenharmony_ci# General information about the project. 58f08c3bdfSopenharmony_ciproject = 'sparse' 59f08c3bdfSopenharmony_cicopyright = '2003 - ' + str(datetime.datetime.now().year) 60f08c3bdfSopenharmony_ciauthor = "sparse's development community" 61f08c3bdfSopenharmony_ci 62f08c3bdfSopenharmony_ci# The version info for the project you're documenting, acts as replacement for 63f08c3bdfSopenharmony_ci# |version| and |release|, also used in various other places throughout the 64f08c3bdfSopenharmony_ci# built documents. 65f08c3bdfSopenharmony_ci# 66f08c3bdfSopenharmony_ci# The full version, including alpha/beta/rc tags. 67f08c3bdfSopenharmony_cirelease = next(open('../Makefile', 'r')).split('=')[1].rstrip() 68f08c3bdfSopenharmony_ci# The short X.Y version. 69f08c3bdfSopenharmony_civersion = release.split('-')[0] 70f08c3bdfSopenharmony_ci 71f08c3bdfSopenharmony_ci# it's a C project, so: 72f08c3bdfSopenharmony_ciprimary_domain = 'c' 73f08c3bdfSopenharmony_ci# disable syntax highlight in non-code sections 74f08c3bdfSopenharmony_cihighlight_language = 'none' 75f08c3bdfSopenharmony_ci 76f08c3bdfSopenharmony_ci# The language for content autogenerated by Sphinx. Refer to documentation 77f08c3bdfSopenharmony_ci# for a list of supported languages. 78f08c3bdfSopenharmony_ci# 79f08c3bdfSopenharmony_ci# This is also used if you do content translation via gettext catalogs. 80f08c3bdfSopenharmony_ci# Usually you set "language" from the command line for these cases. 81f08c3bdfSopenharmony_cilanguage = None 82f08c3bdfSopenharmony_ci 83f08c3bdfSopenharmony_ci# List of patterns, relative to source directory, that match files and 84f08c3bdfSopenharmony_ci# directories to ignore when looking for source files. 85f08c3bdfSopenharmony_ci# This patterns also effect to html_static_path and html_extra_path 86f08c3bdfSopenharmony_ciexclude_patterns = ['build'] 87f08c3bdfSopenharmony_ci 88f08c3bdfSopenharmony_ci# The name of the Pygments (syntax highlighting) style to use. 89f08c3bdfSopenharmony_cipygments_style = 'sphinx' 90f08c3bdfSopenharmony_ci 91f08c3bdfSopenharmony_ci# If true, `todo` and `todoList` produce output, else they produce nothing. 92f08c3bdfSopenharmony_citodo_include_todos = True 93f08c3bdfSopenharmony_ci 94f08c3bdfSopenharmony_ci# -- Options for cdoc extension ------------------------------------------- 95f08c3bdfSopenharmony_ci 96f08c3bdfSopenharmony_cicdoc_srcdir = '..' 97f08c3bdfSopenharmony_ci 98f08c3bdfSopenharmony_ci# -- Options for HTML output ---------------------------------------------- 99f08c3bdfSopenharmony_ci 100f08c3bdfSopenharmony_ci# The theme to use for HTML and HTML Help pages. See the documentation for 101f08c3bdfSopenharmony_ci# a list of builtin themes. 102f08c3bdfSopenharmony_ci# 103f08c3bdfSopenharmony_citry: 104f08c3bdfSopenharmony_ci html_theme = 'sphinx_rtd_theme' 105f08c3bdfSopenharmony_ci import sphinx_rtd_theme 106f08c3bdfSopenharmony_ci html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] 107f08c3bdfSopenharmony_ciexcept: 108f08c3bdfSopenharmony_ci sys.stderr.write("Warning: theme '%s' not found\n" % html_theme) 109f08c3bdfSopenharmony_ci html_theme = 'classic' 110f08c3bdfSopenharmony_ci 111f08c3bdfSopenharmony_ci# html_theme_options = {} 112f08c3bdfSopenharmony_ci 113f08c3bdfSopenharmony_ci# Add any paths that contain custom static files (such as style sheets) here, 114f08c3bdfSopenharmony_ci# relative to this directory. They are copied after the builtin static files, 115f08c3bdfSopenharmony_ci# so a file named "default.css" will overwrite the builtin "default.css". 116f08c3bdfSopenharmony_cihtml_static_path = ['sphinx/static'] 117f08c3bdfSopenharmony_ci 118f08c3bdfSopenharmony_cihtml_context = { 119f08c3bdfSopenharmony_ci 'css_files': [ 120f08c3bdfSopenharmony_ci '_static/theme_overrides.css', 121f08c3bdfSopenharmony_ci ], 122f08c3bdfSopenharmony_ci} 123f08c3bdfSopenharmony_ci 124f08c3bdfSopenharmony_ci# Custom sidebar templates, must be a dictionary that maps document names 125f08c3bdfSopenharmony_ci# to template names. 126f08c3bdfSopenharmony_ci# 127f08c3bdfSopenharmony_ci# This is required for the alabaster theme 128f08c3bdfSopenharmony_ci# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars 129f08c3bdfSopenharmony_cihtml_sidebars = { } 130f08c3bdfSopenharmony_ci 131f08c3bdfSopenharmony_cihtml_logo = 'logo.svg' 132f08c3bdfSopenharmony_ci 133f08c3bdfSopenharmony_ci# -- Options for HTMLHelp output ------------------------------------------ 134f08c3bdfSopenharmony_ci 135f08c3bdfSopenharmony_ci# Output file base name for HTML help builder. 136f08c3bdfSopenharmony_cihtmlhelp_basename = 'sparsedoc' 137f08c3bdfSopenharmony_ci 138f08c3bdfSopenharmony_ci 139f08c3bdfSopenharmony_ci# -- Options for LaTeX output --------------------------------------------- 140f08c3bdfSopenharmony_ci 141f08c3bdfSopenharmony_cilatex_elements = { 142f08c3bdfSopenharmony_ci # The paper size ('letterpaper' or 'a4paper'). 143f08c3bdfSopenharmony_ci # 144f08c3bdfSopenharmony_ci 'papersize': 'a4paper', 145f08c3bdfSopenharmony_ci 146f08c3bdfSopenharmony_ci # The font size ('10pt', '11pt' or '12pt'). 147f08c3bdfSopenharmony_ci # 148f08c3bdfSopenharmony_ci # 'pointsize': '10pt', 149f08c3bdfSopenharmony_ci 150f08c3bdfSopenharmony_ci # Additional stuff for the LaTeX preamble. 151f08c3bdfSopenharmony_ci # 152f08c3bdfSopenharmony_ci # 'preamble': '', 153f08c3bdfSopenharmony_ci 154f08c3bdfSopenharmony_ci # Latex figure (float) alignment 155f08c3bdfSopenharmony_ci # 156f08c3bdfSopenharmony_ci # 'figure_align': 'htbp', 157f08c3bdfSopenharmony_ci} 158f08c3bdfSopenharmony_ci 159f08c3bdfSopenharmony_ci# Grouping the document tree into LaTeX files. List of tuples 160f08c3bdfSopenharmony_ci# (source start file, target name, title, 161f08c3bdfSopenharmony_ci# author, documentclass [howto, manual, or own class]). 162f08c3bdfSopenharmony_cilatex_documents = [ 163f08c3bdfSopenharmony_ci ('index', 'sparse.tex', u'sparse Documentation', author, 'manual'), 164f08c3bdfSopenharmony_ci] 165f08c3bdfSopenharmony_ci 166f08c3bdfSopenharmony_ci 167f08c3bdfSopenharmony_ci# -- Options for manual page output --------------------------------------- 168f08c3bdfSopenharmony_ci 169f08c3bdfSopenharmony_ci# One entry per manual page. List of tuples 170f08c3bdfSopenharmony_ci# (source start file, name, description, authors, manual section). 171f08c3bdfSopenharmony_ciman_pages = [ 172f08c3bdfSopenharmony_ci ('dev-options', 'dev-options', u'options for development', [author], 1), 173f08c3bdfSopenharmony_ci] 174f08c3bdfSopenharmony_ci 175f08c3bdfSopenharmony_ci 176f08c3bdfSopenharmony_ci# -- Options for Texinfo output ------------------------------------------- 177f08c3bdfSopenharmony_ci 178f08c3bdfSopenharmony_ci# Grouping the document tree into Texinfo files. List of tuples 179f08c3bdfSopenharmony_ci# (source start file, target name, title, author, 180f08c3bdfSopenharmony_ci# dir menu entry, description, category) 181f08c3bdfSopenharmony_citexinfo_documents = [ 182f08c3bdfSopenharmony_ci ('index', 'sparse', u'sparse Documentation', author, 'sparse', 'C semantic parser & checker', 'Software development'), 183f08c3bdfSopenharmony_ci] 184f08c3bdfSopenharmony_ci 185f08c3bdfSopenharmony_ci 186f08c3bdfSopenharmony_ci# vim: tabstop=4 187