From e5caf48a12e777df3e5801fa19d98f59b6453aa2 Mon Sep 17 00:00:00 2001 From: bennbollay Date: Sun, 22 Dec 2013 16:53:52 -0800 Subject: [PATCH] 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. --- mkdocs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs.py b/mkdocs.py index d1790168a..09c9dcc67 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