Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloadable artifacts: make PDF and ePub opt-in by default #10115

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions readthedocs/projects/migrations/0098_pdf_epub_opt_in.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Generated by Django 3.2.18 on 2023-03-06 20:08

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("projects", "0097_add_http_header"),
]

operations = [
migrations.AlterField(
model_name="historicalproject",
name="enable_epub_build",
field=models.BooleanField(
default=False,
help_text="Create a EPUB version of your documentation with each build.",
verbose_name="Enable EPUB build",
),
),
migrations.AlterField(
model_name="historicalproject",
name="enable_pdf_build",
field=models.BooleanField(
default=False,
help_text="Create a PDF version of your documentation with each build.",
verbose_name="Enable PDF build",
),
),
migrations.AlterField(
model_name="project",
name="enable_epub_build",
field=models.BooleanField(
default=False,
help_text="Create a EPUB version of your documentation with each build.",
verbose_name="Enable EPUB build",
),
),
migrations.AlterField(
model_name="project",
name="enable_pdf_build",
field=models.BooleanField(
default=False,
help_text="Create a PDF version of your documentation with each build.",
verbose_name="Enable PDF build",
),
),
]
4 changes: 2 additions & 2 deletions readthedocs/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,14 @@ class Project(models.Model):
# Sphinx specific build options.
enable_epub_build = models.BooleanField(
_('Enable EPUB build'),
default=True,
default=False,
help_text=_(
'Create a EPUB version of your documentation with each build.',
),
)
enable_pdf_build = models.BooleanField(
_('Enable PDF build'),
default=True,
default=False,
help_text=_(
'Create a PDF version of your documentation with each build.',
),
Expand Down