Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 38ac83c

Browse files
committed
docs: conf: Add _static directory
docs/conf.py Enable serving resources from docs/_static/ .ci/run.sh Ignore files in docs/_static/ Signed-off-by: John Andersen <[email protected]>
1 parent 84287ed commit 38ac83c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.ci/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function run_whitespace() {
184184
function run_style() {
185185
black --check "${SRC_ROOT}"
186186

187-
for filename in $(git ls-files \*.js); do
187+
for filename in $(git ls-files \*.js | grep -v docs/_static/); do
188188
echo "Checking JavaScript file \'${filename}\'"
189189
diff <(js-beautify -n -s 2 "${filename}") "${filename}"
190190
done

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@
9797
"display_github": True,
9898
}
9999

100+
# Add any paths that contain custom static files (such as style sheets) here,
101+
# relative to this directory. They are copied after the builtin static files,
102+
# so a file named "default.css" will overwrite the builtin "default.css".
103+
html_static_path = ["_static"]
104+
100105

101106
def setup(app):
102107
app.add_js_file("copybutton.js")

0 commit comments

Comments
 (0)