From 49a68654530c4a559dac3df33e1b35261d19ff6e Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Tue, 30 Jan 2018 17:49:32 +1100 Subject: Remove syntax highlighting --- gocryptfs-readthedocs/js/theme.js | 2 +- gocryptfs-readthedocs/main.html | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/gocryptfs-readthedocs/js/theme.js b/gocryptfs-readthedocs/js/theme.js index dda9975..5c3e1ec 100644 --- a/gocryptfs-readthedocs/js/theme.js +++ b/gocryptfs-readthedocs/js/theme.js @@ -35,7 +35,7 @@ $( document ).ready(function() { // Make tables responsive $("table.docutils:not(.field-list)").wrap("
"); - hljs.initHighlightingOnLoad(); + //hljs.initHighlightingOnLoad(); $('table').addClass('docutils'); }); diff --git a/gocryptfs-readthedocs/main.html b/gocryptfs-readthedocs/main.html index a17695b..7de28d2 100644 --- a/gocryptfs-readthedocs/main.html +++ b/gocryptfs-readthedocs/main.html @@ -1,14 +1,30 @@ {% extends "base.html" %} +{# Override the styles and libs blocks so we can remove the custom fonts and disable syntax highlighting. #} + {%- block styles %} - + {%- for path in extra_css %} {%- endfor %} {%- endblock %} + {%- block libs %} + {% if page %} + + {% endif %} + + + + {%- endblock %} + {# The entry point for the ReadTheDocs Theme. -- cgit v1.2.3