diff options
author | EuAndreh <eu@euandre.org> | 2021-09-20 22:30:37 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-09-20 22:33:29 -0300 |
commit | d365d73a5ca5438f57d48601cdcb334beebefec9 (patch) | |
tree | 6cb9773ab0c8e80a6e349d58012a991f95d625b7 /aux | |
parent | _tils/2020-09-05-pull-requests-with-git-the-old-school-way.md: Fix order of r... (diff) | |
download | euandre.org-d365d73a5ca5438f57d48601cdcb334beebefec9.tar.gz euandre.org-d365d73a5ca5438f57d48601cdcb334beebefec9.tar.xz |
aux/: Update
Diffstat (limited to '')
-rw-r--r-- | aux/containers/guix/manifest.scm (renamed from aux/guix/manifest.scm) | 0 | ||||
-rw-r--r-- | aux/containers/guix/pinned-channels.scm (renamed from aux/guix/pinned-channels.scm) | 0 | ||||
-rwxr-xr-x | aux/containers/guix/with-container.sh | 19 | ||||
-rwxr-xr-x | aux/guix/with-container.sh | 17 | ||||
l--------- | aux/with-container | 1 | ||||
-rwxr-xr-x | aux/workflow/commonmark.sh | 3 | ||||
-rw-r--r-- | aux/workflow/style.css | 99 |
7 files changed, 82 insertions, 57 deletions
diff --git a/aux/guix/manifest.scm b/aux/containers/guix/manifest.scm index b10cc6d..b10cc6d 100644 --- a/aux/guix/manifest.scm +++ b/aux/containers/guix/manifest.scm diff --git a/aux/guix/pinned-channels.scm b/aux/containers/guix/pinned-channels.scm index 504406f..504406f 100644 --- a/aux/guix/pinned-channels.scm +++ b/aux/containers/guix/pinned-channels.scm diff --git a/aux/containers/guix/with-container.sh b/aux/containers/guix/with-container.sh new file mode 100755 index 0000000..fcbb8b5 --- /dev/null +++ b/aux/containers/guix/with-container.sh @@ -0,0 +1,19 @@ +#!/bin/sh +set -eu + +CHANNEL_REMOTE='https://euandreh.xyz/package-repository.git' +CHANNEL_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/euandreh-guix-channel" + +if [ ! -d "$CHANNEL_DIR" ]; then + git clone "$CHANNEL_REMOTE" "$CHANNEL_DIR" +fi + +git -C "$CHANNEL_DIR" pull + +ENV_CMD="guix environment -L $CHANNEL_DIR/src/ -m aux/containers/guix/manifest.scm" + +if [ -z "${1:-}" ]; then + $ENV_CMD +else + $ENV_CMD --pure -C -- sh -c "$@" +fi diff --git a/aux/guix/with-container.sh b/aux/guix/with-container.sh deleted file mode 100755 index 6e19691..0000000 --- a/aux/guix/with-container.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -set -eu - -if [ -z "${1:-}" ]; then - guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ - environment --fallback -m aux/guix/manifest.scm -elif [ "$1" = '-p' ]; then - guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ - environment --fallback -m aux/guix/manifest.scm --pure -C -elif [ "$1" = '-C' ]; then - guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ - pack -f docker -S/bin=bin -m aux/guix/manifest.scm -v3 -else - guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ - environment --fallback -m aux/guix/manifest.scm --pure -C \ - -- sh -c "$@" -fi diff --git a/aux/with-container b/aux/with-container new file mode 120000 index 0000000..b96cf67 --- /dev/null +++ b/aux/with-container @@ -0,0 +1 @@ +containers/guix/with-container.sh
\ No newline at end of file diff --git a/aux/workflow/commonmark.sh b/aux/workflow/commonmark.sh index 6f5e59b..39aacb4 100755 --- a/aux/workflow/commonmark.sh +++ b/aux/workflow/commonmark.sh @@ -39,4 +39,5 @@ pandoc \ --metadata "lang=$THE_LANG" \ -r commonmark \ -w html \ - -H aux/workflow/favicon.html + -H aux/workflow/favicon.html \ + -H aux/workflow/style.css diff --git a/aux/workflow/style.css b/aux/workflow/style.css index d72991e..56e4712 100644 --- a/aux/workflow/style.css +++ b/aux/workflow/style.css @@ -1,41 +1,62 @@ <style> - hr { - background-color: #ccc; - } - - .header-anchor { - opacity: 0.5; - } - - .tag { - font-family: monospace; - font-size: 70%; - background-color: lightgray; - padding: 3px; - border-radius: 5px; - } - - .TODO { - color: brown; - } - - .DOING { - color: yellowgreen; - } - - .WAITING, .MEETING { - color: orange; - } - - .INACTIVE { - color: gray; - } - - .NEXT { - color: red; - } - - .CANCELLED, .DONE, .WONTFIX { - color: green; - } + @media(prefers-color-scheme: dark) { + :root { + color: white; + background-color: black; + } + + a { + color: hsl(211, 100%, 60%); + } + + a:visited { + color: hsl(242, 100%, 80%); + } + } + + body { + max-width: 800px; + margin: 0 auto 0 auto; + } + + hr { + background-color: #ccc; + } + + .header-anchor { + opacity: 0.5; + } + + .tag { + font-family: monospace; + font-size: 70%; + background-color: lightgray; + color: black; + padding: 3px; + border-radius: 5px; + } + + .TODO { + color: brown; + } + + .DOING { + color: yellowgreen; + } + + .WAITING, .MEETING { + color: orange; + } + + .INACTIVE { + color: gray; + } + + .NEXT { + color: red; + } + + .CANCELLED, .DONE, .WONTFIX { + color: green; + } </style> |