|
1 | 1 | # Configuration file for the Sphinx documentation builder. |
2 | 2 | # |
3 | | -# This file only contains a selection of the most common options. For a full |
4 | | -# list see the documentation: |
| 3 | +# For the full list of built-in configuration values, see the documentation: |
5 | 4 | # https://www.sphinx-doc.org/en/master/usage/configuration.html |
6 | 5 |
|
7 | | -# -- Path setup -------------------------------------------------------------- |
8 | | - |
9 | 6 | import csv |
10 | 7 | import os |
11 | 8 | from glob import glob |
|
17 | 14 | from sphinx.locale import get_translation |
18 | 15 |
|
19 | 16 | # -- Project information ----------------------------------------------------- |
| 17 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
20 | 18 |
|
21 | 19 | project = "Open Contracting for Infrastructure Data Standards Toolkit" |
22 | 20 | copyright = "Open Contracting Partnership" |
|
25 | 23 | version = "0.9" |
26 | 24 | release = "0.9.5" |
27 | 25 |
|
28 | | - |
29 | 26 | # -- General configuration --------------------------------------------------- |
| 27 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
30 | 28 |
|
31 | | -# Add any Sphinx extension module names here, as strings. They can be |
32 | | -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
33 | | -# ones. |
34 | 29 | extensions = [ |
35 | 30 | "myst_parser", |
36 | 31 | "sphinxcontrib.jsonschema", |
|
39 | 34 | "sphinx_design", |
40 | 35 | ] |
41 | 36 |
|
42 | | -# Add any paths that contain templates here, relative to this directory. |
43 | 37 | templates_path = ["_templates"] |
44 | | - |
45 | | -# List of patterns, relative to source directory, that match files and |
46 | | -# directories to ignore when looking for source files. |
47 | | -# This pattern also affects html_static_path and html_extra_path. |
48 | 38 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**/docson/[!p]**", "**/docson/package*.json"] |
49 | 39 |
|
50 | | - |
51 | 40 | # -- Options for HTML output ------------------------------------------------- |
| 41 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
52 | 42 |
|
53 | | -# The theme to use for HTML and HTML Help pages. See the documentation for |
54 | | -# a list of builtin themes. |
55 | | -# |
56 | 43 | html_theme = "standard_theme" # 'pydata_sphinx_theme' |
57 | 44 | html_theme_path = [standard_theme.get_html_theme_path()] |
58 | 45 | html_favicon = "_static/favicon-16x16.ico" |
59 | | - |
60 | | -# Add any paths that contain custom static files (such as style sheets) here, |
61 | | -# relative to this directory. They are copied after the builtin static files, |
62 | | -# so a file named "default.css" will overwrite the builtin "default.css". |
63 | 46 | html_static_path = ["_static", "examples", "../mapping/sustainability.yaml"] |
| 47 | +html_css_files = ["renderjson.css", "https://fonts.googleapis.com/css?family=Montserrat", "custom.css"] |
| 48 | +html_js_files = ["renderjson.js", "json-example-format.js"] |
64 | 49 |
|
65 | 50 |
|
66 | 51 | # -- Local configuration ----------------------------------------------------- |
|
0 commit comments