Skip to content
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/nixos-homepage
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 552e23851b8b
Choose a base ref
...
head repository: NixOS/nixos-homepage
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0c07b197560c
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Sep 5, 2020

  1. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    0c07b19 View commit details
Showing with 14 additions and 12 deletions.
  1. +11 −11 Makefile
  2. +1 −1 copy-nix-dev-tutorials.sh
  3. +2 −0 flake.nix
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -34,6 +34,15 @@ HTML = \
teams/security.html


NIX_DEV_MANUAL_IN ?= /no-such-path
NIX_DEV_MANUAL_OUT = guides

all: $(NIX_DEV_MANUAL_OUT)

$(NIX_DEV_MANUAL_OUT): $(NIX_DEV_MANUAL_IN) layout.tt
bash copy-nix-dev-tutorials.sh $(NIX_DEV_MANUAL_OUT)


### Prettify the Nix Pills

NIX_PILLS_MANUAL_IN ?= /no-such-path
@@ -120,7 +129,7 @@ favicon.ico: favicon.png
%-small.png: %.png
convert -resize 200 $< $@

%.html: %.tt layout.tt common.tt nix-dev
%.html: %.tt layout.tt common.tt $(NIX_DEV_MANUAL_OUT)
tpage \
--pre_chomp --post_chomp \
--define root=$(ROOT) \
@@ -133,7 +142,7 @@ favicon.ico: favicon.png
xmllint --nonet --noout $@.tmp
mv $@.tmp $@

%: %.in common.tt
%: %.in common.tt $(NIX_DEV_MANUAL_OUT)
echo $$PATH
tpage \
--define latestNixVersion=$(NIX_STABLE_VERSION) \
@@ -189,12 +198,3 @@ all: \
demos/%.cast: demos/%.scenario demos/create.py
echo "Generating $@ ..."
python demos/create.py $< > $@


all: nix-dev

NIX_DEV_MANUAL_IN ?= /no-such-path
NIX_DEV_MANUAL_OUT = guides

nix-dev: $(NIX_DEV_MANUAL_IN)
bash copy-nix-dev-tutorials.sh $(NIX_DEV_MANUAL_OUT)
2 changes: 1 addition & 1 deletion copy-nix-dev-tutorials.sh
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ for page in "${pages[@]}"; do
filename="$(basename ${page%.*})"
source="$NIX_DEV_MANUAL_IN/$page"
target="$outDir/$filename.tt"
echo "[% WRAPPER layout.tt %]" > $target
echo '[% WRAPPER layout.tt title="" %]' > $target
cat "$source" \
| sed 's|<a class=\"headerlink\".*<\/a>||g' \
| sed 's|<a class="reference internal" href="../glossary.html#term-attribute-name"><span class="xref std std-term">attribute name</span></a>|attribute name|g' \
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -106,6 +106,8 @@
"NIXOS_AMIS=${nixosAmis}"
"NIX_PILLS_MANUAL_IN=${nixPills}/share/doc/nix-pills"
"NIX_DEV_MANUAL_IN=${nix-dev.defaultPackage.x86_64-linux}/html"

"-j 1"
];

doCheck = true;