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
This commit is contained in:
Graham Christensen
2018-04-05 07:54:01 -04:00
parent ced3a201e3
commit 8f33464ca7
5 changed files with 33 additions and 279 deletions

View File

@@ -0,0 +1,7 @@
/* This file is NOT part of highlight.js */
document.onreadystatechange = function () {
var listings = document.querySelectorAll('.programlisting, .screen');
for (i = 0; i < listings.length; ++i) {
hljs.highlightBlock(listings[i]);
}
}