From 8f33464ca7a603301cf9a5a213be23ca701d6cce Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 5 Apr 2018 07:54:01 -0400 Subject: nixos docs: syntax highlight - Rectifies diverging CSS by combining nixos/nixpkgs docs CSS - Moves our custom Highlight.js loader in to the hljs package - Switches the nixos docs to use SVG callouts too --- doc/Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'doc/Makefile') diff --git a/doc/Makefile b/doc/Makefile index c16e70e9c6a2..0ddae8631f3c 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -25,13 +25,6 @@ out/html/index.html: manual-full.xml style.css highlightjs ./manual-full.xml mkdir -p out/html/highlightjs/ - echo "document.onreadystatechange = function () { \ - var listings = document.querySelectorAll('.programlisting, .screen'); \ - for (i = 0; i < listings.length; ++i) { \ - hljs.highlightBlock(listings[i]); \ - } \ - } " > out/html/highlightjs/loader.js - cp -r highlightjs out/html/ cp ./overrides.css out/html/ @@ -63,6 +56,7 @@ highlightjs: cp -r "$$HIGHLIGHTJS/highlight.pack.js" highlightjs/ cp -r "$$HIGHLIGHTJS/LICENSE" highlightjs/ cp -r "$$HIGHLIGHTJS/mono-blue.css" highlightjs/ + cp -r "$$HIGHLIGHTJS/loader.js" highlightjs/ manual-full.xml: ${MD_TARGETS} .version *.xml -- cgit 1.4.1