Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
4e5b59cc
Commit
4e5b59cc
authored
Mar 27, 2017
by
Tom Christie
Committed by
GitHub
Mar 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5008 from akhilputhiry/4758
Fix docs 404 pages with nested paths.
parents
0fdaf4f4
2f6773e9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
docs_theme/404.html
+1
-1
docs_theme/main.html
+10
-10
docs_theme/nav.html
+3
-3
requirements/requirements-documentation.txt
+1
-1
No files found.
docs_theme/404.html
View file @
4e5b59cc
{% extends "
base
.html" %}
{% extends "
main
.html" %}
{% block content %}
{% block content %}
...
...
docs_theme/
base
.html
→
docs_theme/
main
.html
View file @
4e5b59cc
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
<head>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<title>
{% if page
_title %}{{ page_title }} - {% endif %}{{
site_name }}
</title>
<title>
{% if page
.title %}{{ page.title }} - {% endif %}{{ config.
site_name }}
</title>
<link
href=
"{{ base_url }}/img/favicon.ico"
rel=
"icon"
type=
"image/x-icon"
>
<link
href=
"{{ base_url }}/img/favicon.ico"
rel=
"icon"
type=
"image/x-icon"
>
<link
rel=
"canonical"
href=
"{{ canonical_url }}"
/>
<link
rel=
"canonical"
href=
"{{
page.
canonical_url }}"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"description"
content=
"Django, API, REST{% if
current_page %}, {{ current_
page.title }}{% endif %}"
>
<meta
name=
"description"
content=
"Django, API, REST{% if
page %}, {{
page.title }}{% endif %}"
>
<meta
name=
"author"
content=
"Tom Christie"
>
<meta
name=
"author"
content=
"Tom Christie"
>
<!-- Le styles -->
<!-- Le styles -->
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
}
}
</style>
</style>
</head>
</head>
<body
onload=
"prettyPrint()"
class=
"{% if
current_page and current_
page.is_homepage %}index{% endif %}-page"
>
<body
onload=
"prettyPrint()"
class=
"{% if
page and
page.is_homepage %}index{% endif %}-page"
>
<div
class=
"wrapper"
>
<div
class=
"wrapper"
>
{% include "nav.html" %}
{% include "nav.html" %}
...
@@ -83,14 +83,14 @@
...
@@ -83,14 +83,14 @@
<div
class=
"span3"
>
<div
class=
"span3"
>
<div
id=
"table-of-contents"
>
<div
id=
"table-of-contents"
>
<ul
class=
"nav nav-list side-nav well sidebar-nav-fixed"
>
<ul
class=
"nav nav-list side-nav well sidebar-nav-fixed"
>
{% if
current_page and current_
page.is_homepage %}
{% if
page and
page.is_homepage %}
<li
class=
"main"
>
<li
class=
"main"
>
<a
href=
"#"
>
Django REST framework
</a>
<a
href=
"#"
>
Django REST framework
</a>
</li>
</li>
{% endif %}
{% endif %}
{% for toc_item in toc %}
{% for toc_item in
page.
toc %}
<li
class=
"{% if
current_page and not current_
page.is_homepage %}main{% endif %}"
>
<li
class=
"{% if
page and not
page.is_homepage %}main{% endif %}"
>
<a
href=
"{{ toc_item.url }}"
>
{{ toc_item.title }}
</a>
<a
href=
"{{ toc_item.url }}"
>
{{ toc_item.title }}
</a>
</li>
</li>
...
@@ -112,15 +112,15 @@
...
@@ -112,15 +112,15 @@
<div
id=
"main-content"
class=
"span9"
>
<div
id=
"main-content"
class=
"span9"
>
{% block content %}
{% block content %}
{% if meta.source %}
{% if
page.
meta.source %}
{% for filename in meta.source %}
{% for filename in
page.
meta.source %}
<a
class=
"github"
href=
"https://github.com/tomchristie/django-rest-framework/tree/master/rest_framework/{{ filename }}"
>
<a
class=
"github"
href=
"https://github.com/tomchristie/django-rest-framework/tree/master/rest_framework/{{ filename }}"
>
<span
class=
"label label-info"
>
{{ filename }}
</span>
<span
class=
"label label-info"
>
{{ filename }}
</span>
</a>
</a>
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{{ content }}
{{
page.
content }}
{% endblock %}
{% endblock %}
</div>
<!--/span-->
</div>
<!--/span-->
...
...
docs_theme/nav.html
View file @
4e5b59cc
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
<div
class=
"navbar-inner"
>
<div
class=
"navbar-inner"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<a
class=
"repo-link btn btn-primary btn-small"
href=
"https://github.com/tomchristie/django-rest-framework/tree/master"
>
GitHub
</a>
<a
class=
"repo-link btn btn-primary btn-small"
href=
"https://github.com/tomchristie/django-rest-framework/tree/master"
>
GitHub
</a>
<a
class=
"repo-link btn btn-inverse btn-small {% if not
next_page %}disabled{% endif %}"
rel=
"prev"
{%
if
next_page
%}
href=
"{{
next_page.url }}"
{%
endif
%}
>
<a
class=
"repo-link btn btn-inverse btn-small {% if not
page.next_page %}disabled{% endif %}"
rel=
"prev"
{%
if
page
.
next_page
%}
href=
"{{ page.
next_page.url }}"
{%
endif
%}
>
Next
<i
class=
"icon-arrow-right icon-white"
></i>
Next
<i
class=
"icon-arrow-right icon-white"
></i>
</a>
</a>
<a
class=
"repo-link btn btn-inverse btn-small {% if not p
revious_page %}disabled{% endif %}"
rel=
"next"
{%
if
previous_page
%}
href=
"{{
previous_page.url }}"
{%
endif
%}
>
<a
class=
"repo-link btn btn-inverse btn-small {% if not p
age.previous_page %}disabled{% endif %}"
rel=
"next"
{%
if
page
.
previous_page
%}
href=
"{{ page.
previous_page.url }}"
{%
endif
%}
>
<i
class=
"icon-arrow-left icon-white"
></i>
Previous
<i
class=
"icon-arrow-left icon-white"
></i>
Previous
</a>
</a>
<a
id=
"search_modal_show"
class=
"repo-link btn btn-inverse btn-small"
href=
"#mkdocs_search_modal"
data-toggle=
"modal"
data-target=
"#mkdocs_search_modal"
><i
class=
"icon-search icon-white"
></i>
Search
</a>
<a
id=
"search_modal_show"
class=
"repo-link btn btn-inverse btn-small"
href=
"#mkdocs_search_modal"
data-toggle=
"modal"
data-target=
"#mkdocs_search_modal"
><i
class=
"icon-search icon-white"
></i>
Search
</a>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</a>
</a>
<a
class=
"brand"
href=
"http://www.django-rest-framework.org"
>
Django REST framework
</a>
<a
class=
"brand"
href=
"http://www.django-rest-framework.org"
>
Django REST framework
</a>
<div
class=
"nav-collapse collapse"
>
<div
class=
"nav-collapse collapse"
>
{% if
include_nav
%}
{% if
nav|length>1
%}
<!-- Main navigation -->
<!-- Main navigation -->
<ul
class=
"nav navbar-nav"
>
<ul
class=
"nav navbar-nav"
>
{% for nav_item in nav %} {% if nav_item.children %}
{% for nav_item in nav %} {% if nav_item.children %}
...
...
requirements/requirements-documentation.txt
View file @
4e5b59cc
# MkDocs to build our documentation.
# MkDocs to build our documentation.
mkdocs==0.1
5.3
mkdocs==0.1
6.2
Write
Preview
Markdown
is supported
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