Skip to content

Commit

Permalink
Merge pull request #524 from samueldr/fix/guides-titles
Browse files Browse the repository at this point in the history
Fix guides titles (<title>)
  • Loading branch information
garbas committed Sep 14, 2020
2 parents 61737fc + 8e8ccec commit 5d19825
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -39,7 +39,7 @@ NIX_DEV_MANUAL_OUT = guides

all: $(NIX_DEV_MANUAL_OUT) learn_guides.html.in

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


Expand Down
6 changes: 2 additions & 4 deletions copy-nix-dev-tutorials.sh
Expand Up @@ -26,8 +26,7 @@ for page in "${pages[@]}"; do

echo "<li><a href=\"/$outDir/$filename.html\">$title</a></li>" >> learn_guides.html.in

echo '[% WRAPPER layout.tt title="Guides - $title" %]' > $target
echo '' >> $target
printf '[%% WRAPPER layout.tt title="Guides - %s" %%]\n\n' "$title" > $target

xidel $source --css '.body > *' --printed-node-format=html \
| sed 's|<a class=\"headerlink\".*<\/a>||g' \
Expand All @@ -37,6 +36,5 @@ for page in "${pages[@]}"; do
| sed 's|../reference/pinning-nixpkgs.html#ref-pinning-nixpkgs|towards-reproducibility-pinning-nixpkgs.html|g' \
>> "$target"

echo '' >> $target
echo "[% END %]" >> $target
printf '\n\n[%% END %%]\n' >> $target
done

1 comment on commit 5d19825

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://nixos.org as production
🚀 Deployed on https://5f5f30e2c3abcb8299cbbbe8--nixos-homepage.netlify.app

Please sign in to comment.