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