|
14 | 14 | # import sys |
15 | 15 | # sys.path.insert(0, os.path.abspath('.')) |
16 | 16 |
|
| 17 | +import sphinx_bootstrap_theme |
17 | 18 |
|
18 | 19 | # -- Project information ----------------------------------------------------- |
19 | 20 |
|
20 | 21 | project = 'firebird-driver' |
21 | | -copyright = '2020, Pavel Císař' |
| 22 | +copyright = '2020, The Firebird Project' |
22 | 23 | author = 'Pavel Císař' |
23 | 24 |
|
24 | 25 | # The short X.Y version |
|
55 | 56 | # This pattern also affects html_static_path and html_extra_path. |
56 | 57 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
57 | 58 |
|
| 59 | +default_role = 'py:obj' |
58 | 60 |
|
59 | 61 | # -- Options for HTML output ------------------------------------------------- |
60 | 62 |
|
61 | 63 | # The theme to use for HTML and HTML Help pages. See the documentation for |
62 | 64 | # a list of builtin themes. |
63 | 65 | # |
64 | | -html_theme = 'alabaster' |
| 66 | +#html_theme = 'alabaster' |
| 67 | + |
| 68 | +html_theme = "bootstrap" |
| 69 | +html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() |
| 70 | + |
| 71 | +# bootstrap theme config |
| 72 | + |
| 73 | +# (Optional) Logo. Should be small enough to fit the navbar (ideally 24x24). |
| 74 | +# Path should be relative to the ``_static`` files directory. |
| 75 | +#html_logo = "my_logo.png" |
| 76 | + |
| 77 | +# Theme options are theme-specific and customize the look and feel of a |
| 78 | +# theme further. |
| 79 | +html_theme_options = { |
| 80 | + # Navigation bar title. (Default: ``project`` value) |
| 81 | + #'navbar_title': "FDB", |
| 82 | + |
| 83 | + # Tab name for entire site. (Default: "Site") |
| 84 | + 'navbar_site_name': "Content", |
| 85 | + |
| 86 | + # A list of tuples containing pages or urls to link to. |
| 87 | + # Valid tuples should be in the following forms: |
| 88 | + # (name, page) # a link to a page |
| 89 | + # (name, "/aa/bb", 1) # a link to an arbitrary relative url |
| 90 | + # (name, "http://example.com", True) # arbitrary absolute url |
| 91 | + # Note the "1" or "True" value above as the third argument to indicate |
| 92 | + # an arbitrary url. |
| 93 | + 'navbar_links': [ |
| 94 | + ("Usage Guide", "usage-guide"), |
| 95 | + ("Reference", "reference"), |
| 96 | + ("Index", "genindex"), |
| 97 | + ], |
| 98 | + |
| 99 | + # Render the next and previous page links in navbar. (Default: true) |
| 100 | + #'navbar_sidebarrel': True, |
| 101 | + |
| 102 | + # Render the current pages TOC in the navbar. (Default: true) |
| 103 | + #'navbar_pagenav': True, |
| 104 | + |
| 105 | + # Tab name for the current pages TOC. (Default: "Page") |
| 106 | + #'navbar_pagenav_name': "Page", |
| 107 | + |
| 108 | + # Global TOC depth for "site" navbar tab. (Default: 1) |
| 109 | + # Switching to -1 shows all levels. |
| 110 | + 'globaltoc_depth': 3, |
| 111 | + |
| 112 | + # Include hidden TOCs in Site navbar? |
| 113 | + # |
| 114 | + # Note: If this is "false", you cannot have mixed ``:hidden:`` and |
| 115 | + # non-hidden ``toctree`` directives in the same page, or else the build |
| 116 | + # will break. |
| 117 | + # |
| 118 | + # Values: "true" (default) or "false" |
| 119 | + 'globaltoc_includehidden': "true", |
| 120 | + |
| 121 | + # HTML navbar class (Default: "navbar") to attach to <div> element. |
| 122 | + # For black navbar, do "navbar navbar-inverse" |
| 123 | + 'navbar_class': "navbar navbar-inverse", |
| 124 | + |
| 125 | + # Fix navigation bar to top of page? |
| 126 | + # Values: "true" (default) or "false" |
| 127 | + 'navbar_fixed_top': "true", |
| 128 | + |
| 129 | + # Location of link to source. |
| 130 | + # Options are "nav" (default), "footer" or anything else to exclude. |
| 131 | + 'source_link_position': "none", |
| 132 | + |
| 133 | + # Bootswatch (http://bootswatch.com/) theme. |
| 134 | + # |
| 135 | + # Options are nothing (default) or the name of a valid theme |
| 136 | + # such as "cosmo" or "sandstone". |
| 137 | + # |
| 138 | + # The set of valid themes depend on the version of Bootstrap |
| 139 | + # that's used (the next config option). |
| 140 | + # |
| 141 | + # Currently, the supported themes are: |
| 142 | + # - Bootstrap 2: https://bootswatch.com/2 |
| 143 | + # - Bootstrap 3: https://bootswatch.com/3 |
| 144 | + #'bootswatch_theme': "united", # cerulean, flatly, lumen, materia, united, yeti |
| 145 | + 'bootswatch_theme': "cerulean", |
| 146 | + |
| 147 | + # Choose Bootstrap version. |
| 148 | + # Values: "3" (default) or "2" (in quotes) |
| 149 | + 'bootstrap_version': "2", |
| 150 | +} |
65 | 151 |
|
66 | 152 | # Add any paths that contain custom static files (such as style sheets) here, |
67 | 153 | # relative to this directory. They are copied after the builtin static files, |
|
71 | 157 |
|
72 | 158 | # -- Extension configuration ------------------------------------------------- |
73 | 159 |
|
| 160 | +# Autodoc options |
| 161 | +# --------------- |
| 162 | +autodoc_default_options = { |
| 163 | + 'content': 'both', |
| 164 | + 'members': True, |
| 165 | + 'member-order': 'groupwise', |
| 166 | + 'undoc-members': True, |
| 167 | + 'exclude-members': '__weakref__', |
| 168 | + 'show-inheritance': True, |
| 169 | + 'no-inherited-members': True, |
| 170 | +} |
| 171 | +set_type_checking_flag = True |
| 172 | +#always_document_param_types = True |
| 173 | + |
| 174 | +# Napoleon options |
| 175 | +# ---------------- |
| 176 | +napoleon_include_init_with_doc = True |
| 177 | +napoleon_include_private_with_doc = True |
| 178 | +napoleon_include_special_with_doc = True |
| 179 | +napoleon_use_admonition_for_examples = False |
| 180 | +napoleon_use_admonition_for_notes = True |
| 181 | +napoleon_use_admonition_for_references = True |
| 182 | +napoleon_use_ivar = True |
| 183 | + |
74 | 184 | # -- Options for intersphinx extension --------------------------------------- |
75 | 185 |
|
76 | 186 | # Example configuration for intersphinx: refer to the Python standard library. |
77 | | -intersphinx_mapping = {'https://docs.python.org/3/': None} |
| 187 | +intersphinx_mapping = {'python': ('https://docs.python.org/3', None)} |
78 | 188 |
|
79 | 189 | # -- Options for todo extension ---------------------------------------------- |
80 | 190 |
|
|
0 commit comments