From c2eeba892f634fb1ba7feec993c0df3dd36642af Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Mon, 29 Jan 2018 17:32:28 +1100 Subject: Adding copy of readthedocs theme from mkdocs 0.17.2 source --- gocryptfs-readthedocs/main.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 gocryptfs-readthedocs/main.html (limited to 'gocryptfs-readthedocs/main.html') diff --git a/gocryptfs-readthedocs/main.html b/gocryptfs-readthedocs/main.html new file mode 100644 index 0000000..79c9f4e --- /dev/null +++ b/gocryptfs-readthedocs/main.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{# +The entry point for the ReadTheDocs Theme. + +Any theme customisations should override this file to redefine blocks defined in +the various templates. The custom theme should only need to define a main.html +which `{% extends "base.html" %}` and defines various blocks which will replace +the blocks defined in base.html and its included child templates. +#} -- cgit v1.2.3 From ba72cf33f36c15fc77e530ee7eeb465c4db73663 Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Tue, 30 Jan 2018 16:26:14 +1100 Subject: Remove custom fonts --- gocryptfs-readthedocs/main.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gocryptfs-readthedocs/main.html') diff --git a/gocryptfs-readthedocs/main.html b/gocryptfs-readthedocs/main.html index 79c9f4e..a17695b 100644 --- a/gocryptfs-readthedocs/main.html +++ b/gocryptfs-readthedocs/main.html @@ -1,5 +1,15 @@ {% extends "base.html" %} + {%- block styles %} + + + + {%- for path in extra_css %} + + {%- endfor %} + {%- endblock %} + + {# The entry point for the ReadTheDocs Theme. -- cgit v1.2.3 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(-) (limited to 'gocryptfs-readthedocs/main.html') 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