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
0fdaf4f4
Commit
0fdaf4f4
authored
Mar 22, 2017
by
Tom Christie
Committed by
GitHub
Mar 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5001 from jpadilla/docs-cleanup
JavaScript cleanup in API Docs.
parents
ac1d2304
9e18d005
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
46 deletions
+4
-46
rest_framework/static/rest_framework/docs/js/api.js
+0
-0
rest_framework/static/rest_framework/docs/js/base.js
+0
-42
rest_framework/templates/rest_framework/docs/sidebar.html
+4
-4
No files found.
rest_framework/static/rest_framework/docs/js/api.js
View file @
0fdaf4f4
This diff is collapsed.
Click to expand it.
rest_framework/static/rest_framework/docs/js/base.js
deleted
100644 → 0
View file @
ac1d2304
function
getSearchTerm
()
{
var
sPageURL
=
window
.
location
.
search
.
substring
(
1
);
var
sURLVariables
=
sPageURL
.
split
(
'&'
);
for
(
var
i
=
0
;
i
<
sURLVariables
.
length
;
i
++
)
{
var
sParameterName
=
sURLVariables
[
i
].
split
(
'='
);
if
(
sParameterName
[
0
]
==
'q'
)
{
return
sParameterName
[
1
];
}
}
}
$
(
document
).
ready
(
function
()
{
var
search_term
=
getSearchTerm
(),
$search_modal
=
$
(
'#mkdocs_search_modal'
);
if
(
search_term
){
$search_modal
.
modal
();
}
// make sure search input gets autofocus everytime modal opens.
$search_modal
.
on
(
'shown.bs.modal'
,
function
()
{
$search_modal
.
find
(
'#mkdocs-search-query'
).
focus
();
});
// Highlight.js
hljs
.
initHighlightingOnLoad
();
$
(
'table'
).
addClass
(
'table table-striped table-hover'
);
});
$
(
'body'
).
scrollspy
({
target
:
'.bs-sidebar'
,
});
/* Prevent disabled links from causing a page reload */
$
(
"li.disabled a"
).
click
(
function
()
{
event
.
preventDefault
();
});
rest_framework/templates/rest_framework/docs/sidebar.html
View file @
0fdaf4f4
...
@@ -22,10 +22,10 @@
...
@@ -22,10 +22,10 @@
<a><i
class=
"fa fa-user fa-lg"
></i>
Authentication
</a>
<span
id=
"selected-authentication"
>
{% if user.is_authenticated %}session{% else %}none{% endif %}
</span>
<a><i
class=
"fa fa-user fa-lg"
></i>
Authentication
</a>
<span
id=
"selected-authentication"
>
{% if user.is_authenticated %}session{% else %}none{% endif %}
</span>
</li>
</li>
<ul
class=
"sub-menu collapse out"
id=
"auth-control"
>
<ul
class=
"sub-menu collapse out"
id=
"auth-control"
>
<li
data-auth=
"none"
{%
if
not
user
.
is_authenticated
%}
class=
"active"
{%
endif
%}
><a
href=
"#"
data-language=
"none
"
>
none
</a></li>
<li
{%
if
not
user
.
is_authenticated
%}
class=
"active"
{%
endif
%}
><a
data-auth=
"none"
href=
"#
"
>
none
</a></li>
<li
data-auth=
"token"
data-toggle=
"modal"
data-target=
"#auth_token_modal"
><a
href=
"#"
>
token
</a></li>
<li
><a
data-auth=
"token"
data-toggle=
"modal"
data-target=
"#auth_token_modal"
href=
"#"
>
token
</a></li>
<li
data-auth=
"basic"
data-toggle=
"modal"
data-target=
"#auth_basic_modal"
><a
href=
"#"
>
basic
</a></li>
<li
><a
data-auth=
"basic"
data-toggle=
"modal"
data-target=
"#auth_basic_modal"
href=
"#"
>
basic
</a></li>
<li
data-auth=
"session"
data-toggle=
"modal"
data-target=
"#auth_session_modal"
{%
if
user
.
is_authenticated
%}
class=
"active"
{%
endif
%}
><a
href=
"#"
>
session
</a></li>
<li
{%
if
user
.
is_authenticated
%}
class=
"active"
{%
endif
%}
><a
data-auth=
"session"
data-toggle=
"modal"
data-target=
"#auth_session_modal"
href=
"#"
>
session
</a></li>
</ul>
</ul>
<li
data-toggle=
"collapse"
data-target=
"#language-control"
class=
"collapsed"
>
<li
data-toggle=
"collapse"
data-target=
"#language-control"
class=
"collapsed"
>
...
...
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