From 9a981fec37ce46b5d2c53b7119651036af8ba804 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 21 Aug 2020 15:26:11 +0200 Subject: [PATCH] Add markdownlint dtool Signed-off-by: Knut Ahlers --- .config/dtool/markdownlint/Dockerfile | 8 ++++++++ .zsh/config.sh | 1 + 2 files changed, 9 insertions(+) create mode 100644 .config/dtool/markdownlint/Dockerfile diff --git a/.config/dtool/markdownlint/Dockerfile b/.config/dtool/markdownlint/Dockerfile new file mode 100644 index 0000000..0267c28 --- /dev/null +++ b/.config/dtool/markdownlint/Dockerfile @@ -0,0 +1,8 @@ +FROM node:alpine + +ARG UID=1000 + +RUN set -ex \ + && yarn --cwd /tmp global add markdownlint-cli + +ENTRYPOINT ["markdownlint"] diff --git a/.zsh/config.sh b/.zsh/config.sh index b0c79fd..15adacc 100644 --- a/.zsh/config.sh +++ b/.zsh/config.sh @@ -48,6 +48,7 @@ alias htpasswd='python3 -c "import crypt; import sys; print(crypt.crypt(sys.argv alias just='just --no-dotenv' alias l='ls --git -lg' alias ls='/usr/bin/exa' +alias markdownlint='dtool markdownlint' alias mqttcli='vault2env --key=secret/private/mqttcli -- mqttcli' alias mysql='docker run --rm -ti -v $(pwd):$(pwd) -w $(pwd) mysql bash' alias mysqlpw='python3 -c "import hashlib; import sys; print(\"*{}\".format(hashlib.sha1(hashlib.sha1(sys.argv[1].encode(\"utf-8\")).digest()).hexdigest().upper()))"'