Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ac3437aa061e
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4b4bbce199d3
Choose a head ref
  • 2 commits
  • 6 files changed
  • 2 contributors

Commits on Apr 5, 2018

  1. nixos/dhcp: fix permissions of statedir

    (cherry picked from commit 7be79f2)
    qknight committed Apr 5, 2018
    Copy the full SHA
    0a2663e View commit details
  2. 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
    
    (cherry picked from commit 8f33464)
    grahamc committed Apr 5, 2018

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    grahamc Graham Christensen
    Copy the full SHA
    4b4bbce View commit details
Showing with 34 additions and 279 deletions.
  1. +1 −7 doc/Makefile
  2. +17 −0 doc/style.css
  3. +8 −5 nixos/doc/manual/default.nix
  4. +0 −267 nixos/doc/manual/style.css
  5. +1 −0 nixos/modules/services/networking/dhcpd.nix
  6. +7 −0 pkgs/misc/documentation-highlighter/loader.js
8 changes: 1 addition & 7 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions doc/style.css
Original file line number Diff line number Diff line change
@@ -248,6 +248,23 @@ table
box-shadow: 0.4em 0.4em 0.5em #e0e0e0;
}

table.simplelist
{
text-align: left;
color: #005aa0;
border: 0;
padding: 5px;
background: #fffff5;
font-weight: normal;
font-style: italic;
box-shadow: none;
margin-bottom: 1em;
}

div.navheader table, div.navfooter table {
box-shadow: none;
}

div.affiliation
{
font-style: italic;
13 changes: 8 additions & 5 deletions nixos/doc/manual/default.nix
Original file line number Diff line number Diff line change
@@ -124,11 +124,12 @@ let
manualXsltprocOptions = toString [
"--param section.autolabel 1"
"--param section.label.includes.component.label 1"
"--stringparam html.stylesheet style.css"
"--stringparam html.stylesheet 'style.css overrides.css highlightjs/mono-blue.css'"
"--stringparam html.script './highlightjs/highlight.pack.js ./highlightjs/loader.js'"
"--param xref.with.number.and.title 1"
"--param toc.section.depth 3"
"--stringparam admon.style ''"
"--stringparam callout.graphics.extension .gif"
"--stringparam callout.graphics.extension .svg"
"--stringparam current.docid manual"
"--param chunk.section.depth 0"
"--param chunk.first.sections 1"
@@ -260,9 +261,11 @@ in rec {
${manual-combined}/manual-combined.xml
mkdir -p $dst/images/callouts
cp ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.gif $dst/images/callouts/
cp ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.svg $dst/images/callouts/
cp ${./style.css} $dst/style.css
cp ${../../../doc/style.css} $dst/style.css
cp ${../../../doc/overrides.css} $dst/overrides.css
cp -r ${pkgs.documentation-highlighter} $dst/highlightjs
mkdir -p $out/nix-support
echo "nix-build out $out" >> $out/nix-support/hydra-build-products
@@ -286,7 +289,7 @@ in rec {
${manual-combined}/manual-combined.xml
mkdir -p $dst/epub/OEBPS/images/callouts
cp -r ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.gif $dst/epub/OEBPS/images/callouts # */
cp -r ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.svg $dst/epub/OEBPS/images/callouts # */
echo "application/epub+zip" > mimetype
manual="$dst/nixos-manual.epub"
zip -0Xq "$manual" mimetype
267 changes: 0 additions & 267 deletions nixos/doc/manual/style.css

This file was deleted.

1 change: 1 addition & 0 deletions nixos/modules/services/networking/dhcpd.nix
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@ let

preStart = ''
mkdir -m 755 -p ${cfg.stateDir}
chown dhcpd:nogroup ${cfg.stateDir}
touch ${cfg.stateDir}/dhcpd.leases
'';

7 changes: 7 additions & 0 deletions pkgs/misc/documentation-highlighter/loader.js
Original file line number Diff line number Diff line change
@@ -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]);
}
}