mirror of
https://git.gay/pyrox/aux-docs
synced 2024-12-26 14:27:56 +00:00
update lix docs
This commit is contained in:
parent
bb78a43bc3
commit
331fa9b352
|
@ -1,6 +1,7 @@
|
|||
{ channels, ... }:
|
||||
final: prev: {
|
||||
lix-docs = channels.nixpkgs.lix.overrideAttrs {
|
||||
pname = "lix-docs";
|
||||
postBuild = ''
|
||||
TERM=dumb ninja doc/manual/markdown
|
||||
'';
|
||||
|
|
|
@ -10,7 +10,8 @@ let
|
|||
s = "${f} sed -i";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit (lix-docs) pname version;
|
||||
inherit (lix-docs) version;
|
||||
pname = "lix-docs-md";
|
||||
|
||||
src = lix-docs.src;
|
||||
|
||||
|
@ -55,6 +56,7 @@ stdenv.mkDerivation {
|
|||
${s} '8s/\w/\u&/' {} \;
|
||||
${s} '8s/$/\./' {} \;
|
||||
${f} ex -c '1,5m9' -c w -c q {} \;
|
||||
${s} 's!../command-ref!\./!g' {} \;
|
||||
popd
|
||||
mv new-cli New-CLI
|
||||
# Fixup all non-nix3 commands
|
||||
|
@ -68,8 +70,11 @@ stdenv.mkDerivation {
|
|||
# Fixup Nix-env
|
||||
pushd nix-env
|
||||
find . -type f -name "*.md" -exec bash -c 'defaultFix "$0"' {} \;
|
||||
sed -i 's!\./nix-env!\./!g' index.md
|
||||
sed -i 's!../Command-Reference/!\./!g' index.md
|
||||
${s} 's!../command-ref!\.!g' {} \;
|
||||
sed -i 's!\./nix-env!\.!g' index.md
|
||||
sed -i 's!\./files!\.\./files!g' index.md
|
||||
sed -i 's!\./new-cli!\.\./new-cli!g' index.md
|
||||
sed -i 's!\.\./language!\.\./\.\./language!g' index.md
|
||||
popd
|
||||
bash -c defaultFix conf-file.md
|
||||
popd
|
||||
|
@ -117,12 +122,15 @@ stdenv.mkDerivation {
|
|||
find . -type f -name "*.md" -exec sed -i 's/advanced-topics/Advanced-Topics/g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's/command-ref/Command-Reference/g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's/package-management/Package-Management/g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's!installation/installation\.md!installation/index.md!g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's/new-cli/New-CLI/g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's/Command-Reference\.html//g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's/Command-Reference\.md//g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's/conf-file\.html/conf-file\.md/g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's/nix-env\.md/nix-env/g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's/nix-env\.md/nix-env\/index.md/g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's/nix-store\.md/nix-store\/index.md/g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's/values\.html/values\.md/g' {} \;
|
||||
find . -type f -name "*.md" -exec sed -i 's/distributed-builds\.html/distributed-builds\.md/g' {} \;
|
||||
|
||||
# Final misc cleanups
|
||||
find . -type f -name "*.md" -exec sed -i 's/[\]//g' {} \;
|
||||
|
|
Loading…
Reference in a new issue