summaryrefslogtreecommitdiff
path: root/pgweb/docs/struct.py
diff options
context:
space:
mode:
authorMagnus Hagander2013-08-17 14:32:37 +0000
committerMagnus Hagander2013-08-17 14:32:37 +0000
commitbeaa87f16231090d13e8ec4b756e94466c9e76b3 (patch)
tree7de0247349acebfdd1829eac378dba035f0a3009 /pgweb/docs/struct.py
parent6e378231c1c14c0945ed20ed2f7d3bf62c45c62e (diff)
Don't generate broken links to /docs/0.0/ in the sitemap
Generate proper /devel/ URLs, and then exclude them again in robots.txt so we don't include them in google results, but we do include them in our own.
Diffstat (limited to 'pgweb/docs/struct.py')
-rw-r--r--pgweb/docs/struct.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pgweb/docs/struct.py b/pgweb/docs/struct.py
index 60aa8f68..b536ff33 100644
--- a/pgweb/docs/struct.py
+++ b/pgweb/docs/struct.py
@@ -26,7 +26,8 @@ def get_struct():
docprio -= 0.1
lastversion = version
- yield ('docs/%s/static/%s' % (version, filename),
+ yield ('docs/%s/static/%s' % (version==0 and 'devel' or version,
+ filename),
beta and 0.1 or docprio, # beta versions always get 0.1 in prio
loaded)