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
ce21fa1d
Commit
ce21fa1d
authored
Oct 09, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak static files with docs
parent
94401b43
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
13 additions
and
10 deletions
+13
-10
docs/css/bootstrap-responsive.css
+0
-0
docs/css/bootstrap.css
+0
-0
docs/css/default.css
+0
-0
docs/css/prettify.css
+0
-0
docs/img/favicon.ico
+0
-0
docs/img/glyphicons-halflings-white.png
+0
-0
docs/img/glyphicons-halflings.png
+0
-0
docs/img/grid.png
+0
-0
docs/img/quickstart.png
+0
-0
docs/js/bootstrap-2.1.1-min.js
+0
-0
docs/js/jquery-1.8.1-min.js
+0
-0
docs/js/prettify-1.0.js
+0
-0
docs/template.html
+2
-0
docs/tutorial/quickstart.md
+2
-1
mkdocs.py
+9
-9
No files found.
docs/
static/
css/bootstrap-responsive.css
→
docs/css/bootstrap-responsive.css
View file @
ce21fa1d
File moved
docs/
static/
css/bootstrap.css
→
docs/css/bootstrap.css
View file @
ce21fa1d
File moved
docs/
static/
css/default.css
→
docs/css/default.css
View file @
ce21fa1d
File moved
docs/
static/
css/prettify.css
→
docs/css/prettify.css
View file @
ce21fa1d
File moved
docs/
static/
img/favicon.ico
→
docs/img/favicon.ico
View file @
ce21fa1d
File moved
docs/
static/
img/glyphicons-halflings-white.png
→
docs/img/glyphicons-halflings-white.png
View file @
ce21fa1d
File moved
docs/
static/
img/glyphicons-halflings.png
→
docs/img/glyphicons-halflings.png
View file @
ce21fa1d
File moved
docs/
static/
img/grid.png
→
docs/img/grid.png
View file @
ce21fa1d
File moved
docs/im
ages
/quickstart.png
→
docs/im
g
/quickstart.png
View file @
ce21fa1d
File moved
docs/
static/
js/bootstrap-2.1.1-min.js
→
docs/js/bootstrap-2.1.1-min.js
View file @
ce21fa1d
File moved
docs/
static/
js/jquery-1.8.1-min.js
→
docs/js/jquery-1.8.1-min.js
View file @
ce21fa1d
File moved
docs/
static/
js/prettify-1.0.js
→
docs/js/prettify-1.0.js
View file @
ce21fa1d
File moved
docs/template.html
View file @
ce21fa1d
...
...
@@ -84,6 +84,7 @@
</li>
</ul>
<ul
class=
"nav pull-right"
>
<!-- TODO
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Version: 2.0.0 <b class="caret"></b></a>
<ul class="dropdown-menu">
...
...
@@ -91,6 +92,7 @@
<li><a href="#">2.0.0</a></li>
</ul>
</li>
-->
</ul>
</div>
<!--/.nav-collapse -->
</div>
...
...
docs/tutorial/quickstart.md
View file @
ce21fa1d
...
...
@@ -167,6 +167,6 @@ Great, that was easy!
If you want to get a more in depth understanding of how REST framework fits together head on over to
[
the tutorial
][
tutorial
]
, or start browsing the
[
API guide
][
guide
]
.
[
image
]:
../im
ages
/quickstart.png
[
image
]:
../im
g
/quickstart.png
[
tutorial
]:
1-serialization.md
[
guide
]:
../#api-guide
\ No newline at end of file
mkdocs.py
View file @
ce21fa1d
...
...
@@ -29,28 +29,28 @@ code_label = r'<a class="github" href="https://github.com/tomchristie/django-res
page
=
open
(
os
.
path
.
join
(
docs_dir
,
'template.html'
),
'r'
)
.
read
()
# Copy static files
for
static
in
[
'css'
,
'js'
,
'img'
]:
source
=
os
.
path
.
join
(
docs_dir
,
'static'
,
static
)
target
=
os
.
path
.
join
(
html_dir
,
static
)
if
os
.
path
.
exists
(
target
):
shutil
.
rmtree
(
target
)
shutil
.
copytree
(
source
,
target
)
#
for static in ['css', 'js', 'img']:
#
source = os.path.join(docs_dir, 'static', static)
#
target = os.path.join(html_dir, static)
#
if os.path.exists(target):
#
shutil.rmtree(target)
#
shutil.copytree(source, target)
for
(
dirpath
,
dirnames
,
filenames
)
in
os
.
walk
(
docs_dir
):
relative_dir
=
dirpath
.
replace
(
docs_dir
,
''
)
.
lstrip
(
os
.
path
.
sep
)
build_dir
=
os
.
path
.
join
(
html_dir
,
relative_dir
)
if
not
os
.
path
.
exists
(
build_dir
):
os
.
makedirs
(
build_dir
)
for
filename
in
filenames
:
path
=
os
.
path
.
join
(
dirpath
,
filename
)
if
filename
.
endswith
(
'.png'
):
if
not
filename
.
endswith
(
'.md'
):
if
relative_dir
:
output_path
=
os
.
path
.
join
(
build_dir
,
filename
)
shutil
.
copy
(
path
,
output_path
)
continue
elif
not
filename
.
endswith
(
'.md'
):
continue
output_path
=
os
.
path
.
join
(
build_dir
,
filename
[:
-
3
]
+
'.html'
)
...
...
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