Skip to content

Commit

Permalink
Merge pull request #2102 from wridgers/willr--fix-documentation-link
Browse files Browse the repository at this point in the history
[Issue #2101] Use WEBAPP_VERSION in documentation link
  • Loading branch information
deniszh committed Nov 6, 2017
2 parents 0adef0f + cd176d0 commit 15f16a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/graphite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@

#Miscellaneous settings
SMTP_SERVER = "localhost"
DOCUMENTATION_URL = "http://graphite.readthedocs.io/"
DOCUMENTATION_VERSION = 'latest' if 'dev' in WEBAPP_VERSION else WEBAPP_VERSION
DOCUMENTATION_URL = 'https://graphite.readthedocs.io/en/{}/'.format(DOCUMENTATION_VERSION)
ALLOW_ANONYMOUS_CLI = True
LEGEND_MAX_ITEMS = 10
RRD_CF = 'AVERAGE'
Expand Down

0 comments on commit 15f16a3

Please sign in to comment.