mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Use MkDocs meta.source to render source code links
This commit is contained in:
parent
cbb6799d2d
commit
16d442dda3
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="authentication.py"></a>
|
source: authentication.py
|
||||||
|
|
||||||
# Authentication
|
# Authentication
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="negotiation.py"></a>
|
source: negotiation.py
|
||||||
|
|
||||||
# Content negotiation
|
# Content negotiation
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="exceptions.py"></a>
|
source: exceptions.py
|
||||||
|
|
||||||
# Exceptions
|
# Exceptions
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="fields.py"></a>
|
source: fields.py
|
||||||
|
|
||||||
# Serializer fields
|
# Serializer fields
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="filters.py"></a>
|
source: filters.py
|
||||||
|
|
||||||
# Filtering
|
# Filtering
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="urlpatterns.py"></a>
|
source: urlpatterns.py
|
||||||
|
|
||||||
# Format suffixes
|
# Format suffixes
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<a class="github" href="mixins.py"></a>
|
source: mixins.py
|
||||||
<a class="github" href="generics.py"></a>
|
generics.py
|
||||||
|
|
||||||
# Generic views
|
# Generic views
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="pagination.py"></a>
|
source: pagination.py
|
||||||
|
|
||||||
# Pagination
|
# Pagination
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="parsers.py"></a>
|
source: parsers.py
|
||||||
|
|
||||||
# Parsers
|
# Parsers
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="permissions.py"></a>
|
source: permissions.py
|
||||||
|
|
||||||
# Permissions
|
# Permissions
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="relations.py"></a>
|
source: relations.py
|
||||||
|
|
||||||
# Serializer relations
|
# Serializer relations
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="renderers.py"></a>
|
source: renderers.py
|
||||||
|
|
||||||
# Renderers
|
# Renderers
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="request.py"></a>
|
source: request.py
|
||||||
|
|
||||||
# Requests
|
# Requests
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="response.py"></a>
|
source: response.py
|
||||||
|
|
||||||
# Responses
|
# Responses
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="reverse.py"></a>
|
source: reverse.py
|
||||||
|
|
||||||
# Returning URLs
|
# Returning URLs
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="routers.py"></a>
|
source: routers.py
|
||||||
|
|
||||||
# Routers
|
# Routers
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="serializers.py"></a>
|
source: serializers.py
|
||||||
|
|
||||||
# Serializers
|
# Serializers
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="settings.py"></a>
|
source: settings.py
|
||||||
|
|
||||||
# Settings
|
# Settings
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="status.py"></a>
|
source: status.py
|
||||||
|
|
||||||
# Status Codes
|
# Status Codes
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="test.py"></a>
|
source: test.py
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="throttling.py"></a>
|
source: throttling.py
|
||||||
|
|
||||||
# Throttling
|
# Throttling
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<a class="github" href="decorators.py"></a> <a class="github" href="views.py"></a>
|
source: decorators.py
|
||||||
|
views.py
|
||||||
|
|
||||||
# Class Based Views
|
# Class Based Views
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a class="github" href="viewsets.py"></a>
|
source: viewsets.py
|
||||||
|
|
||||||
# ViewSets
|
# ViewSets
|
||||||
|
|
||||||
|
|
11
docs/theme/content.html
vendored
Normal file
11
docs/theme/content.html
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{% if meta.source %}
|
||||||
|
|
||||||
|
{% for filename in meta.source %}
|
||||||
|
<a class="github" href="https://github.com/tomchristie/django-rest-framework/tree/master/rest_framework/{{ filename }}">
|
||||||
|
<span class="label label-info">{{ filename }}</span>
|
||||||
|
</a>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{{ content }}
|
|
@ -118,7 +118,7 @@ a.fusion-poweredby {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="main-content" class="span9">
|
<div id="main-content" class="span9">
|
||||||
{{ content }}
|
{% include "content.html" %}
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
</div><!--/row-->
|
</div><!--/row-->
|
||||||
</div><!--/.fluid-container-->
|
</div><!--/.fluid-container-->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user