Skip to content

Commit

Permalink
Fix Sphinx doc generation without setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitlock committed Jun 24, 2024
1 parent de4374d commit 3b9f748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import pkg_resources
from importlib.metadata import version as get_version
from typing import Dict

# If extensions (or modules to document with autodoc) are in another directory,
Expand Down Expand Up @@ -51,7 +51,7 @@
# built documents.
#
# The short X.Y version.
version = pkg_resources.get_distribution("django_csp").version
version = get_version("django_csp")
# The full version, including alpha/beta/rc tags.
release = version

Expand Down Expand Up @@ -123,7 +123,7 @@
# 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"]
# html_static_path = ["_static"]

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down

0 comments on commit 3b9f748

Please sign in to comment.