diff --git a/docs/conf.py b/docs/conf.py index df209e5..2c490d4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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, @@ -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 @@ -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.