aboutsummaryrefslogtreecommitdiffstats
path: root/mkdocs.py
diff options
context:
space:
mode:
authorbennbollay2013-12-22 16:53:52 -0800
committerbennbollay2013-12-22 16:53:52 -0800
commite5caf48a12e777df3e5801fa19d98f59b6453aa2 (patch)
tree408f062c26b0879bc05542ba2d86da6072fbf578 /mkdocs.py
parent9b7341e4840635d9c3bd419678164cdc3cbb7d20 (diff)
downloaddjango-rest-framework-e5caf48a12e777df3e5801fa19d98f59b6453aa2.tar.bz2
Change the page title to prioritize page content
When many tab's are open (which is necessary for DRF's documentation), it becomes impossible to determine which tab contains which pieces of documentation. That they are all related is obvious by the use of a common icon, just not the specific page each tab is loaded to. This change inverts the order of the title to maintain as much useful context as possible on the tabbar.
Diffstat (limited to 'mkdocs.py')
-rwxr-xr-xmkdocs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkdocs.py b/mkdocs.py
index d1790168..09c9dcc6 100755
--- a/mkdocs.py
+++ b/mkdocs.py
@@ -144,7 +144,7 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir):
if filename == 'index.md':
main_title = 'Django REST framework - APIs made easy'
else:
- main_title = 'Django REST framework - ' + main_title
+ main_title = main_title + ' - Django REST framework'
if relative_path == 'index.md':
canonical_url = base_url