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
dd2e950c
Commit
dd2e950c
authored
Jul 15, 2014
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fusion ads
parent
b5190181
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
docs/template.html
+19
-5
mkdocs.py
+2
-2
No files found.
docs/template.html
View file @
dd2e950c
...
...
@@ -33,6 +33,21 @@
})();
</script>
<style>
span
.fusion-wrap
a
{
display
:
block
;
margin-top
:
10px
;
color
:
black
;
}
a
.fusion-poweredby
{
display
:
block
;
margin-top
:
10px
;
}
@media
(
max-width
:
767px
)
{
div
.promo
{
display
:
none
;}
}
</style>
</head>
<body
onload=
"prettyPrint()"
class=
"{{ page_id }}-page"
>
...
...
@@ -169,11 +184,9 @@
<div
id=
"table-of-contents"
>
<ul
class=
"nav nav-list side-nav well sidebar-nav-fixed"
>
{{ toc }}
<div>
{{ ad_block }}
</div>
<div
class=
"promo"
>
{{ ad_block }}
</div>
</ul>
</div>
...
...
@@ -199,6 +212,7 @@
<script
src=
"{{ base_url }}/js/jquery-1.8.1-min.js"
></script>
<script
src=
"{{ base_url }}/js/prettify-1.0.js"
></script>
<script
src=
"{{ base_url }}/js/bootstrap-2.1.1-min.js"
></script>
<script>
//$('.side-nav').scrollspy()
var
shiftWindow
=
function
()
{
scrollBy
(
0
,
-
50
)
};
...
...
mkdocs.py
View file @
dd2e950c
...
...
@@ -162,8 +162,8 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir):
output
=
output
.
replace
(
'{{ canonical_url }}'
,
canonical_url
)
if
filename
==
'index.md'
:
output
=
output
.
replace
(
'{{ ad_block }}'
,
"""<hr
><p><strong>The team behind REST framework is launching a new API service.</strong></p
>
<p>If you want to be first in line when we start issuing invitations, please <a href="http://brightapi.com">sign up here</a>.</p
>"""
)
output
=
output
.
replace
(
'{{ ad_block }}'
,
"""<hr
/
>
<script type="text/javascript" src="//cdn.fusionads.net/fusion.js?zoneid=1332&serve=C6SDP2Y&placement=djangorestframework" id="_fusionads_js"></script
>"""
)
else
:
output
=
output
.
replace
(
'{{ ad_block }}'
,
''
)
...
...
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