diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-28 07:51:48 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-28 07:51:48 -0500 |
commit | 3d5ed2874ed145d3e34200c4f7657e17f4ad888b (patch) | |
tree | a9cfe83f503ece56e4f87b4b050b6f9fcf22ba39 | |
parent | 1b13619737319162578e0723cb2354b0ec4d62c4 (diff) | |
download | python-coveragepy-git-3d5ed2874ed145d3e34200c4f7657e17f4ad888b.tar.gz |
Is this why the beta docs weren't working? omg...
-rw-r--r-- | doc/_ext/px_xlator.py | 4 | ||||
-rw-r--r-- | doc/_templates/px/layout.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/_ext/px_xlator.py b/doc/_ext/px_xlator.py index 6ad1063e..637c284a 100644 --- a/doc/_ext/px_xlator.py +++ b/doc/_ext/px_xlator.py @@ -46,7 +46,7 @@ class PxTranslator(BaseHtmlXlator): self.body.append("<what when='%s'>%s</what>\n" % (when, self.encode(what.strip())))
self.body.append("</history>\n")
- if "beta" in self.builder.config.release:
+ if "b" in self.builder.config.release:
self.body.append("""
<box>
These docs are for a beta release, %s.
@@ -95,7 +95,7 @@ class PxBuilder(StandaloneHTMLBuilder): self.out_suffix = '.px'
self.link_suffix = '.html'
- if "beta" in self.config.release:
+ if "b" in self.config.release:
self.px_uri = "/code/coverage/beta/"
else:
self.px_uri = "/code/coverage/"
diff --git a/doc/_templates/px/layout.html b/doc/_templates/px/layout.html index 02d36136..01f03ee5 100644 --- a/doc/_templates/px/layout.html +++ b/doc/_templates/px/layout.html @@ -2,7 +2,7 @@ <?xml version="1.0" encoding="utf-8" ?> {%- endblock %} -<page title='{{ title|striptags }}' {% if "beta" in release %}index='no'{% endif %}> +<page title='{{ title|striptags }}' {% if "b" in release %}index='no'{% endif %}> {% block document -%} {%- block body %} {% endblock -%} {%- endblock %} |