Skip to content

Commit

Permalink
docs: conf: Add _static directory
Browse files Browse the repository at this point in the history
docs/conf.py

  Enable serving resources from docs/_static/

.ci/run.sh

  Ignore files in docs/_static/

Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
  • Loading branch information
pdxjohnny committed Mar 6, 2021
1 parent 06762af commit 275259b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function run_whitespace() {
function run_style() {
black --check "${SRC_ROOT}"

for filename in $(git ls-files \*.js); do
for filename in $(git ls-files \*.js | grep -v docs/_static/); do
echo "Checking JavaScript file \'${filename}\'"
diff <(js-beautify -n -s 2 "${filename}") "${filename}"
done
Expand Down
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@
"display_github": True,
}

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


def setup(app):
app.add_js_file("copybutton.js")
Expand Down

0 comments on commit 275259b

Please sign in to comment.