1
from django.contrib.sitemaps import Sitemap
2
from sphinxdoc.models import App
7
app = App.objects.get(slug='wl')
12
class DocumentationSitemap(Sitemap):
13
"""This is just a dummy class to return the link to docs/wl/genindex."""
21
def location(self, item):
22
return '/docs/wl/genindex/'
24
def lastmod(self, item):
25
return datetime.datetime.fromtimestamp(
26
os.path.getmtime(os.path.join(app.path, 'last_build')))