|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# Configuration file for the Sphinx documentation builder. |
| 3 | +# |
| 4 | +# This file only contains a selection of the most common options. For a full |
| 5 | +# list see the documentation: |
| 6 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 7 | + |
| 8 | +# -- Path setup -------------------------------------------------------------- |
| 9 | + |
| 10 | +# If extensions (or modules to document with autodoc) are in another directory, |
| 11 | +# add these directories to sys.path here. If the directory is relative to the |
| 12 | +# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 13 | +# |
| 14 | +import os |
| 15 | +import sys |
| 16 | + |
| 17 | +sys.path.insert(0, os.path.abspath("../..")) |
| 18 | + |
| 19 | + |
| 20 | +# -- Project information ----------------------------------------------------- |
| 21 | +project = "osxdocker" |
| 22 | +copyright = "2020, Conor Sheehan" |
| 23 | +author = "Conor Sheehan" |
| 24 | + |
| 25 | +from osxdocker import __version__ |
| 26 | + |
| 27 | +# The short X.Y version. |
| 28 | +version = __version__ |
| 29 | +# The full version, including alpha/beta/rc tags. |
| 30 | +release = version |
| 31 | + |
| 32 | +# -- General configuration --------------------------------------------------- |
| 33 | +# Add any Sphinx extension module names here, as strings. They can be |
| 34 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 35 | +# ones. |
| 36 | +extensions = [ |
| 37 | + "recommonmark", |
| 38 | + "sphinx.ext.autodoc", |
| 39 | + "sphinx.ext.napoleon", |
| 40 | + "sphinx.ext.autosummary", |
| 41 | +] |
| 42 | + |
| 43 | +autodoc_default_flags = ["members"] |
| 44 | +autosummary_generate = True |
| 45 | + |
| 46 | +# Add any paths that contain templates here, relative to this directory. |
| 47 | +templates_path = ["_templates"] |
| 48 | + |
| 49 | +# List of patterns, relative to source directory, that match files and |
| 50 | +# directories to ignore when looking for source files. |
| 51 | +# This pattern also affects html_static_path and html_extra_path. |
| 52 | +exclude_patterns = [] |
| 53 | + |
| 54 | + |
| 55 | +# -- Options for HTML output ------------------------------------------------- |
| 56 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 57 | +# a list of builtin themes. |
| 58 | +# |
| 59 | +html_theme = "alabaster" |
| 60 | + |
| 61 | +# Theme options are theme-specific and customize the look and feel of a theme |
| 62 | +# further. For a list of options available for each theme, see the |
| 63 | +# documentation. |
| 64 | +# |
| 65 | +html_theme_options = { |
| 66 | + "description": "A CLI for working with docker on OSX", |
| 67 | + "fixed_sidebar": True, |
| 68 | +} |
| 69 | + |
| 70 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 71 | +# relative to this directory. They are copied after the builtin static files, |
| 72 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 73 | +html_static_path = ["_static"] |
| 74 | + |
| 75 | +from recommonmark.parser import CommonMarkParser |
| 76 | + |
| 77 | +source_parsers = { |
| 78 | + ".md": CommonMarkParser, |
| 79 | +} |
| 80 | + |
| 81 | +# https://www.sphinx-doc.org/en/master/usage/markdown.html |
| 82 | +source_suffix = [".rst", ".md"] |
| 83 | + |
| 84 | +# If true, `todo` and `todoList` produce output, else they produce nothing. |
| 85 | +todo_include_todos = False |
| 86 | + |
| 87 | +# Napoleon settings |
| 88 | +napoleon_google_docstring = True |
| 89 | +napoleon_numpy_docstring = False |
0 commit comments