Skip to content

Commit

Permalink
Import app version for docs to make things easier to maintain
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb committed Feb 26, 2020
1 parent 1c2b447 commit e882c26
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys, os
import os
import sys

from django_bleach import VERSION

# 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
Expand Down Expand Up @@ -48,9 +51,9 @@
# built documents.
#
# The short X.Y version.
version = '0.5'
version = '.'.join(VERSION[:2])
# The full version, including alpha/beta/rc tags.
release = '0.5.0'
release = '.'.join(VERSION)

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit e882c26

Please sign in to comment.