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 | 795e130cbb315cabbb377e1db63b375bb9f6969d (patch) | |
tree | d94fc9988844dbf900c15157acc64e32d1d36afd | |
parent | 428d631ff0dd2be929c5fd210fe536d9c15961d5 (diff) | |
download | python-coveragepy-795e130cbb315cabbb377e1db63b375bb9f6969d.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 6ad1063..637c284 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 02d3613..01f03ee 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 %} |