Skip to content

Commit 256fbff

Browse files
committed
handle warnings and version
1 parent c8de627 commit 256fbff

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/source/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,24 @@
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88
from __future__ import annotations
99

10+
from importlib.metadata import version as _version
11+
1012
project = "django_mongodb"
1113
copyright = "2024, The MongoDB Python Team"
1214
author = "The MongoDB Python Team"
13-
release = "0.1.0.dev0"
15+
release = _version("django_mongodb")
1416

1517
# -- General configuration ---------------------------------------------------
1618
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
1719

1820
extensions = []
1921

20-
templates_path = ["_templates"]
22+
# templates_path = ["_templates"]
2123
exclude_patterns = []
2224

2325

2426
# -- Options for HTML output -------------------------------------------------
2527
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
2628

2729
html_theme = "alabaster"
28-
html_static_path = ["_static"]
30+
# html_static_path = ["_static"]

0 commit comments

Comments
 (0)