mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 08:14:16 +03:00
Make docs ready to push to django-rest-framework.org
This commit is contained in:
parent
a13aaea78d
commit
4e7805cb24
|
@ -40,7 +40,7 @@
|
||||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||||
<div class="navbar-inner">
|
<div class="navbar-inner">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a class="repo-link btn btn-primary btn-small" href="https://github.com/tomchristie/django-rest-framework/tree/restframework2">GitHub</a>
|
<a class="repo-link btn btn-primary btn-small" href="https://github.com/tomchristie/django-rest-framework/tree/master">GitHub</a>
|
||||||
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
|
|
|
@ -17,14 +17,14 @@ if local:
|
||||||
suffix = '.html'
|
suffix = '.html'
|
||||||
index = 'index.html'
|
index = 'index.html'
|
||||||
else:
|
else:
|
||||||
base_url = 'http://tomchristie.github.com/django-rest-framework'
|
base_url = 'http://django-rest-framework.org'
|
||||||
suffix = ''
|
suffix = ''
|
||||||
index = ''
|
index = ''
|
||||||
|
|
||||||
|
|
||||||
main_header = '<li class="main"><a href="#{{ anchor }}">{{ title }}</a></li>'
|
main_header = '<li class="main"><a href="#{{ anchor }}">{{ title }}</a></li>'
|
||||||
sub_header = '<li><a href="#{{ anchor }}">{{ title }}</a></li>'
|
sub_header = '<li><a href="#{{ anchor }}">{{ title }}</a></li>'
|
||||||
code_label = r'<a class="github" href="https://github.com/tomchristie/django-rest-framework/blob/restframework2/rest_framework/\1"><span class="label label-info">\1</span></a>'
|
code_label = r'<a class="github" href="https://github.com/tomchristie/django-rest-framework/tree/master/rest_framework/\1"><span class="label label-info">\1</span></a>'
|
||||||
|
|
||||||
page = open(os.path.join(docs_dir, 'template.html'), 'r').read()
|
page = open(os.path.join(docs_dir, 'template.html'), 'r').read()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user