Merge lp:~widelands-dev/widelands-website/sitemap into lp:widelands-website
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 434 | ||||
Proposed branch: | lp:~widelands-dev/widelands-website/sitemap | ||||
Merge into: | lp:widelands-website | ||||
Diff against target: |
502 lines (+168/-188) 17 files modified
news/sitemap.py (+7/-4) pybb/sitemap.py (+13/-0) settings.py (+1/-0) sitemap_urls.py (+29/-0) sphinxdoc/sitemap.py (+23/-0) sphinxdoc/templates/sphinxdoc/app_list.html (+0/-14) sphinxdoc/templates/sphinxdoc/documentation.html (+0/-65) sphinxdoc/templates/sphinxdoc/genindex.html (+0/-38) sphinxdoc/templates/sphinxdoc/modindex.html (+0/-13) sphinxdoc/templates/sphinxdoc/search_form.html (+0/-12) sphinxdoc/urls.py (+16/-37) sphinxdoc/views.py (+1/-2) static_sitemap.py (+13/-0) templates/sphinxdoc/documentation.html (+1/-1) urls.py (+5/-2) wiki/sitemap.py (+13/-0) wlhelp/sitemap.py (+46/-0) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands-website/sitemap | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Approve | ||
kaputtnik (community) | Needs Resubmitting | ||
Review via email: mp+310261@code.launchpad.net |
Description of the change
Adding a sitemap.xml containing links to:
- Wiki (each article)
- News (news of last2 years)
- Forums (only links to section of forum, e.g. /forum/forum/3/)
- Mainpage
- Changelog
- Encyclopedia (Tribes, Buildings, Workers, Wares)
- Developer documentation (a link to the index)
I decided that each app has his own sitemap.py file containing what links get into sitemap.xml for this app. Added a new file sitemap_urls.py included from urls.py which gathers all sitemap files and serves the sitemap.xml.
Changes to sphinxdoc:
- Removed unused templates
- Updated urls.py to fit with future django versions (other urls.py files had this update already)
Changes to settings:
Same as in anti_spam_4, removed static string 'widelands' to make working with branches easier.
---------
There is a management command 'ping_google' available (works only if the site is registered on google webmaster tools), which could be used in a cron job to inform google of changes in sitemap.xml. I am not sure how often this should be called. See also: https:/
I have failed with the last merge conflict, causing the missing entry 'django. contrib. sitemaps' in installed apps :-S. But this is fixed now.