Skip to content

Commit

Permalink
Adding RTD prefix to support docs building
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamshankhadeep committed Aug 3, 2019
1 parent daea301 commit 2a33e53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/config-file/v1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ The ``build`` block configures specific aspects of the documentation build.
build.image
```````````

* Default: :djangosetting:`DOCKER_DEFAULT_VERSION`
* Default: :djangosetting:`RTD_DOCKER_DEFAULT_VERSION`
* Options: ``stable``, ``latest``

The build image to use for specific builds.
Expand Down
4 changes: 2 additions & 2 deletions docs/doc_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def django_setting_role(typ, rawtext, text, lineno, inliner, options=None,
def python_supported_versions_role(typ, rawtext, text, lineno, inliner,
options=None, content=None):
"""Up to date supported python versions for each build image."""
image = '{}:{}'.format(settings.DOCKER_DEFAULT_IMAGE, text)
image_settings = settings.DOCKER_IMAGE_SETTINGS[image]
image = '{}:{}'.format(settings.RTD_DOCKER_DEFAULT_IMAGE, text)
image_settings = settings.RTD_DOCKER_IMAGE_SETTINGS[image]
python_versions = image_settings['python']['supported_versions']
node_list = []
separator = ', '
Expand Down

0 comments on commit 2a33e53

Please sign in to comment.