Skip to content

Commit 93c3ea5

Browse files
Removing -p option which enabled pdf builds for update_versions and update_repos management commands. It is now determined by the project settings whether a PDF build is triggered or not.
1 parent a3ffcfd commit 93c3ea5

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

readthedocs/core/management/commands/update_repos.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ class Command(BaseCommand):
1717
"""
1818

1919
option_list = BaseCommand.option_list + (
20-
make_option('-p',
21-
action='store_true',
22-
dest='pdf',
23-
default=False,
24-
help='Make a pdf'),
2520
make_option('-r',
2621
action='store_true',
2722
dest='record',
@@ -39,7 +34,6 @@ class Command(BaseCommand):
3934
)
4035

4136
def handle(self, *args, **options):
42-
make_pdf = options['pdf']
4337
record = options['record']
4438
force = options['force']
4539
version = options['version']
@@ -55,7 +49,6 @@ def handle(self, *args, **options):
5549
active=True,
5650
uploaded=False):
5751
tasks.update_docs(pk=version.project_id,
58-
pdf=make_pdf,
5952
record=False,
6053
version_pk=version.pk)
6154
else:
@@ -68,14 +61,12 @@ def handle(self, *args, **options):
6861
for version in Version.objects.filter(active=True,
6962
uploaded=False):
7063
tasks.update_docs(pk=version.project_id,
71-
pdf=make_pdf,
7264
record=record,
7365
force=force,
7466
version_pk=version.pk)
7567
else:
7668
log.info("Updating all docs")
77-
tasks.update_docs_pull(pdf=make_pdf,
78-
record=record,
69+
tasks.update_docs_pull(record=record,
7970
force=force)
8071

8172
@property
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
from builds.models import Version
22
from django.core.management.base import BaseCommand
3-
from optparse import make_option
43
from projects.tasks import update_docs
54

65

76
class Command(BaseCommand):
87
"""Custom management command to rebuild documentation for all projects on
98
the site. Invoked via ``./manage.py update_repos``.
109
"""
11-
option_list = BaseCommand.option_list + (
12-
make_option('-p',
13-
action='store_true',
14-
dest='pdf',
15-
default=False,
16-
help='Make a pdf'),
17-
)
1810

1911
def handle(self, *args, **options):
20-
make_pdf = options['pdf']
2112
for version in Version.objects.filter(active=True, built=False):
22-
update_docs(version.project_id, pdf=make_pdf, record=False,
13+
update_docs(version.project_id, record=False,
2314
version_pk=version.pk)

0 commit comments

Comments
 (0)