Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | # |
| 3 | # NFD - Named Data Networking Forwarding Daemon documentation build configuration file, created by |
| 4 | # sphinx-quickstart on Sun Apr 6 19:58:22 2014. |
| 5 | # |
| 6 | # This file is execfile()d with the current directory set to its |
| 7 | # containing dir. |
| 8 | # |
| 9 | # Note that not all possible configuration values are present in this |
| 10 | # autogenerated file. |
| 11 | # |
| 12 | # All configuration values have a default; values that are commented out |
| 13 | # serve to show the default. |
| 14 | |
| 15 | import sys |
| 16 | import os |
| 17 | import re |
| 18 | |
| 19 | # If extensions (or modules to document with autodoc) are in another directory, |
| 20 | # add these directories to sys.path here. If the directory is relative to the |
| 21 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
| 22 | #sys.path.insert(0, os.path.abspath('.')) |
| 23 | |
| 24 | # -- General configuration ------------------------------------------------ |
| 25 | |
| 26 | # If your documentation needs a minimal Sphinx version, state it here. |
| 27 | #needs_sphinx = '1.0' |
| 28 | |
| 29 | # Add any Sphinx extension module names here, as strings. They can be |
| 30 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 31 | # ones. |
| 32 | extensions = [ |
| 33 | 'sphinx.ext.todo', |
| 34 | ] |
| 35 | |
| 36 | def addExtensionIfExists(extension): |
| 37 | try: |
| 38 | __import__(extension) |
| 39 | extensions.append(extension) |
| 40 | except ImportError: |
| 41 | sys.stderr.write("Extension '%s' in not available. " |
| 42 | "Some documentation may not build correctly.\n" % extension) |
| 43 | sys.stderr.write("To install, use \n" |
| 44 | " sudo pip install %s\n" % extension.replace('.', '-')) |
| 45 | |
| 46 | addExtensionIfExists('sphinxcontrib.doxylink') |
| 47 | |
| 48 | if os.getenv('GOOGLE_ANALYTICS', None): |
| 49 | addExtensionIfExists('sphinxcontrib.googleanalytics') |
| 50 | |
| 51 | # Add any paths that contain templates here, relative to this directory. |
| 52 | templates_path = ['_templates'] |
| 53 | |
| 54 | # The suffix of source filenames. |
| 55 | source_suffix = '.rst' |
| 56 | |
| 57 | # The encoding of source files. |
| 58 | #source_encoding = 'utf-8-sig' |
| 59 | |
| 60 | # The master toctree document. |
| 61 | master_doc = 'index' |
| 62 | |
| 63 | # General information about the project. |
| 64 | project = u'ChronoChat: A Serverless Chat Application in NDN' |
| 65 | copyright = u'2014, Named Data Networking Project' |
| 66 | |
| 67 | # The language for content autogenerated by Sphinx. Refer to documentation |
| 68 | # for a list of supported languages. |
| 69 | #language = None |
| 70 | |
| 71 | # There are two options for replacing |today|: either, you set today to some |
| 72 | # non-false value, then it is used: |
| 73 | #today = '' |
| 74 | # Else, today_fmt is used as the format for a strftime call. |
| 75 | #today_fmt = '%B %d, %Y' |
| 76 | |
| 77 | # List of patterns, relative to source directory, that match files and |
| 78 | # directories to ignore when looking for source files. |
| 79 | exclude_patterns = [] |
| 80 | |
| 81 | # The reST default role (used for this markup: `text`) to use for all |
| 82 | # documents. |
| 83 | #default_role = None |
| 84 | |
| 85 | # If true, '()' will be appended to :func: etc. cross-reference text. |
| 86 | #add_function_parentheses = True |
| 87 | |
| 88 | # If true, the current module name will be prepended to all description |
| 89 | # unit titles (such as .. function::). |
| 90 | #add_module_names = True |
| 91 | |
| 92 | # If true, sectionauthor and moduleauthor directives will be shown in the |
| 93 | # output. They are ignored by default. |
| 94 | #show_authors = False |
| 95 | |
| 96 | # The name of the Pygments (syntax highlighting) style to use. |
| 97 | pygments_style = 'sphinx' |
| 98 | |
| 99 | # A list of ignored prefixes for module index sorting. |
| 100 | #modindex_common_prefix = [] |
| 101 | |
| 102 | # If true, keep warnings as "system message" paragraphs in the built documents. |
| 103 | #keep_warnings = False |
| 104 | |
| 105 | |
| 106 | # -- Options for HTML output ---------------------------------------------- |
| 107 | |
| 108 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 109 | # a list of builtin themes. |
| 110 | # html_theme = 'default' |
| 111 | html_theme = 'named_data_theme' |
| 112 | |
| 113 | # Theme options are theme-specific and customize the look and feel of a theme |
| 114 | # further. For a list of options available for each theme, see the |
| 115 | # documentation. |
| 116 | #html_theme_options = {} |
| 117 | |
| 118 | # Add any paths that contain custom themes here, relative to this directory. |
| 119 | html_theme_path = ['./'] |
| 120 | |
| 121 | # The name for this set of Sphinx documents. If None, it defaults to |
| 122 | # "<project> v<release> documentation". |
| 123 | #html_title = None |
| 124 | |
| 125 | # A shorter title for the navigation bar. Default is the same as html_title. |
| 126 | #html_short_title = None |
| 127 | |
| 128 | # The name of an image file (relative to this directory) to place at the top |
| 129 | # of the sidebar. |
| 130 | #html_logo = None |
| 131 | |
| 132 | # The name of an image file (within the static path) to use as favicon of the |
| 133 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
| 134 | # pixels large. |
| 135 | #html_favicon = None |
| 136 | |
| 137 | # Add any paths that contain custom static files (such as style sheets) here, |
| 138 | # relative to this directory. They are copied after the builtin static files, |
| 139 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 140 | # html_static_path = ['_static'] |
| 141 | |
| 142 | # Add any extra paths that contain custom files (such as robots.txt or |
| 143 | # .htaccess) here, relative to this directory. These files are copied |
| 144 | # directly to the root of the documentation. |
| 145 | #html_extra_path = [] |
| 146 | |
| 147 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
| 148 | # using the given strftime format. |
| 149 | #html_last_updated_fmt = '%b %d, %Y' |
| 150 | |
| 151 | # If true, SmartyPants will be used to convert quotes and dashes to |
| 152 | # typographically correct entities. |
| 153 | #html_use_smartypants = True |
| 154 | |
| 155 | # Custom sidebar templates, maps document names to template names. |
| 156 | #html_sidebars = {} |
| 157 | |
| 158 | # Additional templates that should be rendered to pages, maps page names to |
| 159 | # template names. |
| 160 | #html_additional_pages = {} |
| 161 | |
| 162 | # If false, no module index is generated. |
| 163 | #html_domain_indices = True |
| 164 | |
| 165 | # If false, no index is generated. |
| 166 | #html_use_index = True |
| 167 | |
| 168 | # If true, the index is split into individual pages for each letter. |
| 169 | #html_split_index = False |
| 170 | |
| 171 | # If true, links to the reST sources are added to the pages. |
| 172 | #html_show_sourcelink = True |
| 173 | |
| 174 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
| 175 | #html_show_sphinx = True |
| 176 | |
| 177 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
| 178 | #html_show_copyright = True |
| 179 | |
| 180 | # If true, an OpenSearch description file will be output, and all pages will |
| 181 | # contain a <link> tag referring to it. The value of this option must be the |
| 182 | # base URL from which the finished HTML is served. |
| 183 | #html_use_opensearch = '' |
| 184 | |
| 185 | # This is the file name suffix for HTML files (e.g. ".xhtml"). |
| 186 | html_file_suffix = ".html" |
| 187 | |
| 188 | # Output file base name for HTML help builder. |
| 189 | htmlhelp_basename = 'ChronoChat-docs' |
| 190 | |
| 191 | |
| 192 | # -- Options for LaTeX output --------------------------------------------- |
| 193 | |
| 194 | latex_elements = { |
| 195 | # The paper size ('letterpaper' or 'a4paper'). |
| 196 | #'papersize': 'letterpaper', |
| 197 | |
| 198 | # The font size ('10pt', '11pt' or '12pt'). |
| 199 | #'pointsize': '10pt', |
| 200 | |
| 201 | # Additional stuff for the LaTeX preamble. |
| 202 | #'preamble': '', |
| 203 | } |
| 204 | |
| 205 | # Grouping the document tree into LaTeX files. List of tuples |
| 206 | # (source start file, target name, title, |
| 207 | # author, documentclass [howto, manual, or own class]). |
| 208 | latex_documents = [ |
| 209 | ('index', 'ChronoChat-docs.tex', u'A Serverless Chat Application in NDN', |
| 210 | u'Named Data Networking Project', 'manual'), |
| 211 | ] |
| 212 | |
| 213 | # The name of an image file (relative to this directory) to place at the top of |
| 214 | # the title page. |
| 215 | #latex_logo = None |
| 216 | |
| 217 | # For "manual" documents, if this is true, then toplevel headings are parts, |
| 218 | # not chapters. |
| 219 | #latex_use_parts = False |
| 220 | |
| 221 | # If true, show page references after internal links. |
| 222 | #latex_show_pagerefs = False |
| 223 | |
| 224 | # If true, show URL addresses after external links. |
| 225 | #latex_show_urls = False |
| 226 | |
| 227 | # Documents to append as an appendix to all manuals. |
| 228 | #latex_appendices = [] |
| 229 | |
| 230 | # If false, no module index is generated. |
| 231 | #latex_domain_indices = True |
| 232 | |
| 233 | |
| 234 | # -- Options for manual page output --------------------------------------- |
| 235 | |
| 236 | # One entry per manual page. List of tuples |
| 237 | # (source start file, name, description, authors, manual section). |
| 238 | man_pages = [ |
| 239 | ] |
| 240 | |
| 241 | |
| 242 | # If true, show URL addresses after external links. |
| 243 | man_show_urls = True |
| 244 | |
| 245 | |
| 246 | # ---- Custom options -------- |
| 247 | |
| 248 | doxylink = { |
| 249 | 'ChronoChat' : ('ChronoChat.tag', 'doxygen/'), |
| 250 | } |
| 251 | |
| 252 | if os.getenv('GOOGLE_ANALYTICS', None): |
| 253 | googleanalytics_id = os.environ['GOOGLE_ANALYTICS'] |
| 254 | googleanalytics_enabled = True |
| 255 | |
| 256 | exclude_patterns = ['RELEASE_NOTES.rst'] |