diff options
Diffstat (limited to '.builds')
-rw-r--r-- | .builds/auto.yml | 26 | ||||
-rw-r--r-- | .builds/franklin.jl | 12 | ||||
-rw-r--r-- | .builds/shell.nix | 14 |
3 files changed, 0 insertions, 52 deletions
diff --git a/.builds/auto.yml b/.builds/auto.yml deleted file mode 100644 index f20186f..0000000 --- a/.builds/auto.yml +++ /dev/null @@ -1,26 +0,0 @@ -image: nixos/unstable -oauth: lists.sr.ht/EMAILS:RO pages.sr.ht/PAGES:RW -packages: - - nixos.fead -sources: - - https://git.sr.ht/~amolith/fediring.net - - https://git.sr.ht/~cnx/site -environment: - NODE: node -tasks: - - inject: | - grep -C1 cnx.gdn fediring.net/webring.txt | - awk 'NR % 2 { print $2 }' > site/_libs/fediring - fead -F site/_libs/fead/sources -n 4 -l 192\ - < site/_libs/fead/in.html > site/_libs/fead/out.html - acurl https://lists.sr.ht/query/list/5261.mbox -o site/_libs/formbox/mbox - - build: | - cd site - nix-shell .builds/shell.nix --run 'julia --project=@. .builds/franklin.jl' - nix-shell -p htmlq --run _libs/onlymathml - nix-shell -p python3Packages.css-html-js-minify --run _libs/postprocess - - deploy: | - chmod -R +r site/__site - tar -cvzf site.tar.gz -C site/__site . -artifacts: - - site.tar.gz diff --git a/.builds/franklin.jl b/.builds/franklin.jl deleted file mode 100644 index e0a805a..0000000 --- a/.builds/franklin.jl +++ /dev/null @@ -1,12 +0,0 @@ -import Pkg -Pkg.instantiate() - -using Franklin: optimize -optimize(clear=true, minify=false, no_fail_prerender=false, - suppress_errors=false, fail_on_warning=true) -write(joinpath("__site", "assets", "fead.xhtml"), - """<!DOCTYPE xtml [<!ENTITY rsquo '’'>]> - <div class='fead'> - $(readchomp(joinpath("_libs", "fead", "out.html"))) - </div> - """) diff --git a/.builds/shell.nix b/.builds/shell.nix deleted file mode 100644 index 5b50f03..0000000 --- a/.builds/shell.nix +++ /dev/null @@ -1,14 +0,0 @@ -with import <nixpkgs> {}; -mkShell { - nativeBuildInputs = [ - julia-bin nodejs nodePackages.katex python3Packages.formbox - ]; - - shellHook = '' - npm install highlight.js # https://github.com/NixOS/nixpkgs/issues/152201 - katex=${nodePackages.katex}/lib/node_modules/katex/dist - install -Dm 644 $katex/katex.min.js _libs/katex/katex.min.js - install -Dm 644 $katex/contrib/auto-render.min.js\ - _libs/katex/contrib/auto-render.min.js - ''; -} |