1# -*- coding: utf-8 -*- 2# 3# LLDB documentation build configuration file, created by 4# sphinx-quickstart on Sun Dec 9 20:01:55 2012. 5# 6# This file is execfile()d with the current directory set to its containing dir. 7# 8# Note that not all possible configuration values are present in this 9# autogenerated file. 10# 11# All configuration values have a default; values that are commented out 12# serve to show the default. 13from __future__ import print_function 14 15import sys, os, re 16from datetime import date 17 18# If extensions (or modules to document with autodoc) are in another directory, 19# add these directories to sys.path here. If the directory is relative to the 20# documentation root, use os.path.abspath to make it absolute, like shown here. 21#sys.path.insert(0, os.path.abspath('.')) 22 23# -- General configuration ----------------------------------------------------- 24 25# If your documentation needs a minimal Sphinx version, state it here. 26#needs_sphinx = '1.0' 27 28# Add any Sphinx extension module names here, as strings. They can be extensions 29# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 30extensions = ['sphinx.ext.todo', 'sphinx.ext.mathjax', 'sphinx.ext.intersphinx'] 31 32# Add any paths that contain templates here, relative to this directory. 33templates_path = ['_templates'] 34 35# The suffix of source filenames. 36source_suffix = { 37 '.rst': 'restructuredtext', 38} 39 40try: 41 import recommonmark 42except ImportError: 43 # manpages do not use any .md sources 44 if not tags.has('builder-man'): 45 raise 46else: 47 import sphinx 48 if sphinx.version_info >= (3, 0): 49 # This requires 0.5 or later. 50 extensions.append('recommonmark') 51 else: 52 source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'} 53 source_suffix['.md'] = 'markdown' 54 55# The encoding of source files. 56#source_encoding = 'utf-8-sig' 57 58# The master toctree document. 59master_doc = 'index' 60 61# General information about the project. 62project = u'LLDB' 63copyright = u'2007-%d, The LLDB Team' % date.today().year 64 65# The version info for the project you're documenting, acts as replacement for 66# |version| and |release|, also used in various other places throughout the 67# built documents. These are currently set to zero because we don't use them. 68# Should somebody consider in the future to change them, they need to be updated 69# everytime a new release comes out. 70# 71# The short version. 72#version = '0' 73# The full version, including alpha/beta/rc tags. 74#release = '0' 75 76# The language for content autogenerated by Sphinx. Refer to documentation 77# for a list of supported languages. 78#language = None 79 80# There are two options for replacing |today|: either, you set today to some 81# non-false value, then it is used: 82#today = '' 83# Else, today_fmt is used as the format for a strftime call. 84#today_fmt = '%B %d, %Y' 85 86# List of patterns, relative to source directory, that match files and 87# directories to ignore when looking for source files. 88exclude_patterns = ['_build', 'analyzer'] 89 90# The reST default role (used for this markup: `text`) to use for all documents. 91#default_role = None 92 93# If true, '()' will be appended to :func: etc. cross-reference text. 94#add_function_parentheses = True 95 96# If true, the current module name will be prepended to all description 97# unit titles (such as .. function::). 98#add_module_names = True 99 100# If true, sectionauthor and moduleauthor directives will be shown in the 101# output. They are ignored by default. 102#show_authors = False 103 104# The name of the Pygments (syntax highlighting) style to use. 105pygments_style = 'friendly' 106 107# A list of ignored prefixes for module index sorting. 108#modindex_common_prefix = [] 109 110 111# -- Options for HTML output --------------------------------------------------- 112 113# The theme to use for HTML and HTML Help pages. See the documentation for 114# a list of builtin themes. 115html_theme = 'alabaster' 116 117# Theme options are theme-specific and customize the look and feel of a theme 118# further. For a list of options available for each theme, see the 119# documentation. 120html_theme_options = { 121 'font_size': '11pt' 122} 123 124# Add any paths that contain custom themes here, relative to this directory. 125#html_theme_path = [] 126 127# The name for this set of Sphinx documents. If None, it defaults to 128# "<project> v<release> documentation". 129html_title = 'The LLDB Debugger' 130 131# A shorter title for the navigation bar. Default is the same as html_title. 132#html_short_title = None 133 134# The name of an image file (relative to this directory) to place at the top 135# of the sidebar. 136#html_logo = None 137 138# The name of an image file (within the static path) to use as favicon of the 139# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 140# pixels large. 141#html_favicon = None 142 143# Add any paths that contain custom static files (such as style sheets) here, 144# relative to this directory. They are copied after the builtin static files, 145# so a file named "default.css" will overwrite the builtin "default.css". 146html_static_path = ['_static'] 147 148html_context = { 149 'css_files': [ 150 '_static/lldb.css' 151 ], 152 } 153 154html_extra_path = ['.htaccess'] 155 156# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, 157# using the given strftime format. 158html_last_updated_fmt = '%b %d, %Y' 159 160# If true, SmartyPants will be used to convert quotes and dashes to 161# typographically correct entities. 162#html_use_smartypants = True 163 164# Custom sidebar templates, maps document names to template names. 165#html_sidebars = {} 166 167# Additional templates that should be rendered to pages, maps page names to 168# template names. 169#html_additional_pages = {} 170 171# If false, no module index is generated. 172#html_domain_indices = True 173 174# If false, no index is generated. 175#html_use_index = True 176 177# If true, the index is split into individual pages for each letter. 178#html_split_index = False 179 180# If true, links to the reST sources are added to the pages. 181#html_show_sourcelink = True 182 183# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. 184#html_show_sphinx = True 185 186# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. 187#html_show_copyright = True 188 189# If true, an OpenSearch description file will be output, and all pages will 190# contain a <link> tag referring to it. The value of this option must be the 191# base URL from which the finished HTML is served. 192#html_use_opensearch = '' 193 194# This is the file name suffix for HTML files (e.g. ".xhtml"). 195#html_file_suffix = None 196 197# Output file base name for HTML help builder. 198htmlhelp_basename = 'LLDBdoc' 199 200# If true, the reST sources are included in the HTML build as 201# _sources/name. The default is True. 202html_copy_source = False 203 204# -- Options for LaTeX output -------------------------------------------------- 205 206latex_elements = { 207# The paper size ('letterpaper' or 'a4paper'). 208#'papersize': 'letterpaper', 209 210# The font size ('10pt', '11pt' or '12pt'). 211#'pointsize': '10pt', 212 213# Additional stuff for the LaTeX preamble. 214#'preamble': '', 215} 216 217# Grouping the document tree into LaTeX files. List of tuples 218# (source start file, target name, title, author, documentclass [howto/manual]). 219latex_documents = [ 220 ('index', 'LLDB.tex', u'LLDB Documentation', 221 u'The LLDB Team', 'manual'), 222] 223 224# The name of an image file (relative to this directory) to place at the top of 225# the title page. 226#latex_logo = None 227 228# For "manual" documents, if this is true, then toplevel headings are parts, 229# not chapters. 230#latex_use_parts = False 231 232# If true, show page references after internal links. 233#latex_show_pagerefs = False 234 235# If true, show URL addresses after external links. 236#latex_show_urls = False 237 238# Documents to append as an appendix to all manuals. 239#latex_appendices = [] 240 241# If false, no module index is generated. 242#latex_domain_indices = True 243 244 245# -- Options for manual page output -------------------------------------------- 246 247# One entry per manual page. List of tuples 248# (source start file, name, description, authors, manual section). 249man_pages = [('man/lldb', 'lldb', u'LLDB Documentation', [u'LLVM project'], 1)] 250 251# If true, show URL addresses after external links. 252#man_show_urls = False 253 254def process_md(name): 255 file_subpath = os.path.join(command_guide_subpath, name) 256 with open(os.path.join(command_guide_path, name)) as f: 257 title = f.readline().rstrip('\n') 258 259 m = re.match(r'^# (\S+) - (.+)$', title) 260 if m is None: 261 print("error: invalid title in %r " 262 "(expected '# <name> - <description>')" % file_subpath, 263 file=sys.stderr) 264 else: 265 man_pages.append((file_subpath.replace('.md',''), m.group(1), 266 m.group(2), man_page_authors, 1)) 267 268# -- Options for Texinfo output ------------------------------------------------ 269 270# Grouping the document tree into Texinfo files. List of tuples 271# (source start file, target name, title, author, 272# dir menu entry, description, category) 273texinfo_documents = [ 274 ('index', 'LLDB', u'LLDB Documentation', 275 u'The LLDB Team', 'LLDB', 'One line description of project.', 276 'Miscellaneous'), 277] 278 279# Documents to append as an appendix to all manuals. 280#texinfo_appendices = [] 281 282# If false, no module index is generated. 283#texinfo_domain_indices = True 284 285# How to display URL addresses: 'footnote', 'no', or 'inline'. 286#texinfo_show_urls = 'footnote' 287