Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | # |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 3 | # Configuration file for the Sphinx documentation builder. |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 4 | # |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 5 | # This file only contains a selection of the most common options. For a full |
| 6 | # list see the documentation: |
| 7 | # http://www.sphinx-doc.org/en/master/config |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 8 | |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 9 | # -- Path setup -------------------------------------------------------------- |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 10 | |
| 11 | # If extensions (or modules to document with autodoc) are in another directory, |
| 12 | # add these directories to sys.path here. If the directory is relative to the |
| 13 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 14 | # |
| 15 | # import os |
| 16 | import sys |
| 17 | # sys.path.insert(0, os.path.abspath('.')) |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 18 | |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 19 | |
| 20 | # -- Project information ----------------------------------------------------- |
| 21 | |
| 22 | project = u'ChronoSync: A Synchronization Protocol for NDN' |
| 23 | copyright = u'Copyright © 2012-2020 Regents of the University of California.' |
| 24 | author = u'Named Data Networking Project' |
| 25 | |
| 26 | # The short X.Y version |
| 27 | #version = '' |
| 28 | |
| 29 | # The full version, including alpha/beta/rc tags |
| 30 | #release = '' |
| 31 | |
| 32 | # There are two options for replacing |today|: either, you set today to some |
| 33 | # non-false value, then it is used: |
| 34 | #today = '' |
| 35 | # Else, today_fmt is used as the format for a strftime call. |
| 36 | today_fmt = '%Y-%m-%d' |
| 37 | |
| 38 | |
| 39 | # -- General configuration --------------------------------------------------- |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 40 | |
| 41 | # If your documentation needs a minimal Sphinx version, state it here. |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 42 | # |
| 43 | needs_sphinx = '1.1' |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 44 | |
| 45 | # Add any Sphinx extension module names here, as strings. They can be |
| 46 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 47 | # ones. |
| 48 | extensions = [ |
| 49 | 'sphinx.ext.todo', |
| 50 | ] |
| 51 | |
| 52 | def addExtensionIfExists(extension): |
| 53 | try: |
| 54 | __import__(extension) |
| 55 | extensions.append(extension) |
| 56 | except ImportError: |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 57 | sys.stderr.write("Extension '%s' not found. " |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 58 | "Some documentation may not build correctly.\n" % extension) |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 59 | |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 60 | addExtensionIfExists('sphinxcontrib.doxylink') |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 61 | |
| 62 | # The master toctree document. |
| 63 | master_doc = 'index' |
| 64 | |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 65 | # Add any paths that contain templates here, relative to this directory. |
| 66 | templates_path = ['_templates'] |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 67 | |
| 68 | # List of patterns, relative to source directory, that match files and |
| 69 | # directories to ignore when looking for source files. |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 70 | # This pattern also affects html_static_path and html_extra_path. |
| 71 | exclude_patterns = ['RELEASE_NOTES.rst'] |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 72 | |
| 73 | |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 74 | # -- Options for HTML output ------------------------------------------------- |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 75 | |
| 76 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 77 | # a list of builtin themes. |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 78 | # |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 79 | html_theme = 'named_data_theme' |
| 80 | |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 81 | # Add any paths that contain custom themes here, relative to this directory. |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 82 | html_theme_path = ['.'] |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 83 | |
| 84 | # Add any paths that contain custom static files (such as style sheets) here, |
| 85 | # relative to this directory. They are copied after the builtin static files, |
| 86 | # so a file named "default.css" will overwrite the builtin "default.css". |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 87 | html_static_path = ['_static'] |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 88 | |
| 89 | |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 90 | # -- Options for LaTeX output ------------------------------------------------ |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 91 | |
| 92 | latex_elements = { |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 93 | # The paper size ('letterpaper' or 'a4paper'). |
| 94 | # |
| 95 | # 'papersize': 'letterpaper', |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 96 | |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 97 | # The font size ('10pt', '11pt' or '12pt'). |
| 98 | # |
| 99 | # 'pointsize': '10pt', |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 100 | |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 101 | # Additional stuff for the LaTeX preamble. |
| 102 | # |
| 103 | # 'preamble': '', |
| 104 | |
| 105 | # Latex figure (float) alignment |
| 106 | # |
| 107 | # 'figure_align': 'htbp', |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 108 | } |
| 109 | |
| 110 | # Grouping the document tree into LaTeX files. List of tuples |
| 111 | # (source start file, target name, title, |
| 112 | # author, documentclass [howto, manual, or own class]). |
| 113 | latex_documents = [ |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 114 | ('index', 'ChronoSync-docs.tex', u'A Synchronization Protocol for NDN', |
| 115 | author, 'manual'), |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 116 | ] |
| 117 | |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 118 | |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 119 | # -- Options for manual page output ------------------------------------------ |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 120 | |
| 121 | # One entry per manual page. List of tuples |
| 122 | # (source start file, name, description, authors, manual section). |
| 123 | man_pages = [ |
| 124 | ] |
| 125 | |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 126 | # If true, show URL addresses after external links. |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 127 | #man_show_urls = True |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 128 | |
| 129 | |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 130 | # -- Custom options ---------------------------------------------------------- |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 131 | |
| 132 | doxylink = { |
Davide Pesavento | a0546db | 2020-04-01 19:18:04 -0400 | [diff] [blame] | 133 | 'ChronoSync': ('ChronoSync.tag', 'doxygen/'), |
Yingdi Yu | 06a678a | 2014-08-01 17:07:08 -0700 | [diff] [blame] | 134 | } |