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
442916b9
Commit
442916b9
authored
Jan 03, 2014
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link to BrightAPI, and remove ad except from frontpage
parent
c3f8c8ff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
23 deletions
+10
-23
docs/template.html
+4
-23
mkdocs.py
+6
-0
No files found.
docs/template.html
View file @
442916b9
...
@@ -170,31 +170,12 @@
...
@@ -170,31 +170,12 @@
<ul
class=
"nav nav-list side-nav well sidebar-nav-fixed"
>
<ul
class=
"nav nav-list side-nav well sidebar-nav-fixed"
>
{{ toc }}
{{ toc }}
<div>
<div>
<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 sign up here:
</p>
<!-- Begin MailChimp Signup Form -->
<link
href=
"//cdn-images.mailchimp.com/embedcode/slim-081711.css"
rel=
"stylesheet"
type=
"text/css"
>
<style
type=
"text/css"
>
#mc_embed_signup
{
background
:
#fff
;
clear
:
left
;
font
:
14px
Helvetica
,
Arial
,
sans-serif
;
}
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div
id=
"mc_embed_signup"
style=
"background: rgb(245, 245, 245)"
>
<form
action=
"http://dabapps.us1.list-manage1.com/subscribe/post?u=cf73a9994eb5b8d8d461b5dfb&id=cb6af8e8bd"
method=
"post"
id=
"mc-embedded-subscribe-form"
name=
"mc-embedded-subscribe-form"
class=
"validate"
target=
"_blank"
novalidate
>
<!-- <label for="mce-EMAIL">Keep me posted!</label>
-->
<input
style=
"width: 90%"
type=
"email"
value=
""
name=
"EMAIL"
class=
"email"
id=
"mce-EMAIL"
placeholder=
"email address"
required
>
<div
class=
"clear"
><input
class=
"btn btn-success"
type=
"submit"
value=
"Yes, keep me posted!"
name=
"subscribe"
id=
"mc-embedded-subscribe"
class=
"button"
></div>
</form>
</div>
</style></div>
</ul>
{{ ad_block }}
</div>
</ul>
<!--End mc_embed_signup-->
</div>
</div>
</div>
</div>
...
...
mkdocs.py
View file @
442916b9
...
@@ -161,6 +161,12 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir):
...
@@ -161,6 +161,12 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir):
output
=
output
.
replace
(
'{{ page_id }}'
,
filename
[:
-
3
])
output
=
output
.
replace
(
'{{ page_id }}'
,
filename
[:
-
3
])
output
=
output
.
replace
(
'{{ canonical_url }}'
,
canonical_url
)
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>"""
)
else
:
output
=
output
.
replace
(
'{{ ad_block }}'
,
''
)
if
prev_url
:
if
prev_url
:
output
=
output
.
replace
(
'{{ prev_url }}'
,
prev_url
)
output
=
output
.
replace
(
'{{ prev_url }}'
,
prev_url
)
output
=
output
.
replace
(
'{{ prev_url_disabled }}'
,
''
)
output
=
output
.
replace
(
'{{ prev_url_disabled }}'
,
''
)
...
...
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