From d04dcf67ec042fca76b48ffc09ea9d2ea4b5106e Mon Sep 17 00:00:00 2001 From: cyan Date: Thu, 17 Oct 2024 10:50:22 +0200 Subject: initial work on docs (#69) * initial work on docs * fix DOCKER_VERSION * update location * add the path **properly** * Update docs workflow --- docs/update_screenshot.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 docs/update_screenshot.sh (limited to 'docs/update_screenshot.sh') diff --git a/docs/update_screenshot.sh b/docs/update_screenshot.sh new file mode 100755 index 0000000..a404047 --- /dev/null +++ b/docs/update_screenshot.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -x -e +go install github.com/homeport/termshot/cmd/termshot@main +cargo install onefetch +COMMIT_COUNT=$(git log --pretty=format:'' | wc -l | xargs) +echo Commit count: $COMMIT_COUNT +if (( $COMMIT_COUNT % 69 == 0 )) +then + echo "easter egg, yay!" + termshot --show-cmd --filename Writerside/assets/onefetch.png -- "onefetch --number-of-authors 0 -a html | lolcat" +else + echo "normal. Yay." + termshot --show-cmd --filename Writerside/assets/onefetch.png -- "onefetch --number-of-authors 0 -a c++" +fi \ No newline at end of file -- cgit v1.2.3