|
1 | 1 | #!/usr/bin/env python |
2 | | -# |
3 | | -# ecs_composex_msk_cluster documentation build configuration file, created by |
4 | | -# sphinx-quickstart on Fri Jun 9 13:47:02 2017. |
5 | | -# |
6 | | -# This file is execfile()d with the current directory set to its |
7 | | -# containing dir. |
8 | | -# |
9 | | -# Note that not all possible configuration values are present in this |
10 | | -# autogenerated file. |
11 | | -# |
12 | | -# All configuration values have a default; values that are commented out |
13 | | -# serve to show the default. |
14 | | - |
15 | | -# If extensions (or modules to document with autodoc) are in another |
16 | | -# directory, add these directories to sys.path here. If the directory is |
17 | | -# relative to the documentation root, use os.path.abspath to make it |
18 | | -# absolute, like shown here. |
19 | | -# |
20 | | -import os |
21 | | -import sys |
22 | | -sys.path.insert(0, os.path.abspath('..')) |
23 | | - |
24 | | -import ecs_composex_msk_cluster |
25 | | - |
26 | | -# -- General configuration --------------------------------------------- |
27 | | - |
28 | | -# If your documentation needs a minimal Sphinx version, state it here. |
29 | | -# |
30 | | -# needs_sphinx = '1.0' |
31 | | - |
32 | | -# Add any Sphinx extension module names here, as strings. They can be |
33 | | -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
| 2 | + |
| 3 | +import sphinx_material |
| 4 | + |
| 5 | +try: |
| 6 | + import ecs_composex_msk_cluster |
| 7 | +except ImportError: |
| 8 | + import os |
| 9 | + import sys |
| 10 | + |
| 11 | + sys.path.insert(0, os.path.abspath('..')) |
| 12 | + import ecs_composex_msk_cluster |
| 13 | + |
| 14 | + |
34 | 15 | extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] |
35 | 16 |
|
36 | | -# Add any paths that contain templates here, relative to this directory. |
37 | 17 | templates_path = ['_templates'] |
| 18 | +source_suffix = ['.rst', '.md'] |
| 19 | +# source_suffix = '.rst' |
38 | 20 |
|
39 | | -# The suffix(es) of source filenames. |
40 | | -# You can specify multiple suffix as a list of string: |
41 | | -# |
42 | | -# source_suffix = ['.rst', '.md'] |
43 | | -source_suffix = '.rst' |
44 | | - |
45 | | -# The master toctree document. |
46 | 21 | master_doc = 'index' |
47 | | - |
48 | | -# General information about the project. |
49 | | -project = 'msk_cluster' |
50 | | -copyright = "2022, John Preston" |
| 22 | +project = 'ecs_composex_msk_cluster' |
| 23 | +copyright = '2022, John "Preston" Mille' |
51 | 24 | author = "John Preston" |
52 | 25 |
|
53 | | -# The version info for the project you're documenting, acts as replacement |
54 | | -# for |version| and |release|, also used in various other places throughout |
55 | | -# the built documents. |
56 | | -# |
57 | | -# The short X.Y version. |
58 | 26 | version = ecs_composex_msk_cluster.__version__ |
59 | | -# The full version, including alpha/beta/rc tags. |
60 | 27 | release = ecs_composex_msk_cluster.__version__ |
61 | | - |
62 | | -# The language for content autogenerated by Sphinx. Refer to documentation |
63 | | -# for a list of supported languages. |
64 | | -# |
65 | | -# This is also used if you do content translation via gettext catalogs. |
66 | | -# Usually you set "language" from the command line for these cases. |
67 | 28 | language = None |
68 | 29 |
|
69 | | -# List of patterns, relative to source directory, that match files and |
70 | | -# directories to ignore when looking for source files. |
71 | | -# This patterns also effect to html_static_path and html_extra_path |
72 | 30 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
73 | | - |
74 | | -# The name of the Pygments (syntax highlighting) style to use. |
75 | 31 | pygments_style = 'sphinx' |
76 | | - |
77 | | -# If true, `todo` and `todoList` produce output, else they produce nothing. |
78 | 32 | todo_include_todos = False |
79 | 33 |
|
80 | | - |
81 | | -# -- Options for HTML output ------------------------------------------- |
82 | | - |
83 | | -# The theme to use for HTML and HTML Help pages. See the documentation for |
84 | | -# a list of builtin themes. |
85 | | -# |
86 | | - |
87 | | -import sphinx_material |
88 | | - |
89 | 34 | extensions += [ |
90 | 35 | "sphinx.ext.todo", |
91 | 36 | "sphinx.ext.viewcode", |
92 | 37 | "sphinx.ext.autodoc", |
| 38 | + "sphinx_autodoc_typehints", |
| 39 | + "sphinx-jsonschema", |
| 40 | + "sphinx_material" |
93 | 41 | ] |
94 | 42 |
|
95 | | -html_theme = "sphinx_rtd_theme" |
96 | 43 | autosummary_generate = True |
97 | 44 | autoclass_content = "class" |
98 | 45 |
|
99 | | -html_baseurl = "https://docs" |
| 46 | +html_baseurl = "https://msk-cluster.docs.compose-x.io" |
100 | 47 |
|
101 | | -extensions.append("sphinx_material") |
102 | 48 | html_theme_path = sphinx_material.html_theme_path() |
103 | 49 | html_context = sphinx_material.get_html_context() |
104 | 50 | html_theme = "sphinx_material" |
105 | | -# Theme options are theme-specific and customize the look and feel of a |
106 | | -# theme further. For a list of options available for each theme, see the |
107 | | -# documentation. |
108 | | -# |
109 | 51 | html_theme_options = { |
110 | 52 | # Set the name of the project to appear in the navigation. |
111 | | - "nav_title": "msk_cluster", |
112 | | - # Set you GA account ID to enable tracking |
| 53 | + "nav_title": "Compose-X MSK Cluster", |
113 | 54 | # 'google_analytics_account': 'UA-XXXXX', |
114 | | - # Specify a base_url used to generate sitemap.xml. If not |
115 | | - # specified, then no sitemap will be built. |
116 | 55 | "base_url": "https://docs.msk-cluster.ecs-composex.io", |
117 | 56 | "html_minify": False, |
118 | 57 | "html_prettify": True, |
119 | 58 | "css_minify": True, |
120 | | - # Set the color and the accent color |
121 | 59 | "color_primary": "blue-grey", |
122 | 60 | "color_accent": "white", |
123 | | - # Set the repo location to get a badge with stats |
124 | 61 | "repo_url": "https://github.com/compose-x/ecs_composex_msk_cluster/", |
125 | 62 | "repo_name": "compose-x/ecs_composex_msk_cluster", |
126 | 63 | "repo_type": "github", |
127 | | - # Visible levels of the global TOC; -1 means unlimited |
128 | 64 | "globaltoc_depth": 2, |
129 | | - # If False, expand all TOC entries |
130 | 65 | "globaltoc_collapse": True, |
131 | | - # If True, show hidden TOC entries |
132 | 66 | "globaltoc_includehidden": False, |
133 | 67 | } |
134 | 68 |
|
135 | | -# Add any paths that contain custom static files (such as style sheets) here, |
136 | | -# relative to this directory. They are copied after the builtin static files, |
137 | | -# so a file named "default.css" will overwrite the builtin "default.css". |
138 | | -html_static_path = ['_static'] |
| 69 | +html_static_path = ["_static"] |
139 | 70 | html_show_sourcelink = True |
140 | 71 | html_sidebars = { |
141 | 72 | "**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"] |
142 | 73 | } |
143 | 74 |
|
144 | | -# -- Options for HTMLHelp output --------------------------------------- |
145 | | - |
146 | | -# Output file base name for HTML help builder. |
147 | 75 | htmlhelp_basename = 'ecs_composex_msk_clusterdoc' |
148 | 76 |
|
149 | | - |
150 | | -# -- Options for LaTeX output ------------------------------------------ |
151 | | - |
152 | | -latex_elements = { |
153 | | - # The paper size ('letterpaper' or 'a4paper'). |
154 | | - # |
155 | | - # 'papersize': 'letterpaper', |
156 | | - |
157 | | - # The font size ('10pt', '11pt' or '12pt'). |
158 | | - # |
159 | | - # 'pointsize': '10pt', |
160 | | - |
161 | | - # Additional stuff for the LaTeX preamble. |
162 | | - # |
163 | | - # 'preamble': '', |
164 | | - |
165 | | - # Latex figure (float) alignment |
166 | | - # |
167 | | - # 'figure_align': 'htbp', |
168 | | -} |
169 | | - |
170 | | -# Grouping the document tree into LaTeX files. List of tuples |
171 | | -# (source start file, target name, title, author, documentclass |
172 | | -# [howto, manual, or own class]). |
| 77 | +latex_elements = {} |
173 | 78 | latex_documents = [ |
174 | 79 | (master_doc, 'ecs_composex_msk_cluster.tex', |
175 | 80 | 'msk_cluster Documentation', |
176 | 81 | 'John Preston', 'manual'), |
177 | 82 | ] |
178 | 83 |
|
179 | | -# -- Options for manual page output ------------------------------------ |
180 | | - |
181 | | -# One entry per manual page. List of tuples |
182 | | -# (source start file, name, description, authors, manual section). |
183 | 84 | man_pages = [ |
184 | 85 | (master_doc, 'ecs_composex_msk_cluster', |
185 | 86 | 'msk_cluster Documentation', |
186 | 87 | [author], 1) |
187 | 88 | ] |
188 | 89 |
|
189 | | -# -- Options for Texinfo output ---------------------------------------- |
190 | | - |
191 | | -# Grouping the document tree into Texinfo files. List of tuples |
192 | | -# (source start file, target name, title, author, |
193 | | -# dir menu entry, description, category) |
194 | 90 | texinfo_documents = [ |
195 | 91 | (master_doc, 'ecs_composex_msk_cluster', |
196 | 92 | 'msk_cluster Documentation', |
|
0 commit comments