mirror of
https://git.gay/pyrox/aux-docs
synced 2024-11-22 18:27:56 +00:00
more improvements
This commit is contained in:
parent
07d338a19a
commit
3355ffcbf9
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,3 +6,4 @@ docs
|
|||
.cache/plugin/social
|
||||
mkdocs-hooks/__pycache__
|
||||
public
|
||||
result-doc
|
||||
|
|
|
@ -1,10 +1,16 @@
|
|||
{ stdenvNoCC, pkgs }:
|
||||
{
|
||||
stdenvNoCC,
|
||||
pkgs,
|
||||
perl,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "md-manual";
|
||||
version = "1.0.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
buildInputs = [ perl ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp index.md $out/index.md
|
||||
|
@ -12,5 +18,10 @@ stdenvNoCC.mkDerivation {
|
|||
cp -r ${pkgs.amg.nixpkgs-manual} $out/Nixpkgs/
|
||||
cp -r ${pkgs.amg.aux-wiki} $out/Aux
|
||||
cp -r ${pkgs.lix-docs.doc}/manualMD $out/Lix
|
||||
chmod -R u+w $out/Lix
|
||||
pushd $out/Lix
|
||||
find . -type f -exec perl -pi -e 's/\<div class="warning"\>\n\n/\?\?\? bug\n\n\ \ /g' {} \;
|
||||
popd
|
||||
chmod -R u-w $out/Lix
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -90,6 +90,7 @@ stdenvNoCC.mkDerivation {
|
|||
find . -type f -exec perl -pi -e 's/\s*:::{.tip}\n/!!! tip\n\ \ \ \ /' {} \;
|
||||
find . -type f -exec perl -pi -e 's/\s*:::{.example}\n/!!! example\n\ \ \ \ /' {} \;
|
||||
find . -type f -exec sed -i 's/\s*::://g' {} \;
|
||||
find . -type f -exec sed -i 's/\n```nix/\ \ \ \ ```nix/g' {} \;
|
||||
popd
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue