|
85 | 85 | # Options for HTML output
|
86 | 86 | # -----------------------
|
87 | 87 |
|
88 |
| -# Use our custom theme. |
89 |
| -html_theme = 'python_docs_theme' |
90 |
| -html_theme_path = ['tools'] |
| 88 | + |
| 89 | +##<>========================================================= |
| 90 | +## @@~@@ FORK MODIFIES THIS SECTOION -- replaced |
| 91 | +##=========================================================== |
| 92 | +## Original options using `html_theme = 'python_docs_theme'` |
| 93 | +##=========================================================== |
| 94 | +# # Use our custom theme. |
| 95 | +# html_theme = 'python_docs_theme' |
| 96 | +# html_theme_path = ['tools'] |
| 97 | +# html_theme_options = { |
| 98 | +# 'collapsiblesidebar': True, |
| 99 | +# 'issues_url': '/bugs.html', |
| 100 | +# 'license_url': '/license.html', |
| 101 | +# 'root_include_title': False # We use the version switcher instead. |
| 102 | +# } |
| 103 | +##</>======================================================== |
| 104 | + |
| 105 | + |
| 106 | +##<>========================================================= |
| 107 | +## @@~@@ FORK MODIFIES THIS SECTOION -- added |
| 108 | +##=========================================================== |
| 109 | +## Original options using `html_theme = 'python_docs_theme'` |
| 110 | +##=========================================================== |
| 111 | +html_theme = 'sphinx_rtd_theme' |
| 112 | +html_theme_path = [''] |
| 113 | +html_favicon = '_static/py.svg' |
91 | 114 | html_theme_options = {
|
92 |
| - 'collapsiblesidebar': True, |
| 115 | + #------------------------------------------------------------------- |
| 116 | + # Add these variables manually to: |
| 117 | + # Doc/venv/lib/python3.9/site-packages/sphinx_rtd_theme/theme.conf |
| 118 | + # then they can be accessed via theme_issues_url + theme_license_url |
| 119 | + #------------------------------------------------------------------- |
93 | 120 | 'issues_url': '/bugs.html',
|
94 | 121 | 'license_url': '/license.html',
|
95 |
| - 'root_include_title': False # We use the version switcher instead. |
| 122 | + |
| 123 | + #*************************************************************** |
| 124 | + # DOCS: sphinx_rtd_theme : collapse_navigation * |
| 125 | + #*************************************************************** |
| 126 | + # Poorly named. * |
| 127 | + # * |
| 128 | + # From sphinx-rtd-theme.readthedocs.io: * |
| 129 | + # * |
| 130 | + # Type: boolean * |
| 131 | + # Default: True * |
| 132 | + # * |
| 133 | + # Description: * |
| 134 | + # * |
| 135 | + # With collapse_navigation enabled * |
| 136 | + # * |
| 137 | + # Navigation entries are not expandable * |
| 138 | + # – the [+] icons next to each entry are removed. * |
| 139 | + # * |
| 140 | + #*************************************************************** |
| 141 | + # This really means, * |
| 142 | + # "Do you want to collapse all the nav * |
| 143 | + # and not include sub-pages?" * |
| 144 | + # * |
| 145 | + # We want to tell it: * |
| 146 | + # "False, I wish to include sub-pages." * |
| 147 | + #*************************************************************** |
| 148 | + 'collapse_navigation': False, |
| 149 | + |
| 150 | + #********************************************************************** |
| 151 | + # DOCS: sphinx_rtd_theme : navigation_depth * |
| 152 | + #********************************************************************** |
| 153 | + # * |
| 154 | + # From sphinx-rtd-theme.readthedocs.io: * |
| 155 | + # * |
| 156 | + # Type: integer * |
| 157 | + # Default: 4 * |
| 158 | + # * |
| 159 | + # Description: * |
| 160 | + # The maximum depth of the table of contents tree. * |
| 161 | + # Set this to -1 to allow unlimited depth. * |
| 162 | + # * |
| 163 | + #********************************************************************** |
| 164 | + 'navigation_depth': -1, |
| 165 | + |
| 166 | + #************************************************************ |
| 167 | + # DOCS: sphinx_rtd_theme : titles_only * |
| 168 | + #************************************************************ |
| 169 | + # * |
| 170 | + # From sphinx-rtd-theme.readthedocs.io: * |
| 171 | + # * |
| 172 | + # Type: boolean * |
| 173 | + # Default: False * |
| 174 | + # * |
| 175 | + # Description: * |
| 176 | + # When enabled, page subheadings * |
| 177 | + # are not included in the navigation. * |
| 178 | + # * |
| 179 | + #************************************************************ |
| 180 | + 'titles_only': False, |
| 181 | + |
| 182 | + #************************************************************ |
| 183 | + # DOCS: sphinx_rtd_theme : warning * |
| 184 | + #************************************************************ |
| 185 | + # * |
| 186 | + # Note: * |
| 187 | + # * |
| 188 | + # Setting collapse_navigation to False * |
| 189 | + # and using a high value for navigation_depth * |
| 190 | + # on projects with many files and a deep file structure * |
| 191 | + # * |
| 192 | + # can cause long compilation times * |
| 193 | + # and can result in HTML files * |
| 194 | + # that are significantly larger in file size. * |
| 195 | + # * |
| 196 | + #************************************************************ |
96 | 197 | }
|
97 | 198 |
|
| 199 | +##</>======================================================== |
| 200 | +## @@~@@ FORK MODIFIES THIS SECTOION -- added |
| 201 | +## endof update |
| 202 | +##=========================================================== |
| 203 | + |
| 204 | +##------------------------------------------------------------------------- |
| 205 | +## <> RTD CSS Config |
| 206 | +##------------------------------------------------------------------------- |
| 207 | +## See |
| 208 | +## https://docs.readthedocs.io/en/stable/guides/adding-custom-css.html |
| 209 | +##------------------------------------------------------------------------- |
| 210 | +# These folders are copied to the documentation's HTML output |
| 211 | +html_static_path = ['_static'] |
| 212 | + |
| 213 | +# These paths are either relative to html_static_path |
| 214 | +# or fully qualified paths (eg. https://...) |
| 215 | +html_css_files = [ |
| 216 | + 'css_for_fork/py_rtd_fork.css', |
| 217 | +] |
| 218 | +##------------------------------------------------------------------------- |
| 219 | +## </> RTD CSS Config |
| 220 | +##------------------------------------------------------------------------- |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
98 | 227 | # Override stylesheet fingerprinting for Windows CHM htmlhelp to fix GH-91207
|
99 | 228 | # https://github.com/python/cpython/issues/91207
|
100 | 229 | if any('htmlhelp' in arg for arg in sys.argv):
|
|
0 commit comments