From c95fb76a05d87ca4ffccbce21e4399ab5472ce95 Mon Sep 17 00:00:00 2001 From: Jonathan S. Katz Date: Sun, 4 Nov 2018 11:34:41 -0500 Subject: Remove references to the (static|interactive) path to documentation. While the permanent redirect will fix this over the course of time, it is still better that we do not reference the old path from pgweb. --- pgweb/docs/struct.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pgweb/docs/struct.py') diff --git a/pgweb/docs/struct.py b/pgweb/docs/struct.py index 9848812d..87e5635e 100644 --- a/pgweb/docs/struct.py +++ b/pgweb/docs/struct.py @@ -30,14 +30,14 @@ def get_struct(): if version >= 10: version = int(version) - yield ('docs/%s/static/%s' % (version, filename), + yield ('docs/%s/%s' % (version, filename), testing and 0.1 or docprio, # beta/rc versions always get 0.1 in prio loaded) # Also yield the current version urls, with the highest # possible priority if version == currentversion.tree: - yield ('docs/current/static/%s' % filename, + yield ('docs/current/%s' % filename, 1.0, loaded) # For our internal sitemap (used only by our own search engine), @@ -48,6 +48,6 @@ def get_internal_struct(): curs.execute("SELECT d.file, v.docsloaded FROM docs d INNER JOIN core_version v ON v.tree=d.version WHERE version = 0") for filename, loaded in curs.fetchall(): - yield ('docs/devel/static/%s' % (filename, ), + yield ('docs/devel/%s' % (filename, ), 0.1, loaded) -- cgit v1.2.3