Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwidman committed Apr 23, 2024
1 parent 56edac0 commit 26c1b07
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@
import sys
import time

# sys.path.insert(0, os.path.abspath('../src/flask_debugtoolbar'))
# breakpoint()
# import flask_debugtoolbar


BUILD_DATE = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))

# 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('.'))
sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.dirname(os.path.abspath('.')))
sys.path.insert(0, os.path.abspath('../src/flask_debugtoolbar'))
# breakpoint()
import flask_debugtoolbar


BUILD_DATE = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))

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

Expand Down Expand Up @@ -62,9 +63,7 @@
# built documents.
#
# The full version, including alpha/beta/rc tags.
from importlib.metadata import version
release = version("Flask-DebugToolbar")
# release = flask_debugtoolbar.__version__
release = flask_debugtoolbar.__version__
# The short X.Y version.
version = '.'.join(release.split('.')[:2])

Expand Down

0 comments on commit 26c1b07

Please sign in to comment.