Closed kloczek closed 1 year ago
OK here is quick patch:
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -18,17 +18,7 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.append(os.path.abspath('..'))
-def relative(filename):
- here = os.path.dirname('__file__')
- return os.path.join(here, filename)
-
-def get_version():
- d = {}
- exec open(relative('../objgraph.py')).read() in d
- return d['__version__']
-
-def get_short_version():
- return '.'.join(get_version().split('.')[:2])
+import objgraph
# -- General configuration -----------------------------------------------------
@@ -57,9 +47,9 @@
# built documents.
#
# The short X.Y version.
-version = get_short_version()
+version = objgraph.__version__
# The full version, including alpha/beta/rc tags.
-release = get_version()
+release = version.split('.')[:2]
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Please let me know if you wan this patch as PR.
It's been fixed in git a while ago: e96d904f09278ef1a32eb666fb1db7d0d3c778db.
I'll make a new release.
Whee and I made a new release and I built new docs and my CSS is badly broken and whyyyyyyy I didn't change anything is it because Sphinx released new upstream versions?
Fixed the docs.
Anyway, in the 3.6.0 release this issue is fixed.
Please have a look one more time on proposed patch which contains way simpler solution.
You're probably right.
Looks like something is wrong with conf.py