diff --git a/docs/conf.py b/docs/conf.py index 7b11e76..ab95a9a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,12 +14,13 @@ # -- Project information ----------------------------------------------------- - - _version_ = Version(__version__) # NOTE: Avoid "post" appearing in version string in rendered docs if _version_.is_postrelease: version = release = f'{_version_.major}.{_version_.minor}.{_version_.micro}' +# NOTE: Avoid long githashes in rendered Sphinx docs +elif _version_.is_devrelease: + version = release = f'{_version_.major}.{_version_.minor}.dev{_version_.dev}' else: version = release = str(_version_) is_development = _version_.is_devrelease