Files
Janik von Rotz 323f81a45f refactor: migrate documentation from 11ty to Zensical and restructure project layout
- Replace 11ty static site generator with Zensical (Material for MkDocs)
- Remove Node.js dependencies, `package.json`, `pnpm-lock.yaml`, and `node_modules`
- Refactor directory structure: move docs to `docs/`, assets to `docs/{img, stylesheets, javascripts}`, and build output to `site/`
- Create modular bin scripts for Zensical, 11ty, and Vuepress workflows (init, dev, build, serve)
- Update `.gitignore` to track `.venv` and `site` instead of `node_modules` and `_site`
- Rewrite `README.md` and `AGENTS.md` to reflect new tooling and structure
- Update `task` and `task.template` with new documentation commands and help rows
- Implement `install` and `uninstall` scripts to fetch scripts from remote repository
- Add `zensical.toml` configuration with Material theme, dark mode toggle, and navigation
- Fix shellcheck issues in `task.template` and `save-pass-to-keepass`
- Update `prompt.md` with completion status and worklog
2026-10-05 16:53:23 +02:00

29 lines
630 B
Bash

#!/usr/bin/env bash
set -e
repository=https://taskfile.build
install_dir='/usr/local/bin'
if [[ "$1" == '--user' ]]; then
install_dir="$HOME/.local/bin"
echo "Uninstalling scripts from $install_dir"
fi
# Fetch list of scripts from the repository
echo "Fetching script list from $repository"
scripts=$(curl -sL "$repository/scripts.txt")
if [[ -z "$scripts" ]]; then
echo "Error: Could not fetch script list."
exit 1
fi
for script in $scripts; do
if [[ -f "$install_dir/$script" ]]; then
echo "Removing $script ..."
rm -f "$install_dir/$script"
fi
done
echo "Uninstallation complete."