Skip to content

Commit 8630cca

Browse files
committed
Regroup settings
This is an initial proposal for readthedocs#5413
1 parent 173c1f8 commit 8630cca

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

readthedocs/projects/forms.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -208,24 +208,23 @@ class ProjectAdvancedForm(ProjectTriggerBuildMixin, ProjectForm):
208208
class Meta:
209209
model = Project
210210
fields = (
211-
# Standard build edits
211+
# Global settings.
212+
'default_version',
213+
'default_branch',
214+
'privacy_level',
215+
'analytics_code',
216+
'show_version_warning',
217+
'single_version',
218+
219+
# Options that can be set per-version using a config file.
220+
'documentation_type',
212221
'install_project',
213222
'requirements_file',
214-
'single_version',
215223
'conf_py_file',
216-
'default_branch',
217-
'default_version',
218-
'show_version_warning',
219224
'enable_pdf_build',
220225
'enable_epub_build',
221-
# Privacy
222-
'privacy_level',
223-
# 'version_privacy_level',
224-
# Python specific
225226
'use_system_packages',
226227
'python_interpreter',
227-
# Fringe
228-
'analytics_code',
229228
)
230229

231230
def __init__(self, *args, **kwargs):
@@ -287,7 +286,6 @@ class Meta:
287286
'repo_type',
288287
# Extra
289288
'description',
290-
'documentation_type',
291289
'language',
292290
'programming_language',
293291
'project_url',

readthedocs/rtd_tests/tests/test_project_symlinks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,7 @@ def test_change_subproject_privacy(self):
12141214
# Required defaults
12151215
'python_interpreter': 'python',
12161216
'default_version': 'latest',
1217+
'documentation_type': 'sphinx',
12171218

12181219
'privacy_level': 'private',
12191220
},

0 commit comments

Comments
 (0)