-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path3.0.patch
29 lines (29 loc) · 1.4 KB
/
3.0.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/docs_theme/nav.html b/docs_theme/nav.html
index ca1afc0..5c94fd2 100644
--- a/docs_theme/nav.html
+++ b/docs_theme/nav.html
@@ -14,12 +14,12 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
- <a class="brand" href="http://www.django-rest-framework.org">Django REST framework</a>
+ <a class="brand" href="{{ homepage_url }}">Django REST framework</a>
<div class="nav-collapse collapse">
{% if include_nav %}
<!-- Main navigation -->
<ul class="nav navbar-nav">
- <li {% if current_page.is_homepage %}class="active"{% endif %}><a href="/">Home</a></li>
+ <li {% if current_page.is_homepage %}class="active"{% endif %}><a href="{{ homepage_url }}">Home</a></li>
{% for nav_item in nav %} {% if nav_item.children %}
<li class="dropdown{% if nav_item.active %} active{% endif %}">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ nav_item.title }} <b class="caret"></b></a>
diff --git a/mkdocs.yml b/mkdocs.yml
index 9513f04..8b06681 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -54,3 +54,5 @@ pages:
- ['topics/kickstarter-announcement.md', 'Topics', 'Kickstarter Announcement']
- ['topics/release-notes.md', 'Topics', 'Release Notes']
- ['topics/credits.md', 'Topics', 'Credits']
+
+use_directory_urls: false