Skip to content

Commit

Permalink
Fix VERSION dependency in docs/conf for sphinx build
Browse files Browse the repository at this point in the history
  • Loading branch information
cderici committed Feb 14, 2024
1 parent c05cccb commit 3bdb58e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@
from pathlib import Path

here = Path(__file__).absolute().parent
version = (here.parent / 'VERSION').read_text().strip()


# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))

from juju.version import CLIENT_VERSION
version = CLIENT_VERSION

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down

0 comments on commit 3bdb58e

Please sign in to comment.