23 code results in rtfd/readthedocs.org

Python
readthedocs/doc_builder/constants.py
Showing the top match Last indexed Dec 28, 2017
27 SPHINX_STATIC_DIR = os.path.join(SPHINX_TEMPLATE_DIR, '_static')
28
29 PDF_RE = re.compile('Output written on (.*?)')
30
31 # Docker
Python
readthedocs/projects/tasks.py
Showing the top three matches Last indexed Dec 28, 2017
284 search=bool(outcomes['search']),
285 localmedia=bool(outcomes['localmedia']),
286 pdf=bool(outcomes['pdf']),
386 def update_app_instances(self, html=False, localmedia=False, search=False,
387 pdf=False, epub=False):
388 """
389 Update application instances with build artifacts.
Python
readthedocs/rtd_tests/tests/test_urls.py
Showing the top match Last indexed Jun 14, 2017
49 url = reverse(
50 'project_download_media',
51 kwargs={'type_': 'pdf', 'version_slug': u'1.4.X', 'project_slug': u'django'}
52 )
53 self.assertTrue(url)
Python
readthedocs/builds/migrations/0001_initial.py
Showing the top match Last indexed Jun 14, 2017
22 ('type', models.CharField(default=b'html', max_length=55, verbose_name='Type', choices=[(b'html', 'HTML'), (b'pdf', 'PDF'), (b'epub', 'Epub'), (b'man', 'Manpage'), (b'dash', 'Dash')])),
23 ('state', models.CharField(default=b'finished', max_length=55, verbose_name='State', choices=[(b'triggered', 'Triggered'), (b'cloning', 'Cloning'), (b'installing', 'Installing'), (b'building', 'Building'), (b'finished', 'Finished')])),
Python
readthedocs/builds/models.py
Showing the top two matches Last indexed Dec 21, 2017
205 if pretty:
206 if project.has_pdf(self.slug):
207 data['PDF'] = project.get_production_media_url('pdf', self.slug)
208 if project.has_htmlzip(self.slug):
209 data['HTML'] = project.get_production_media_url(
Python
readthedocs/restapi/serializers.py
Showing the top match Last indexed Dec 21, 2017
45 fields = ProjectSerializer.Meta.fields + (
46 'enable_epub_build',
47 'enable_pdf_build',
48 'conf_py_file',
49 'analytics_code',
Python
readthedocs/doc_builder/config.py
Showing the top two matches Last indexed Dec 28, 2017
110 if self._project.enable_epub_build:
111 formats += ['epub']
112 if self._project.enable_pdf_build:
113 formats += ['pdf']
114 return formats
115
116 @property
117 def build_image(self):
118 if self._project.container_image:
Python
readthedocs/projects/models.py
Showing the top three matches Last indexed Dec 21, 2017
167 'Create a EPUB version of your documentation with each build.'))
168 enable_pdf_build = models.BooleanField(
169 _('Enable PDF build'), default=True,
170 help_text=_(
171 'Create a PDF version of your documentation with each build.'))
172
173 # Other model data.
Python
readthedocs/projects/migrations/0001_initial.py
Showing the top match Last indexed Jun 14, 2017
53 ('enable_epub_build', models.BooleanField(default=True, help_text='Create a EPUB version of your documentation with each build.', verbose_name='Enable EPUB build')),
54 ('enable_pdf_build', models.BooleanField(default=True, help_text='Create a PDF version of your documentation with each build.', verbose_name='Enable PDF build')),
Python
readthedocs/rtd_tests/tests/test_celery.py
Showing the top match Last indexed Nov 14, 2017
52 version = self.project.versions.all()[0]
53 directory = self.project.get_production_media_path(type_='pdf', version_slug=version.slug)