Skip to content

Commit 77a5f86

Browse files
committed
build: Use html_css_files and html_js_files
1 parent 002909b commit 77a5f86

File tree

3 files changed

+6
-23
lines changed

3 files changed

+6
-23
lines changed

docs/_templates/layout.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{% set css_files = css_files + ["_static/renderjson.css", "https://fonts.googleapis.com/css?family=Montserrat", "_static/basic.css"] %}
2-
{% set script_files = script_files + ["_static/renderjson.js", "_static/json-example-format.js"] %}
31
{% extends "!layout.html" %}
42

53
{% block developed_by %}

docs/conf.py

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
# Configuration file for the Sphinx documentation builder.
22
#
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:
54
# https://www.sphinx-doc.org/en/master/usage/configuration.html
65

7-
# -- Path setup --------------------------------------------------------------
8-
96
import csv
107
import os
118
from glob import glob
@@ -17,6 +14,7 @@
1714
from sphinx.locale import get_translation
1815

1916
# -- Project information -----------------------------------------------------
17+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
2018

2119
project = "Open Contracting for Infrastructure Data Standards Toolkit"
2220
copyright = "Open Contracting Partnership"
@@ -25,12 +23,9 @@
2523
version = "0.9"
2624
release = "0.9.5"
2725

28-
2926
# -- General configuration ---------------------------------------------------
27+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
3028

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.
3429
extensions = [
3530
"myst_parser",
3631
"sphinxcontrib.jsonschema",
@@ -39,28 +34,18 @@
3934
"sphinx_design",
4035
]
4136

42-
# Add any paths that contain templates here, relative to this directory.
4337
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.
4838
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**/docson/[!p]**", "**/docson/package*.json"]
4939

50-
5140
# -- Options for HTML output -------------------------------------------------
41+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
5242

53-
# The theme to use for HTML and HTML Help pages. See the documentation for
54-
# a list of builtin themes.
55-
#
5643
html_theme = "standard_theme" # 'pydata_sphinx_theme'
5744
html_theme_path = [standard_theme.get_html_theme_path()]
5845
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".
6346
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"]
6449

6550

6651
# -- Local configuration -----------------------------------------------------

0 commit comments

Comments
 (0)