Skip to content

Commit

Permalink
Merge pull request #18 from neutrons/optional_static_dir
Browse files Browse the repository at this point in the history
Use "_static" only if it exists
  • Loading branch information
KedoKudo authored May 21, 2024
2 parents 9c29c52 + 599142c commit 1e4f305
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
napoleon_google_docstring = False
napoleon_numpy_docstring = True

html_static_path = ["_static"]
# "Static" resources (like *.css *.js files, or images) to be included when generating the HTML documentation.
if os.path.exists("_static"):
html_static_path = ["_static"]

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True

0 comments on commit 1e4f305

Please sign in to comment.