diff options
author | Graham Christensen <graham@grahamc.com> | 2018-04-05 07:54:01 -0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2018-04-05 07:54:01 -0400 |
commit | 8f33464ca7a603301cf9a5a213be23ca701d6cce (patch) | |
tree | b524e95295d498a5241d04b977ec12b03769bf96 /doc/Makefile | |
parent | ced3a201e39397f5c7a311d40525088494ea7808 (diff) |
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
Diffstat (limited to 'doc/Makefile')
-rw-r--r-- | doc/Makefile | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/doc/Makefile b/doc/Makefile index c16e70e9c6a2c..0ddae8631f3ca 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 |