diff options
| author | Tom Christie | 2013-11-19 10:27:04 +0000 | 
|---|---|---|
| committer | Tom Christie | 2013-11-19 10:27:04 +0000 | 
| commit | 6330212453bcddab9ecc8dcf0c368c3e8af8876d (patch) | |
| tree | 3510c0da9cd516e98e1cdda172cf6fa5db047aa8 | |
| parent | bc69a6d983072ecbcf0c7a79b0b954f0c92892a4 (diff) | |
| download | django-rest-framework-6330212453bcddab9ecc8dcf0c368c3e8af8876d.tar.bz2 | |
Canonical page for index should be '/', not '/index'
| -rwxr-xr-x | mkdocs.py | 5 | 
1 files changed, 4 insertions, 1 deletions
| @@ -146,7 +146,10 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir):          else:              main_title = 'Django REST framework - ' + main_title -        canonical_url = base_url + '/' + relative_path[:-3] + suffix +        if relative_path == 'index.md': +            canonical_url = base_url +        else: +            canonical_url = base_url + '/' + relative_path[:-3] + suffix          prev_url = prev_url_map.get(relative_path)          next_url = next_url_map.get(relative_path) | 
