Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
57f45efb
Unverified
Commit
57f45efb
authored
Aug 29, 2018
by
Thom Wiggers
📐
Browse files
Fix doctest
parent
088842cd
Changes
1
Show whitespace changes
Inline
Side-by-side
website/thaliawebsite/sitemaps.py
View file @
57f45efb
...
...
@@ -10,6 +10,10 @@ class StaticViewSitemap(sitemaps.Sitemap):
"""
The items of the site map.
>>> sitemap = StaticViewSitemap()
>>> sitemap.items()[0]
'index'
:return: the items in the site map
:rtype: [str]
"""
...
...
@@ -28,7 +32,8 @@ class StaticViewSitemap(sitemaps.Sitemap):
Example::
>>> sitemap = StaticViewSitemap()
>>> sitemap.location(sitemap.items()[0])
>>> sitemap.location('index')
'/'
:param obj: the item to reverse.
:type obj: str
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment