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.
This commit is contained in:
Jonathan S. Katz
2018-11-04 11:34:41 -05:00
parent 17f9b7f070
commit c95fb76a05
123 changed files with 346 additions and 347 deletions

View File

@ -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)