Skip to content

Commit e81038d

Browse files
committed
no need to show version in docs
since we deploy docs from main and have no way to view old docs the version is somewhat meaningless. Instead we should have a changelog.
1 parent d587a43 commit e81038d

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

docs/source/conf.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import sys
1010
from pathlib import Path
11-
from pkg_resources import get_distribution
1211

1312
# -- Path Setup --------------------------------------------------------------
1413

@@ -24,23 +23,9 @@
2423
# -- Project information -----------------------------------------------------
2524

2625
project = "IDOM"
27-
copyright = "2019, Ryan Morshead"
26+
copyright = "2020, Ryan Morshead"
2827
author = "Ryan Morshead"
2928

30-
dist = get_distribution("idom")
31-
release = get_distribution("idom").version.split("+")[0]
32-
33-
# Hack because setuptools_scm doesn't play nice with github actions
34-
# dev0 indicates we're zero distance away from the last release
35-
# but setuptools_scm still seems to think we're developing. This
36-
# we need to remedy this misunderstanding.
37-
if release.endswith(".dev0"):
38-
major, minor, patch, *_ = release.split(".")
39-
release = f"{major}.{minor}.{int(patch) - 1}"
40-
41-
# for example take major/minor
42-
version = ".".join(release.split(".")[:2])
43-
4429
# -- General configuration ---------------------------------------------------
4530

4631
# If your documentatirston needs a minimal Sphinx version, state it here.

0 commit comments

Comments
 (0)