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
d4f8b4cf
Commit
d4f8b4cf
authored
Sep 09, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collapsing menu, travis and github badges, horizontal scrolling code on overflow
parent
baa6e2c1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
2 deletions
+38
-2
README.md
+3
-1
docs/index.md
+4
-0
docs/static/css/drf-styles.css
+29
-0
docs/template.html
+1
-1
mkdocs.py
+1
-0
No files found.
README.md
View file @
d4f8b4cf
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
**Author:**
Tom Christie.
[
Follow me on Twitter
][
twitter
]
**Author:**
Tom Christie.
[
Follow me on Twitter
][
twitter
]
[

]
[
travis
]
# Overview
# Overview
This branch is the redesign of Django REST framework. It is a work in progress.
This branch is the redesign of Django REST framework. It is a work in progress.
...
@@ -79,7 +81,7 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
...
@@ -79,7 +81,7 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
[
travis
]:
http://travis-ci.org/tomchristie/django-rest-framework?branch=restframework2
[
twitter
]:
https://twitter.com/_tomchristie
[
twitter
]:
https://twitter.com/_tomchristie
[
docs
]:
http://tomchristie.github.com/django-rest-framework/
[
docs
]:
http://tomchristie.github.com/django-rest-framework/
[
urlobject
]:
https://github.com/zacharyvoase/urlobject
[
urlobject
]:
https://github.com/zacharyvoase/urlobject
...
...
docs/index.md
View file @
d4f8b4cf
<iframe
src=
"http://ghbtns.com/github-btn.html?user=tomchristie&repo=django-rest-framework&type=watch&count=true"
allowtransparency=
"true"
frameborder=
"0"
scrolling=
"0"
width=
"110px"
height=
"20px"
></iframe>
[

]
[
travis
]
# Django REST framework
# Django REST framework
**A toolkit for building well-connected, self-describing Web APIs.**
**A toolkit for building well-connected, self-describing Web APIs.**
...
@@ -131,6 +134,7 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
...
@@ -131,6 +134,7 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
[
travis
]:
http://travis-ci.org/tomchristie/django-rest-framework?branch=restframework2
[
urlobject
]:
https://github.com/zacharyvoase/urlobject
[
urlobject
]:
https://github.com/zacharyvoase/urlobject
[
markdown
]:
http://pypi.python.org/pypi/Markdown/
[
markdown
]:
http://pypi.python.org/pypi/Markdown/
[
yaml
]:
http://pypi.python.org/pypi/PyYAML
[
yaml
]:
http://pypi.python.org/pypi/PyYAML
...
...
docs/static/css/drf-styles.css
View file @
d4f8b4cf
...
@@ -23,10 +23,39 @@ a.github:hover {
...
@@ -23,10 +23,39 @@ a.github:hover {
text-decoration
:
none
;
text-decoration
:
none
;
}
}
.dropdown
.dropdown-menu
{
display
:
none
;
}
.dropdown.open
.dropdown-menu
{
display
:
block
;
}
body
.index
#main-content
iframe
{
float
:
right
;
}
body
.index
#main-content
iframe
{
float
:
right
;
margin-right
:
-15px
;
}
body
.index
#main-content
p
:first-of-type
{
float
:
right
;
margin-right
:
8px
;
margin-top
:
-1px
;
}
#table-of-contents
{
#table-of-contents
{
overflow
:
hidden
;
overflow
:
hidden
;
}
}
pre
{
overflow
:
auto
;
word-wrap
:
normal
;
white-space
:
pre
;
}
/* Preserve the spacing of the navbar across different screen sizes. */
/* Preserve the spacing of the navbar across different screen sizes. */
.navbar-inner
{
.navbar-inner
{
padding
:
5px
0
;
padding
:
5px
0
;
...
...
docs/template.html
View file @
d4f8b4cf
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<!--[if lt IE 9]>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<![endif]-->
<body
onload=
"prettyPrint()"
>
<body
onload=
"prettyPrint()"
class=
"{{ page_id }}"
>
<div
class=
"navbar navbar-inverse navbar-fixed-top"
>
<div
class=
"navbar navbar-inverse navbar-fixed-top"
>
<div
class=
"navbar-inner"
>
<div
class=
"navbar-inner"
>
...
...
mkdocs.py
View file @
d4f8b4cf
...
@@ -66,6 +66,7 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir):
...
@@ -66,6 +66,7 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir):
if
not
os
.
path
.
exists
(
build_dir
):
if
not
os
.
path
.
exists
(
build_dir
):
os
.
makedirs
(
build_dir
)
os
.
makedirs
(
build_dir
)
output
=
page
.
replace
(
'{{ content }}'
,
content
)
.
replace
(
'{{ toc }}'
,
toc
)
.
replace
(
'{{ base_url }}'
,
base_url
)
.
replace
(
'{{ suffix }}'
,
suffix
)
.
replace
(
'{{ index }}'
,
index
)
output
=
page
.
replace
(
'{{ content }}'
,
content
)
.
replace
(
'{{ toc }}'
,
toc
)
.
replace
(
'{{ base_url }}'
,
base_url
)
.
replace
(
'{{ suffix }}'
,
suffix
)
.
replace
(
'{{ index }}'
,
index
)
output
=
output
.
replace
(
'{{ page_id }}'
,
filename
[:
-
3
])
output
=
re
.
sub
(
r'a href="([^"]*)\.md"'
,
r'a href="\1
%
s"'
%
suffix
,
output
)
output
=
re
.
sub
(
r'a href="([^"]*)\.md"'
,
r'a href="\1
%
s"'
%
suffix
,
output
)
output
=
re
.
sub
(
r'<pre><code>:::bash'
,
r'<pre class="prettyprint lang-bsh">'
,
output
)
output
=
re
.
sub
(
r'<pre><code>:::bash'
,
r'<pre class="prettyprint lang-bsh">'
,
output
)
output
=
re
.
sub
(
r'<pre>'
,
r'<pre class="prettyprint lang-py">'
,
output
)
output
=
re
.
sub
(
r'<pre>'
,
r'<pre class="prettyprint lang-py">'
,
output
)
...
...
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