File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,10 @@ def get_config_params(self):
156
156
protocol = 'http' if settings .DEBUG else 'https'
157
157
build_url = f'{ protocol } ://{ settings .PRODUCTION_DOMAIN } { build_url } '
158
158
159
+ vcs_url = None
160
+ if self .version .is_external :
161
+ vcs_url = self .version .vcs_url
162
+
159
163
data = {
160
164
'html_theme' : 'sphinx_rtd_theme' ,
161
165
'html_theme_import' : 'sphinx_rtd_theme' ,
@@ -170,6 +174,7 @@ def get_config_params(self):
170
174
'downloads' : downloads ,
171
175
'subproject_urls' : subproject_urls ,
172
176
'build_url' : build_url ,
177
+ 'vcs_url' : vcs_url ,
173
178
174
179
# GitHub
175
180
'github_user' : github_user ,
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ else:
154
154
# Add External version warning banner to the external version documentation
155
155
if '{{ version.type }}' == 'external':
156
156
extensions.insert(1, "readthedocs_ext.external_version_warning")
157
- readthedocs_vcs_url = '{{ version. vcs_url }}'
157
+ readthedocs_vcs_url = '{{ vcs_url }}'
158
158
readthedocs_build_url = '{{ build_url }}'
159
159
160
160
project_language = '{{ project.language }}'
You can’t perform that action at this time.
0 commit comments