Skip to content

Commit 5892b91

Browse files
authored
docs: include version (#185)
1 parent aff203b commit 5892b91

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/conf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99

1010
from typing import List
1111

12+
from pkg_resources import get_distribution
13+
1214
# -- Project information -----------------------------------------------------
1315

1416
project = "Hist"
15-
copyright = "2020, Scikit-HEP"
17+
copyright = "2020-2021, Henry Schreiner"
1618
author = "Henry Schreiner and Nino Lau"
19+
version = get_distribution("hist").version
1720

1821

1922
# -- General configuration ---------------------------------------------------
@@ -47,7 +50,7 @@
4750

4851
# Config for the Sphinx book
4952

50-
html_baseurl = "https://boost-histogram.readthedocs.io/en/latest/"
53+
html_baseurl = "https://hist.readthedocs.io/en/latest/"
5154

5255
html_theme_options = {
5356
"home_page_in_toc": True,
@@ -66,7 +69,7 @@
6669
# -- Options for Notebook input ----------------------------------------------
6770

6871
html_logo = "_images/histlogo.png"
69-
html_title = "Hist docs"
72+
html_title = f"Hist {version}"
7073

7174
nbsphinx_execute = "auto" # auto, never
7275

0 commit comments

Comments
 (0)