diff --git a/common/djangoapps/util/help_context_processor.py b/common/djangoapps/util/help_context_processor.py index 5aa56e7bae..2f6fd134b3 100644 --- a/common/djangoapps/util/help_context_processor.py +++ b/common/djangoapps/util/help_context_processor.py @@ -4,9 +4,11 @@ Online Contextual Help. """ import ConfigParser -from django.conf import settings import logging +from django.conf import settings + +from openedx.core.release import doc_version log = logging.getLogger(__name__) @@ -76,7 +78,7 @@ def common_doc_url(request, config_file_object): # pylint: disable=unused-argum return "{url_base}/{language}/{version}/{page_path}".format( url_base=doc_base_url, language=get_config_value_with_default("locales", settings.LANGUAGE_CODE), - version=config_file_object.get("help_settings", "version"), + version=doc_version(), page_path=get_config_value_with_default("pages", page_token), ) @@ -102,7 +104,7 @@ def common_doc_url(request, config_file_object): # pylint: disable=unused-argum # Construct and return the URL for the PDF link. return "{pdf_base}/{version}/{pdf_file}".format( pdf_base=pdf_base_url, - version=config_file_object.get("help_settings", "version"), + version=doc_version(), pdf_file=config_file_object.get("pdf_settings", "pdf_file"), ) diff --git a/docs/cms_config.ini b/docs/cms_config.ini index cf7bdec2f0..08b9392400 100644 --- a/docs/cms_config.ini +++ b/docs/cms_config.ini @@ -2,7 +2,6 @@ [help_settings] # The optional DOC_LINK_BASE_URL configuration property will override url_base url_base = http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course -version = latest # below are the pdf settings for the pdf file diff --git a/docs/lms_config.ini b/docs/lms_config.ini index 40a53512dc..207fd46f3d 100644 --- a/docs/lms_config.ini +++ b/docs/lms_config.ini @@ -2,7 +2,6 @@ [help_settings] # The optional DOC_LINK_BASE_URL configuration property will override url_base url_base = http://edx.readthedocs.io/projects/open-edx-learner-guide -version = latest # below are the pdf settings for the pdf file