aboutsummaryrefslogtreecommitdiffstats
path: root/docs/theme/content.html
diff options
context:
space:
mode:
authorJosé Padilla2014-10-31 09:04:39 -0400
committerDougal Matthews2014-11-25 12:44:11 +0000
commit16d442dda3ee9d4ff40d067d76706959aac4c6a3 (patch)
tree2f180dd2ba39e9bed2dea0bbadc85815a043b471 /docs/theme/content.html
parentcbb6799d2dc2d87e58e67e1044075319262a674b (diff)
downloaddjango-rest-framework-16d442dda3ee9d4ff40d067d76706959aac4c6a3.tar.bz2
Use MkDocs meta.source to render source code links
Diffstat (limited to 'docs/theme/content.html')
-rw-r--r--docs/theme/content.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/theme/content.html b/docs/theme/content.html
new file mode 100644
index 00000000..93a437ff
--- /dev/null
+++ b/docs/theme/content.html
@@ -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 }}