mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Generate sitemap with 10 instead of 10.0 for docs search
This commit is contained in:
@ -27,6 +27,9 @@ def get_struct():
|
|||||||
docprio -= 0.1
|
docprio -= 0.1
|
||||||
lastversion = version
|
lastversion = version
|
||||||
|
|
||||||
|
if version >= 10:
|
||||||
|
version = int(version)
|
||||||
|
|
||||||
yield ('docs/%s/static/%s' % (version, filename),
|
yield ('docs/%s/static/%s' % (version, filename),
|
||||||
testing and 0.1 or docprio, # beta/rc versions always get 0.1 in prio
|
testing and 0.1 or docprio, # beta/rc versions always get 0.1 in prio
|
||||||
loaded)
|
loaded)
|
||||||
|
Reference in New Issue
Block a user