Commit Graph

18 Commits

Author SHA1 Message Date
721744087f Exclude beta version docs from sitemap.xml
Currently showed up as the highest priority - oops....

Spotted by Stefan
2012-05-16 13:35:35 -04:00
17ffc371b9 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.
2012-02-07 12:12:05 +01:00
78ab264578 Include last modified date in sitemap 2012-01-14 16:55:53 +01:00
1ea8ecd12a Include docs load timestamp in developer docs
This makes it possible to figure out when the docs were actually
loaded, since developer docs don't carry a version number. This is
actually going to be the docs *load* timestamp, and not build timestamp,
but they should be close enough together that it shouldn't matter.

Fixes #108
2011-12-04 15:14:54 +01:00
37d7c02ae3 Fix docs index filename for old versions
It hasn't always been called index.html, annoyingly enough...

Fixes #109
2011-12-04 14:23:45 +01:00
9424c84e15 Use Decimal(0) instead of Decimal(0.0) to support older version of Python 2011-11-22 21:33:04 +01:00
7e9742c678 Allow loading and serving of developer docs on the main website 2011-11-22 20:58:29 +01:00
9ffd26ca5d Correcly handle old versions of the docs, where the file extension is .htm 2011-07-12 14:16:46 +01:00
f136a665fe Add concept of supported versions
Also, only index docs for supported versions...
2011-07-12 14:15:20 +01:00
121b336792 Remove print statement that cannot be used when running under a server 2011-06-14 19:51:00 +02:00
f92709d2a6 Implement basic varnish purging
This allows all models inherited from PgModel to specify which
URLs to purge by either setting a field or defining a function
called purge_urls, at which point they will be purged whenever
the save signal is fired.

Also implements a form under /admin/purge/ that allows for manual
purging. This should probably be extended in the future to show
the status of the pgq slaves, but that will come later.

Includes a SQL function that posts the expires to a pgq queue. For
a local deployment, this can be replaced with a simple void function
to turn off varnish purging.
2011-06-14 19:48:48 +02:00
22f5578c29 Add support for generating sitemap.
Each module now contains a struct.py file that will return all
the URLs that it can generate (yes, this is a small break of the
abstraction of url.py, but we've broken that elsewhere as well),
and also which search-engine-weight (0.1-1.0) that this URL should
be given.
2010-09-28 16:12:13 +02:00
34023288b8 Add redirects as required to deal with legacy urls, for all the stuff
that was in .htaccess files on the old site.
2010-06-22 11:17:49 +02:00
c80daa4b4e Add string output for doc comment 2010-03-21 18:24:12 +01:00
e3d8eae0ce Add the concept of a "current version", and use this when determining
which version to map /current/ to in the docs section.
2010-02-26 13:14:03 +01:00
e82022eb1d Add support for docs comments 2010-01-16 20:02:07 +01:00
4e9c4ef7fc Properly render docs pages with missing index.html in the path. 2010-01-11 17:25:47 +01:00
90b758c247 A first very basic import.
Contains basic functionality, and an import of most of the static content
from the old site.

There is still plenty more to do...
2009-09-14 14:39:25 +02:00