conf.py 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. #!/usr/bin/env python
  2. # eyefall build configuration file, created by
  3. # `ablog start` on Mon Jan 25 22:18:43 2021.
  4. #
  5. # Note that not all possible configuration values are present in this file.
  6. # All configuration values have a default; values that are commented out
  7. # serve to show the default.
  8. import os
  9. import sys
  10. import ablog
  11. import alabaster
  12. # -- General ABlog Options ----------------------------------------------------
  13. # A path relative to the configuration directory for blog archive pages.
  14. # blog_path = 'blog'
  15. # The "title" for the blog, used in active pages. Default is ``'Blog'``.
  16. blog_title = u'Eyefall Blog'
  17. # Base URL for the website, required for generating feeds.
  18. # e.g. blog_baseurl = "http://example.com/"
  19. blog_baseurl = u''
  20. # Choose to archive only post titles. Archiving only titles can speed
  21. # up project building.
  22. # blog_archive_titles = False
  23. # -- Blog Authors, Languages, and Locations -----------------------------------
  24. # A dictionary of author names mapping to author full display names and
  25. # links. Dictionary keys are what should be used in ``post`` directive
  26. # to refer to the author. Default is ``{}``.
  27. blog_authors = {
  28. 'joe': ('joe', None),
  29. }
  30. # A dictionary of language code names mapping to full display names and
  31. # links of these languages. Similar to :confval:`blog_authors`, dictionary
  32. # keys should be used in ``post`` directive to refer to the locations.
  33. # Default is ``{}``.
  34. # blog_languages = {
  35. # 'en': ('English', None),
  36. # }
  37. # A dictionary of location names mapping to full display names and
  38. # links of these locations. Similar to :confval:`blog_authors`, dictionary
  39. # keys should be used in ``post`` directive to refer to the locations.
  40. # Default is ``{}``.
  41. # blog_locations = {
  42. # 'Earth': ('The Blue Planet', 'https://en.wikipedia.org/wiki/Earth),
  43. # }
  44. # -- Blog Post Related --------------------------------------------------------
  45. # Format date for a post.
  46. # post_date_format = '%b %d, %Y'
  47. # Number of paragraphs (default is ``1``) that will be displayed as an excerpt
  48. # from the post. Setting this ``0`` will result in displaying no post excerpt
  49. # in archive pages. This option can be set on a per post basis using
  50. # post_auto_excerpt = 1
  51. # Index of the image that will be displayed in the excerpt of the post.
  52. # Default is ``0``, meaning no image. Setting this to ``1`` will include
  53. # the first image, when available, to the excerpt. This option can be set
  54. # on a per post basis using :rst:dir:`post` directive option ``image``.
  55. # post_auto_image = 0
  56. # Number of seconds (default is ``5``) that a redirect page waits before
  57. # refreshing the page to redirect to the post.
  58. # post_redirect_refresh = 5
  59. # When ``True``, post title and excerpt is always taken from the section that
  60. # contains the :rst:dir:`post` directive, instead of the document. This is the
  61. # behavior when :rst:dir:`post` is used multiple times in a document. Default
  62. # is ``False``.
  63. # post_always_section = False
  64. # When ``False``, the :rst:dir:`orphan` directive is not automatically set
  65. # for each post. Without this directive, Sphinx will warn about posts that
  66. # are not explicitly referenced via another document. :rst:dir:`orphan` can
  67. # be set on a per-post basis as well if this is false. Default is ``True``.
  68. # post_auto_orphan = True
  69. # -- ABlog Sidebars -------------------------------------------------------
  70. # There are seven sidebars you can include in your HTML output.
  71. # postcard.html provides information regarding the current post.
  72. # recentposts.html lists most recent five posts. Others provide
  73. # a link to a archive pages generated for each tag, category, and year.
  74. # In addition, there are authors.html, languages.html, and locations.html
  75. # sidebars that link to author and location archive pages.
  76. html_sidebars = {
  77. '**': [ 'about.html',
  78. 'postcard.html', 'navigation.html',
  79. 'recentposts.html', 'tagcloud.html',
  80. 'categories.html', 'archives.html',
  81. 'searchbox.html',
  82. ],
  83. }
  84. # -- Blog Feed Options --------------------------------------------------------
  85. # Turn feeds by setting :confval:`blog_baseurl` configuration variable.
  86. # Choose to create feeds per author, location, tag, category, and year,
  87. # default is ``False``.
  88. # blog_feed_archives = False
  89. # Choose to display full text in blog feeds, default is ``False``.
  90. # blog_feed_fulltext = False
  91. # Blog feed subtitle, default is ``None``.
  92. # blog_feed_subtitle = None
  93. # Choose to feed only post titles, default is ``False``.
  94. # blog_feed_titles = False
  95. # Specify number of recent posts to include in feeds, default is ``None``
  96. # for all posts.
  97. # blog_feed_length = None
  98. # -- Font-Awesome Options -----------------------------------------------------
  99. # ABlog templates will use of Font Awesome icons if one of the following
  100. # is ``True``
  101. # Link to `Font Awesome`_ at `Bootstrap CDN`_ and use icons in sidebars
  102. # and post footers. Default: ``None``
  103. fontawesome_link_cdn = 'https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.3/css/fontawesome.min.css'
  104. # Sphinx_ theme already links to `Font Awesome`_. Default: ``False``
  105. # fontawesome_included = False
  106. # Alternatively, you can provide the path to `Font Awesome`_ :file:`.css`
  107. # with the configuration option: fontawesome_css_file
  108. # Path to `Font Awesome`_ :file:`.css` (default is ``None``) that will
  109. # be linked to in HTML output by ABlog.
  110. # fontawesome_css_file = None
  111. # -- Disqus Integration -------------------------------------------------------
  112. # You can enable Disqus_ by setting ``disqus_shortname`` variable.
  113. # Disqus_ short name for the blog.
  114. # disqus_shortname = None
  115. # Choose to disqus pages that are not posts, default is ``False``.
  116. # disqus_pages = False
  117. # Choose to disqus posts that are drafts (without a published date),
  118. # default is ``False``.
  119. # disqus_drafts = False
  120. # -- Sphinx Options -----------------------------------------------------------
  121. # If your project needs a minimal Sphinx version, state it here.
  122. needs_sphinx = '1.2'
  123. # Add any Sphinx extension module names here, as strings. They can be
  124. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  125. # ones.
  126. extensions = [
  127. 'sphinx.ext.extlinks',
  128. 'sphinx.ext.intersphinx',
  129. 'sphinx.ext.todo',
  130. 'alabaster',
  131. 'ablog',
  132. ]
  133. # Add any paths that contain templates here, relative to this directory.
  134. templates_path = ['_templates', ablog.get_html_templates_path()]
  135. # The suffix(es) of source filenames.
  136. source_suffix = '.rst'
  137. # The encoding of source files.
  138. # source_encoding = 'utf-8-sig'
  139. # The master toctree document.
  140. master_doc = 'index'
  141. # General information about the project.
  142. project = u'Eyefall'
  143. copyright = u'2021, joe'
  144. author = u'joe'
  145. # The version info for the project you're documenting, acts as replacement for
  146. # |version| and |release|, also used in various other places throughout the
  147. # built documents.
  148. #
  149. # The short X.Y version.
  150. version = ''
  151. # The full version, including alpha/beta/rc tags.
  152. release = ''
  153. # The language for content autogenerated by Sphinx. Refer to documentation
  154. # for a list of supported languages.
  155. #
  156. # This is also used if you do content translation via gettext catalogs.
  157. # Usually you set "language" from the command line for these cases.
  158. language = 'en'
  159. # There are two options for replacing |today|: either, you set today to some
  160. # non-false value, then it is used:
  161. # today = ''
  162. # Else, today_fmt is used as the format for a strftime call.
  163. # today_fmt = '%B %d, %Y'
  164. # List of patterns, relative to source directory, that match files and
  165. # directories to ignore when looking for source files.
  166. exclude_patterns = []
  167. # The reST default role (used for this markup: `text`) to use for all
  168. # documents.
  169. # default_role = None
  170. # If true, '()' will be appended to :func: etc. cross-reference text.
  171. # add_function_parentheses = True
  172. # If true, the current module name will be prepended to all description
  173. # unit titles (such as .. function::).
  174. # add_module_names = True
  175. # If true, sectionauthor and moduleauthor directives will be shown in the
  176. # output. They are ignored by default.
  177. # show_authors = False
  178. # The name of the Pygments (syntax highlighting) style to use.
  179. pygments_style = 'sphinx'
  180. # A list of ignored prefixes for module index sorting.
  181. # modindex_common_prefix = []
  182. # If true, keep warnings as "system message" paragraphs in the built documents.
  183. # keep_warnings = False
  184. # If true, `todo` and `todoList` produce output, else they produce nothing.
  185. todo_include_todos = False
  186. # -- Options for HTML output ----------------------------------------------
  187. # The theme to use for HTML and HTML Help pages. See the documentation for
  188. # a list of builtin themes.
  189. html_theme = 'alabaster'
  190. # Theme options are theme-specific and customize the look and feel of a theme
  191. # further. For a list of options available for each theme, see the
  192. # documentation.
  193. html_theme_options = {
  194. 'github_button': False,
  195. }
  196. # Add any paths that contain custom themes here, relative to this directory.
  197. html_theme_path = [alabaster.get_path()]
  198. # The name for this set of Sphinx documents. If None, it defaults to
  199. # "<project> v<release> documentation".
  200. # html_title = None
  201. # A shorter title for the navigation bar. Default is the same as html_title.
  202. # html_short_title = None
  203. # The name of an image file (relative to this directory) to place at the top
  204. # of the sidebar.
  205. # html_logo = None
  206. # The name of an image file (within the static path) to use as favicon of the
  207. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  208. # pixels large.
  209. # html_favicon = None
  210. # Add any paths that contain custom static files (such as style sheets) here,
  211. # relative to this directory. They are copied after the builtin static files,
  212. # so a file named "default.css" will overwrite the builtin "default.css".
  213. html_static_path = ['_static']
  214. # Add any extra paths that contain custom files (such as robots.txt or
  215. # .htaccess) here, relative to this directory. These files are copied
  216. # directly to the root of the documentation.
  217. # html_extra_path = []
  218. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  219. # using the given strftime format.
  220. # html_last_updated_fmt = '%b %d, %Y'
  221. # If true, SmartyPants will be used to convert quotes and dashes to
  222. # typographically correct entities.
  223. # html_use_smartypants = True
  224. # Additional templates that should be rendered to pages, maps page names to
  225. # template names.
  226. # html_additional_pages = {}
  227. # If false, no module index is generated.
  228. # html_domain_indices = True
  229. # If false, no index is generated.
  230. # html_use_index = True
  231. # If true, the index is split into individual pages for each letter.
  232. # html_split_index = False
  233. # If true, links to the reST sources are added to the pages.
  234. # html_show_sourcelink = True
  235. # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
  236. # html_show_sphinx = True
  237. # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
  238. # html_show_copyright = True
  239. # If true, an OpenSearch description file will be output, and all pages will
  240. # contain a <link> tag referring to it. The value of this option must be the
  241. # base URL from which the finished HTML is served.
  242. # html_use_opensearch = ''
  243. # This is the file name suffix for HTML files (e.g. ".xhtml").
  244. # html_file_suffix = None
  245. # Language to be used for generating the HTML full-text search index.
  246. # Sphinx supports the following languages:
  247. # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
  248. # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
  249. # html_search_language = 'en'
  250. # A dictionary with options for the search language support, empty by default.
  251. # Now only 'ja' uses this config value
  252. # html_search_options = {'type': 'default'}
  253. # The name of a javascript file (relative to the configuration directory) that
  254. # implements a search results scorer. If empty, the default will be used.
  255. # html_search_scorer = 'scorer.js'
  256. # Output file base name for HTML help builder.
  257. htmlhelp_basename = 'eyefalldoc'