mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 13:00:12 +03:00
Merge branch 'docs' of github.com:tomchristie/django-rest-framework into docs
This commit is contained in:
commit
9cb3c8ec35
|
@ -799,7 +799,7 @@ class DocumentationRenderer(BaseRenderer):
|
||||||
format = 'html'
|
format = 'html'
|
||||||
charset = 'utf-8'
|
charset = 'utf-8'
|
||||||
template = 'rest_framework/docs/index.html'
|
template = 'rest_framework/docs/index.html'
|
||||||
code_style = 'default'
|
code_style = 'emacs'
|
||||||
|
|
||||||
def get_context(self, data):
|
def get_context(self, data):
|
||||||
from pygments.formatters import HtmlFormatter
|
from pygments.formatters import HtmlFormatter
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
const coreapi = window.coreapi
|
const coreapi = window.coreapi
|
||||||
const codec = new coreapi.codecs.CoreJSONCodec()
|
const codec = new coreapi.codecs.CoreJSONCodec()
|
||||||
const schema = {{ schema }}
|
const schema = '{"_type": "document"}' {{ schema }}
|
||||||
const doc = codec.decode(schema, {preloaded: true})
|
const doc = codec.decode(schema, {preloaded: true})
|
||||||
const client = new coreapi.Client()
|
const client = new coreapi.Client()
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ def do_code(parser,token):
|
||||||
|
|
||||||
|
|
||||||
class CodeNode(template.Node):
|
class CodeNode(template.Node):
|
||||||
style = 'default'
|
style = 'emacs'
|
||||||
|
|
||||||
def __init__(self, lang, code):
|
def __init__(self, lang, code):
|
||||||
self.lang = lang
|
self.lang = lang
|
||||||
|
|
Loading…
Reference in New Issue
Block a user