|
1 | 1 | #!/usr/bin/env python3
|
2 | 2 | # -*- coding: utf-8 -*-
|
3 | 3 |
|
4 |
| -import os |
5 |
| -import os.path as op |
6 |
| -from pathlib import Path |
7 |
| -import requests |
8 |
| - |
9 | 4 | # -- General configuration ------------------------------------------------
|
10 |
| - |
11 |
| -# If your documentation needs a minimal Sphinx version, state it here. |
12 |
| -# |
13 |
| -# needs_sphinx = '1.0' |
14 |
| - |
15 |
| -# Add any Sphinx extension module names here, as strings. They can be |
16 |
| -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
17 |
| -# ones. |
18 | 5 | extensions = [
|
19 | 6 | "sphinx_copybutton",
|
20 | 7 | "myst_parser",
|
|
32 | 19 | source_suffix = [".rst", ".md"]
|
33 | 20 |
|
34 | 21 | # The master toctree document.
|
35 |
| -master_doc = "index" |
| 22 | +main_doc = "index" |
36 | 23 |
|
37 | 24 | # General information about the project.
|
38 | 25 | project = "Binder"
|
39 |
| -copyright = "2017, The Binder Team" |
| 26 | +copyright = "2022, The Binder Team" |
40 | 27 | author = "The Binder Team"
|
41 |
| - |
42 |
| -# The version info for the project you're documenting, acts as replacement for |
43 |
| -# |version| and |release|, also used in various other places throughout the |
44 |
| -# built documents. |
45 |
| -# |
46 |
| -# The short X.Y version. |
47 | 28 | version = "0.1b"
|
48 | 29 | # The full version, including alpha/beta/rc tags.
|
49 | 30 | release = "0.1b"
|
|
52 | 33 | "r2d": ("https://repo2docker.readthedocs.io/en/latest/", None),
|
53 | 34 | "tc": ("https://jupyterhub-team-compass.readthedocs.io/en/latest/", None),
|
54 | 35 | }
|
55 |
| - |
56 |
| -# The language for content autogenerated by Sphinx. Refer to documentation |
57 |
| -# for a list of supported languages. |
58 |
| -# |
59 |
| -# This is also used if you do content translation via gettext catalogs. |
60 |
| -# Usually you set "language" from the command line for these cases. |
61 |
| -language = None |
62 |
| - |
63 |
| -# List of patterns, relative to source directory, that match files and |
64 |
| -# directories to ignore when looking for source files. |
65 |
| -# This patterns also effect to html_static_path and html_extra_path |
66 | 36 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
67 |
| - |
68 |
| -# The name of the Pygments (syntax highlighting) style to use. |
69 | 37 | pygments_style = "sphinx"
|
70 | 38 |
|
71 |
| -# If true, `todo` and `todoList` produce output, else they produce nothing. |
72 |
| -todo_include_todos = False |
73 |
| - |
74 |
| -# Binder Logo |
75 |
| -html_logo = "_static/images/logo.png" |
76 |
| -html_favicon = "_static/images/favicon.png" |
77 |
| - |
78 | 39 | # -- Options for HTML output ----------------------------------------------
|
79 |
| - |
80 |
| -# The theme to use for HTML and HTML Help pages. See the documentation for |
81 |
| -# a list of builtin themes. |
82 |
| -# |
83 | 40 | html_theme = "pydata_sphinx_theme"
|
| 41 | +html_favicon = "_static/images/favicon.png" |
84 | 42 |
|
85 | 43 | # Theme options are theme-specific and customize the look and feel of a theme
|
86 | 44 | # further. For a list of options available for each theme, see the
|
|
98 | 56 | "icon": "_static/favicon.png",
|
99 | 57 | "type": "local",
|
100 | 58 | }
|
101 |
| - ], |
102 |
| - "navbar_end": ["navbar-icon-links", "support-button"], |
| 59 | + ], |
| 60 | + "navbar_align": "left", |
| 61 | + "navbar_end": ["theme-switcher", "navbar-icon-links", "support-button"], |
| 62 | + "logo": { |
| 63 | + "image_light": "images/logo.png", |
| 64 | + "image_dark": "images/logo-dark.png", |
| 65 | + } |
103 | 66 | }
|
104 | 67 |
|
105 | 68 | html_context = {
|
|
113 | 76 | html_sidebars = {
|
114 | 77 | "index": [], # Remove sidebars on landing page to save space
|
115 | 78 | }
|
116 |
| - |
117 |
| -# Add any paths that contain custom static files (such as style sheets) here, |
118 |
| -# relative to this directory. They are copied after the builtin static files, |
119 |
| -# so a file named "default.css" will overwrite the builtin "default.css". |
120 | 79 | html_static_path = ["_static"]
|
121 | 80 | html_css_files = ["custom.css"]
|
122 | 81 |
|
|
141 | 100 | "deflist",
|
142 | 101 | ]
|
143 | 102 |
|
144 |
| -# -- Options for HTMLHelp output ------------------------------------------ |
145 |
| - |
146 |
| -# Output file base name for HTML help builder. |
147 |
| -htmlhelp_basename = "Binderdoc" |
148 |
| - |
149 |
| -# -- Options for LaTeX output --------------------------------------------- |
150 |
| - |
151 |
| -latex_elements = { |
152 |
| - # The paper size ('letterpaper' or 'a4paper'). |
153 |
| - # |
154 |
| - # 'papersize': 'letterpaper', |
155 |
| - # The font size ('10pt', '11pt' or '12pt'). |
156 |
| - # |
157 |
| - # 'pointsize': '10pt', |
158 |
| - # Additional stuff for the LaTeX preamble. |
159 |
| - # |
160 |
| - # 'preamble': '', |
161 |
| - # Latex figure (float) alignment |
162 |
| - # |
163 |
| - # 'figure_align': 'htbp', |
164 |
| -} |
165 |
| - |
166 |
| -# Grouping the document tree into LaTeX files. List of tuples |
167 |
| -# (source start file, target name, title, |
168 |
| -# author, documentclass [howto, manual, or own class]). |
169 |
| -latex_documents = [ |
170 |
| - (master_doc, "Binder.tex", "Binder Documentation", "The Binder Team", "manual"), |
171 |
| -] |
172 |
| - |
173 |
| - |
174 |
| -# -- Options for manual page output --------------------------------------- |
175 |
| - |
176 |
| -# One entry per manual page. List of tuples |
177 |
| -# (source start file, name, description, authors, manual section). |
178 |
| -man_pages = [(master_doc, "binder", "Binder Documentation", [author], 1)] |
179 |
| - |
180 |
| - |
181 |
| -# -- Options for Texinfo output ------------------------------------------- |
182 |
| - |
183 |
| -# Grouping the document tree into Texinfo files. List of tuples |
184 |
| -# (source start file, target name, title, author, |
185 |
| -# dir menu entry, description, category) |
186 |
| -texinfo_documents = [ |
187 |
| - ( |
188 |
| - master_doc, |
189 |
| - "Binder", |
190 |
| - "Binder Documentation", |
191 |
| - author, |
192 |
| - "Binder", |
193 |
| - "One line description of project.", |
194 |
| - "Miscellaneous", |
195 |
| - ), |
196 |
| -] |
197 |
| - |
198 | 103 | # -- Scripts --------------------------------------------------------------
|
199 | 104 | from subprocess import run
|
200 | 105 | import shlex
|
|
0 commit comments