1*03ce13f7SAndroid Build Coastguard Worker# -*- coding: utf-8 -*- 2*03ce13f7SAndroid Build Coastguard Worker# 3*03ce13f7SAndroid Build Coastguard Worker# Subzero documentation build configuration file. 4*03ce13f7SAndroid Build Coastguard Worker# 5*03ce13f7SAndroid Build Coastguard Worker# This file is execfile()d with the current directory set to its containing dir. 6*03ce13f7SAndroid Build Coastguard Worker# 7*03ce13f7SAndroid Build Coastguard Worker# Note that not all possible configuration values are present in this 8*03ce13f7SAndroid Build Coastguard Worker# autogenerated file. 9*03ce13f7SAndroid Build Coastguard Worker# 10*03ce13f7SAndroid Build Coastguard Worker# All configuration values have a default; values that are commented out 11*03ce13f7SAndroid Build Coastguard Worker# serve to show the default. 12*03ce13f7SAndroid Build Coastguard Worker 13*03ce13f7SAndroid Build Coastguard Workerimport sys, os 14*03ce13f7SAndroid Build Coastguard Workerfrom datetime import date 15*03ce13f7SAndroid Build Coastguard Worker 16*03ce13f7SAndroid Build Coastguard Worker# If extensions (or modules to document with autodoc) are in another directory, 17*03ce13f7SAndroid Build Coastguard Worker# add these directories to sys.path here. If the directory is relative to the 18*03ce13f7SAndroid Build Coastguard Worker# documentation root, use os.path.abspath to make it absolute, like shown here. 19*03ce13f7SAndroid Build Coastguard Worker#sys.path.insert(0, os.path.abspath('.')) 20*03ce13f7SAndroid Build Coastguard Worker 21*03ce13f7SAndroid Build Coastguard Worker# -- General configuration ----------------------------------------------------- 22*03ce13f7SAndroid Build Coastguard Worker 23*03ce13f7SAndroid Build Coastguard Worker# If your documentation needs a minimal Sphinx version, state it here. 24*03ce13f7SAndroid Build Coastguard Worker#needs_sphinx = '1.0' 25*03ce13f7SAndroid Build Coastguard Worker 26*03ce13f7SAndroid Build Coastguard Worker# Add any Sphinx extension module names here, as strings. They can be extensions 27*03ce13f7SAndroid Build Coastguard Worker# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 28*03ce13f7SAndroid Build Coastguard Workerextensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo'] 29*03ce13f7SAndroid Build Coastguard Worker 30*03ce13f7SAndroid Build Coastguard Worker# Add any paths that contain templates here, relative to this directory. 31*03ce13f7SAndroid Build Coastguard Workertemplates_path = ['_templates'] 32*03ce13f7SAndroid Build Coastguard Worker 33*03ce13f7SAndroid Build Coastguard Worker# The suffix of source filenames. 34*03ce13f7SAndroid Build Coastguard Workersource_suffix = '.rst' 35*03ce13f7SAndroid Build Coastguard Worker 36*03ce13f7SAndroid Build Coastguard Worker# The encoding of source files. 37*03ce13f7SAndroid Build Coastguard Worker#source_encoding = 'utf-8-sig' 38*03ce13f7SAndroid Build Coastguard Worker 39*03ce13f7SAndroid Build Coastguard Worker# The master toctree document. 40*03ce13f7SAndroid Build Coastguard Workermaster_doc = 'index' 41*03ce13f7SAndroid Build Coastguard Worker 42*03ce13f7SAndroid Build Coastguard Worker# General information about the project. 43*03ce13f7SAndroid Build Coastguard Workerproject = u'Subzero' 44*03ce13f7SAndroid Build Coastguard Workercopyright = u'2014-%d, Subzero Project' % date.today().year 45*03ce13f7SAndroid Build Coastguard Worker 46*03ce13f7SAndroid Build Coastguard Worker# The version info for the project you're documenting, acts as replacement for 47*03ce13f7SAndroid Build Coastguard Worker# |version| and |release|, also used in various other places throughout the 48*03ce13f7SAndroid Build Coastguard Worker# built documents. 49*03ce13f7SAndroid Build Coastguard Worker# 50*03ce13f7SAndroid Build Coastguard Worker# The short X.Y version. 51*03ce13f7SAndroid Build Coastguard Workerversion = '0.0' 52*03ce13f7SAndroid Build Coastguard Worker# The full version, including alpha/beta/rc tags. 53*03ce13f7SAndroid Build Coastguard Workerrelease = '0.0' 54*03ce13f7SAndroid Build Coastguard Worker 55*03ce13f7SAndroid Build Coastguard Worker# The language for content autogenerated by Sphinx. Refer to documentation 56*03ce13f7SAndroid Build Coastguard Worker# for a list of supported languages. 57*03ce13f7SAndroid Build Coastguard Worker#language = None 58*03ce13f7SAndroid Build Coastguard Worker 59*03ce13f7SAndroid Build Coastguard Worker# There are two options for replacing |today|: either, you set today to some 60*03ce13f7SAndroid Build Coastguard Worker# non-false value, then it is used: 61*03ce13f7SAndroid Build Coastguard Worker#today = '' 62*03ce13f7SAndroid Build Coastguard Worker# Else, today_fmt is used as the format for a strftime call. 63*03ce13f7SAndroid Build Coastguard Workertoday_fmt = '%Y-%m-%d' 64*03ce13f7SAndroid Build Coastguard Worker 65*03ce13f7SAndroid Build Coastguard Worker# List of patterns, relative to source directory, that match files and 66*03ce13f7SAndroid Build Coastguard Worker# directories to ignore when looking for source files. 67*03ce13f7SAndroid Build Coastguard Workerexclude_patterns = ['_build'] 68*03ce13f7SAndroid Build Coastguard Worker 69*03ce13f7SAndroid Build Coastguard Worker# The reST default role (used for this markup: `text`) to use for all documents. 70*03ce13f7SAndroid Build Coastguard Worker#default_role = None 71*03ce13f7SAndroid Build Coastguard Worker 72*03ce13f7SAndroid Build Coastguard Worker# If true, '()' will be appended to :func: etc. cross-reference text. 73*03ce13f7SAndroid Build Coastguard Worker#add_function_parentheses = True 74*03ce13f7SAndroid Build Coastguard Worker 75*03ce13f7SAndroid Build Coastguard Worker# If true, the current module name will be prepended to all description 76*03ce13f7SAndroid Build Coastguard Worker# unit titles (such as .. function::). 77*03ce13f7SAndroid Build Coastguard Worker#add_module_names = True 78*03ce13f7SAndroid Build Coastguard Worker 79*03ce13f7SAndroid Build Coastguard Worker# If true, sectionauthor and moduleauthor directives will be shown in the 80*03ce13f7SAndroid Build Coastguard Worker# output. They are ignored by default. 81*03ce13f7SAndroid Build Coastguard Workershow_authors = True 82*03ce13f7SAndroid Build Coastguard Worker 83*03ce13f7SAndroid Build Coastguard Worker# The name of the Pygments (syntax highlighting) style to use. 84*03ce13f7SAndroid Build Coastguard Workerpygments_style = 'friendly' 85*03ce13f7SAndroid Build Coastguard Worker 86*03ce13f7SAndroid Build Coastguard Worker# A list of ignored prefixes for module index sorting. 87*03ce13f7SAndroid Build Coastguard Worker#modindex_common_prefix = [] 88*03ce13f7SAndroid Build Coastguard Worker 89*03ce13f7SAndroid Build Coastguard Worker 90*03ce13f7SAndroid Build Coastguard Worker# -- Options for HTML output --------------------------------------------------- 91*03ce13f7SAndroid Build Coastguard Worker 92*03ce13f7SAndroid Build Coastguard Worker# The theme to use for HTML and HTML Help pages. See the documentation for 93*03ce13f7SAndroid Build Coastguard Worker# a list of builtin themes. 94*03ce13f7SAndroid Build Coastguard Worker# html_theme = 'subzero-theme' 95*03ce13f7SAndroid Build Coastguard Worker 96*03ce13f7SAndroid Build Coastguard Worker# Theme options are theme-specific and customize the look and feel of a theme 97*03ce13f7SAndroid Build Coastguard Worker# further. For a list of options available for each theme, see the 98*03ce13f7SAndroid Build Coastguard Worker# documentation. 99*03ce13f7SAndroid Build Coastguard Workerhtml_theme_options = { "nosidebar": True } 100*03ce13f7SAndroid Build Coastguard Worker 101*03ce13f7SAndroid Build Coastguard Worker# Add any paths that contain custom themes here, relative to this directory. 102*03ce13f7SAndroid Build Coastguard Workerhtml_theme_path = ["_themes"] 103*03ce13f7SAndroid Build Coastguard Worker 104*03ce13f7SAndroid Build Coastguard Worker# The name for this set of Sphinx documents. If None, it defaults to 105*03ce13f7SAndroid Build Coastguard Worker# "<project> v<release> documentation". 106*03ce13f7SAndroid Build Coastguard Worker#html_title = None 107*03ce13f7SAndroid Build Coastguard Worker 108*03ce13f7SAndroid Build Coastguard Worker# A shorter title for the navigation bar. Default is the same as html_title. 109*03ce13f7SAndroid Build Coastguard Worker#html_short_title = None 110*03ce13f7SAndroid Build Coastguard Worker 111*03ce13f7SAndroid Build Coastguard Worker# The name of an image file (relative to this directory) to place at the top 112*03ce13f7SAndroid Build Coastguard Worker# of the sidebar. 113*03ce13f7SAndroid Build Coastguard Worker#html_logo = None 114*03ce13f7SAndroid Build Coastguard Worker 115*03ce13f7SAndroid Build Coastguard Worker# The name of an image file (within the static path) to use as favicon of the 116*03ce13f7SAndroid Build Coastguard Worker# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 117*03ce13f7SAndroid Build Coastguard Worker# pixels large. 118*03ce13f7SAndroid Build Coastguard Worker#html_favicon = None 119*03ce13f7SAndroid Build Coastguard Worker 120*03ce13f7SAndroid Build Coastguard Worker# Add any paths that contain custom static files (such as style sheets) here, 121*03ce13f7SAndroid Build Coastguard Worker# relative to this directory. They are copied after the builtin static files, 122*03ce13f7SAndroid Build Coastguard Worker# so a file named "default.css" will overwrite the builtin "default.css". 123*03ce13f7SAndroid Build Coastguard Workerhtml_static_path = ['_static'] 124*03ce13f7SAndroid Build Coastguard Worker 125*03ce13f7SAndroid Build Coastguard Worker# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, 126*03ce13f7SAndroid Build Coastguard Worker# using the given strftime format. 127*03ce13f7SAndroid Build Coastguard Workerhtml_last_updated_fmt = '%Y-%m-%d' 128*03ce13f7SAndroid Build Coastguard Worker 129*03ce13f7SAndroid Build Coastguard Worker# If true, SmartyPants will be used to convert quotes and dashes to 130*03ce13f7SAndroid Build Coastguard Worker# typographically correct entities. 131*03ce13f7SAndroid Build Coastguard Worker#html_use_smartypants = True 132*03ce13f7SAndroid Build Coastguard Worker 133*03ce13f7SAndroid Build Coastguard Worker# Custom sidebar templates, maps document names to template names. 134*03ce13f7SAndroid Build Coastguard Workerhtml_sidebars = {'index': 'indexsidebar.html'} 135*03ce13f7SAndroid Build Coastguard Worker 136*03ce13f7SAndroid Build Coastguard Worker# Additional templates that should be rendered to pages, maps page names to 137*03ce13f7SAndroid Build Coastguard Worker# template names. 138*03ce13f7SAndroid Build Coastguard Worker#html_additional_pages = {} 139*03ce13f7SAndroid Build Coastguard Worker 140*03ce13f7SAndroid Build Coastguard Worker# If false, no module index is generated. 141*03ce13f7SAndroid Build Coastguard Worker#html_domain_indices = True 142*03ce13f7SAndroid Build Coastguard Worker 143*03ce13f7SAndroid Build Coastguard Worker# If false, no index is generated. 144*03ce13f7SAndroid Build Coastguard Worker#html_use_index = True 145*03ce13f7SAndroid Build Coastguard Worker 146*03ce13f7SAndroid Build Coastguard Worker# If true, the index is split into individual pages for each letter. 147*03ce13f7SAndroid Build Coastguard Worker#html_split_index = False 148*03ce13f7SAndroid Build Coastguard Worker 149*03ce13f7SAndroid Build Coastguard Worker# If true, links to the reST sources are added to the pages. 150*03ce13f7SAndroid Build Coastguard Workerhtml_show_sourcelink = True 151*03ce13f7SAndroid Build Coastguard Worker 152*03ce13f7SAndroid Build Coastguard Worker# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. 153*03ce13f7SAndroid Build Coastguard Worker#html_show_sphinx = True 154*03ce13f7SAndroid Build Coastguard Worker 155*03ce13f7SAndroid Build Coastguard Worker# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. 156*03ce13f7SAndroid Build Coastguard Worker#html_show_copyright = True 157*03ce13f7SAndroid Build Coastguard Worker 158*03ce13f7SAndroid Build Coastguard Worker# If true, an OpenSearch description file will be output, and all pages will 159*03ce13f7SAndroid Build Coastguard Worker# contain a <link> tag referring to it. The value of this option must be the 160*03ce13f7SAndroid Build Coastguard Worker# base URL from which the finished HTML is served. 161*03ce13f7SAndroid Build Coastguard Worker#html_use_opensearch = '' 162*03ce13f7SAndroid Build Coastguard Worker 163*03ce13f7SAndroid Build Coastguard Worker# This is the file name suffix for HTML files (e.g. ".xhtml"). 164*03ce13f7SAndroid Build Coastguard Worker#html_file_suffix = None 165*03ce13f7SAndroid Build Coastguard Worker 166*03ce13f7SAndroid Build Coastguard Worker# Output file base name for HTML help builder. 167*03ce13f7SAndroid Build Coastguard Workerhtmlhelp_basename = 'Subzerodoc' 168*03ce13f7SAndroid Build Coastguard Worker 169*03ce13f7SAndroid Build Coastguard Worker 170*03ce13f7SAndroid Build Coastguard Worker# -- Options for LaTeX output -------------------------------------------------- 171*03ce13f7SAndroid Build Coastguard Worker 172*03ce13f7SAndroid Build Coastguard Workerlatex_elements = { 173*03ce13f7SAndroid Build Coastguard Worker# The paper size ('letterpaper' or 'a4paper'). 174*03ce13f7SAndroid Build Coastguard Worker#'papersize': 'letterpaper', 175*03ce13f7SAndroid Build Coastguard Worker 176*03ce13f7SAndroid Build Coastguard Worker# The font size ('10pt', '11pt' or '12pt'). 177*03ce13f7SAndroid Build Coastguard Worker#'pointsize': '10pt', 178*03ce13f7SAndroid Build Coastguard Worker 179*03ce13f7SAndroid Build Coastguard Worker# Additional stuff for the LaTeX preamble. 180*03ce13f7SAndroid Build Coastguard Worker#'preamble': '', 181*03ce13f7SAndroid Build Coastguard Worker} 182*03ce13f7SAndroid Build Coastguard Worker 183*03ce13f7SAndroid Build Coastguard Worker# Grouping the document tree into LaTeX files. List of tuples 184*03ce13f7SAndroid Build Coastguard Worker# (source start file, target name, title, author, documentclass [howto/manual]). 185*03ce13f7SAndroid Build Coastguard Workerlatex_documents = [ 186*03ce13f7SAndroid Build Coastguard Worker ('index', 'SUBZERO.tex', u'SUBZERO Documentation', 187*03ce13f7SAndroid Build Coastguard Worker u'SUBZERO project', 'manual'), 188*03ce13f7SAndroid Build Coastguard Worker] 189*03ce13f7SAndroid Build Coastguard Worker 190*03ce13f7SAndroid Build Coastguard Worker# The name of an image file (relative to this directory) to place at the top of 191*03ce13f7SAndroid Build Coastguard Worker# the title page. 192*03ce13f7SAndroid Build Coastguard Worker#latex_logo = None 193*03ce13f7SAndroid Build Coastguard Worker 194*03ce13f7SAndroid Build Coastguard Worker# For "manual" documents, if this is true, then toplevel headings are parts, 195*03ce13f7SAndroid Build Coastguard Worker# not chapters. 196*03ce13f7SAndroid Build Coastguard Worker#latex_use_parts = False 197*03ce13f7SAndroid Build Coastguard Worker 198*03ce13f7SAndroid Build Coastguard Worker# If true, show page references after internal links. 199*03ce13f7SAndroid Build Coastguard Worker#latex_show_pagerefs = False 200*03ce13f7SAndroid Build Coastguard Worker 201*03ce13f7SAndroid Build Coastguard Worker# If true, show URL addresses after external links. 202*03ce13f7SAndroid Build Coastguard Worker#latex_show_urls = False 203*03ce13f7SAndroid Build Coastguard Worker 204*03ce13f7SAndroid Build Coastguard Worker# Documents to append as an appendix to all manuals. 205*03ce13f7SAndroid Build Coastguard Worker#latex_appendices = [] 206*03ce13f7SAndroid Build Coastguard Worker 207*03ce13f7SAndroid Build Coastguard Worker# If false, no module index is generated. 208*03ce13f7SAndroid Build Coastguard Worker#latex_domain_indices = True 209*03ce13f7SAndroid Build Coastguard Worker 210*03ce13f7SAndroid Build Coastguard Worker 211*03ce13f7SAndroid Build Coastguard Worker# -- Options for manual page output -------------------------------------------- 212*03ce13f7SAndroid Build Coastguard Worker 213*03ce13f7SAndroid Build Coastguard Worker# One entry per manual page. List of tuples 214*03ce13f7SAndroid Build Coastguard Worker# (source start file, name, description, authors, manual section). 215*03ce13f7SAndroid Build Coastguard Workerman_pages = [] 216*03ce13f7SAndroid Build Coastguard Worker 217*03ce13f7SAndroid Build Coastguard Worker# Automatically derive the list of man pages from the contents of the command 218*03ce13f7SAndroid Build Coastguard Worker# guide subdirectory. 219*03ce13f7SAndroid Build Coastguard Worker# basedir = os.path.dirname(__file__) 220*03ce13f7SAndroid Build Coastguard Worker# man_page_authors = "Maintained by The SUBZERO Team (http://Subzero.org/)." 221*03ce13f7SAndroid Build Coastguard Worker# c ommand_guide_subpath = 'CommandGuide' 222*03ce13f7SAndroid Build Coastguard Worker# command_guide_path = os.path.join(basedir, command_guide_subpath) 223*03ce13f7SAndroid Build Coastguard Worker# for name in os.listdir(command_guide_path): 224*03ce13f7SAndroid Build Coastguard Worker # Ignore non-ReST files and the index page. 225*03ce13f7SAndroid Build Coastguard Worker# if not name.endswith('.rst') or name in ('index.rst',): 226*03ce13f7SAndroid Build Coastguard Worker# continue 227*03ce13f7SAndroid Build Coastguard Worker 228*03ce13f7SAndroid Build Coastguard Worker # Otherwise, automatically extract the description. 229*03ce13f7SAndroid Build Coastguard Worker# file_subpath = os.path.join(command_guide_subpath, name) 230*03ce13f7SAndroid Build Coastguard Worker# with open(os.path.join(command_guide_path, name)) as f: 231*03ce13f7SAndroid Build Coastguard Worker# title = f.readline().rstrip('\n') 232*03ce13f7SAndroid Build Coastguard Worker# header = f.readline().rstrip('\n') 233*03ce13f7SAndroid Build Coastguard Worker 234*03ce13f7SAndroid Build Coastguard Worker# if len(header) != len(title): 235*03ce13f7SAndroid Build Coastguard Worker# print >>sys.stderr, ( 236*03ce13f7SAndroid Build Coastguard Worker# "error: invalid header in %r (does not match title)" % ( 237*03ce13f7SAndroid Build Coastguard Worker# file_subpath,)) 238*03ce13f7SAndroid Build Coastguard Worker# if ' - ' not in title: 239*03ce13f7SAndroid Build Coastguard Worker# print >>sys.stderr, ( 240*03ce13f7SAndroid Build Coastguard Worker# ("error: invalid title in %r " 241*03ce13f7SAndroid Build Coastguard Worker# "(expected '<name> - <description>')") % ( 242*03ce13f7SAndroid Build Coastguard Worker# file_subpath,)) 243*03ce13f7SAndroid Build Coastguard Worker 244*03ce13f7SAndroid Build Coastguard Worker # Split the name out of the title. 245*03ce13f7SAndroid Build Coastguard Worker# name,description = title.split(' - ', 1) 246*03ce13f7SAndroid Build Coastguard Worker# man_pages.append((file_subpath.replace('.rst',''), name, 247*03ce13f7SAndroid Build Coastguard Worker# description, man_page_authors, 1)) 248*03ce13f7SAndroid Build Coastguard Worker 249*03ce13f7SAndroid Build Coastguard Worker# If true, show URL addresses after external links. 250*03ce13f7SAndroid Build Coastguard Worker#man_show_urls = False 251*03ce13f7SAndroid Build Coastguard Worker 252*03ce13f7SAndroid Build Coastguard Worker# FIXME: Define intersphinx configration. 253*03ce13f7SAndroid Build Coastguard Workerintersphinx_mapping = {} 254