| 1 | # Configuration file for the Sphinx documentation builder. |
| 2 | # |
| 3 | # This file only contains a selection of the most common options. For a full |
| 4 | # list see the documentation: |
| 5 | # https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 6 | |
| 7 | # -- Path setup -------------------------------------------------------------- |
| 8 | |
| 9 | # If extensions (or modules to document with autodoc) are in another directory, |
| 10 | # add these directories to sys.path here. If the directory is relative to the |
| 11 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
| 12 | # |
| 13 | import os |
| 14 | import sys |
| 15 | sys.path.insert(0, os.path.abspath(os.path.join('..', '..'))) |
| 16 | |
| 17 | |
| 18 | # -- Project information ----------------------------------------------------- |
| 19 | |
| 20 | project = 'awscrt' |
| 21 | copyright = '2020, Amazon Web Services, Inc' |
| 22 | author = 'Amazon Web Services, Inc' |
| 23 | |
| 24 | |
| 25 | # -- General configuration --------------------------------------------------- |
| 26 | |
| 27 | # Add any Sphinx extension module names here, as strings. They can be |
| 28 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 29 | # ones. |
| 30 | extensions = [ |
| 31 | 'sphinx.ext.autodoc', |
| 32 | 'sphinx.ext.napoleon', |
| 33 | 'sphinx.ext.intersphinx', # for linking external docs (official Python API) |
| 34 | ] |
| 35 | |
| 36 | # Add any paths that contain templates here, relative to this directory. |
| 37 | templates_path = ['_templates'] |
| 38 | |
| 39 | # List of patterns, relative to source directory, that match files and |
| 40 | # directories to ignore when looking for source files. |
| 41 | # This pattern also affects html_static_path and html_extra_path. |
| 42 | exclude_patterns = [] |
| 43 | |
| 44 | # 'bysource' prevents enums from sorting in alphabetical order |
| 45 | autodoc_member_order = 'bysource' |
| 46 | |
| 47 | # False puts type in the "Returns: " line, rather than its own "Return Type:" line. |
| 48 | # without this, we ge a lot of empty "Returns:" lines because we only commented the type. |
| 49 | napoleon_use_rtype = False |
| 50 | |
| 51 | # A string that determines how domain objects (e.g. functions, classes, |
| 52 | # attributes, etc.) are displayed in their table of contents entry. |
| 53 | toc_object_entries_show_parents = 'hide' |
| 54 | |
| 55 | # -- Options for HTML output ------------------------------------------------- |
| 56 | |
| 57 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 58 | # a list of builtin themes. |
| 59 | # |
| 60 | html_theme = 'bizstyle' |
| 61 | |
| 62 | html_theme_options = { |
| 63 | 'sidebarwidth': 300 |
| 64 | } |
| 65 | |
| 66 | # Add any paths that contain custom static files (such as style sheets) here, |
| 67 | # relative to this directory. They are copied after the builtin static files, |
| 68 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 69 | html_static_path = ['_static'] |
| 70 | |
| 71 | html_style = 'css/custom.css' |
| 72 | |
| 73 | # For cross-linking to types from other libraries |
| 74 | intersphinx_mapping = { |
| 75 | 'python': ('https://docs.python.org/3', None), |
| 76 | } |
| 77 | |
| 78 | # Extra warnings |
| 79 | nitpicky = True |