Assign better priorities to docs pages for searching, and include older docs
authorMagnus Hagander <magnus@hagander.net>
Tue, 7 Feb 2012 11:12:05 +0000 (12:12 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 7 Feb 2012 11:12:05 +0000 (12:12 +0100)
commit17ffc371b9213ad51f8b0a3df40e33551bcb7af5
treef3f5da3a3d4dc67cbb5e9687cad4da874ace87ce
parent1cf436ac4f35843a68e2730fa4eee6c23b8a0e76
Assign better priorities to docs pages for searching, and include older docs

Instead of just including supported versions, include older versions of
the docs as well, and properly assign priorities by:

* For current docs, always assign priority 1.0
* For any other docs, start at 0.8 for the latest and decrease priority
  by 0.1 for each version, until we reach 0.1.

This should restore the ability to search for old versions of the
documentation (they still get proper priorities when searching for
suburls, which currently returns no hits at all) while maintaining
a strong priority for the newer versions.
pgweb/docs/struct.py