Stop building/showing man pages. I don't think anyone uses these.

This should at least speed up builds slightly. Until we have a nicer way to manage what types of docs get built for a project.
refactor-builder
Eric Holscher 2014-02-20 13:06:10 +08:00
parent 9fd1b18aea
commit 094750b6e0
3 changed files with 12 additions and 9 deletions

View File

@ -184,8 +184,8 @@ class Version(models.Model):
data['htmlzip_url'] = project.get_htmlzip_url(self.slug)
if project.has_epub(self.slug):
data['epub_url'] = project.get_epub_url(self.slug)
if project.has_manpage(self.slug):
data['manpage_url'] = project.get_manpage_url(self.slug)
#if project.has_manpage(self.slug):
#data['manpage_url'] = project.get_manpage_url(self.slug)
if project.has_dash(self.slug):
data['dash_url'] = project.get_dash_url(self.slug)
data['dash_feed_url'] = project.get_dash_feed_url(self.slug)

View File

@ -528,13 +528,14 @@ def build_docs(version_pk, pdf, man, epub, dash, search, localmedia, record, for
else:
dash_results = fake_results
if man:
man_builder = builder_loading.get('sphinx_man')(version)
man_results = man_builder.build()
if man_results[0] == 0:
man_builder.move()
else:
man_results = fake_results
# if man:
# man_builder = builder_loading.get('sphinx_man')(version)
# man_results = man_builder.build()
# if man_results[0] == 0:
# man_builder.move()
# else:
# man_results = fake_results
if epub:
epub_builder = builder_loading.get('sphinx_epub')(version)
epub_results = epub_builder.build()

View File

@ -30,6 +30,7 @@
</li>
{% endif %}
{% comment %}
{% if dict.manpage_url %}
<li class="module-item col-span">
<a class="module-item-title" href="{{ dict.manpage_url }}">
@ -39,6 +40,7 @@
</a>
</li>
{% endif %}
{% endcomment %}
{% if dict.dash_url %}
<li class="module-item col-span">