- 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
29 lines
662 B
Bash
Executable File
29 lines
662 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
repository=https://taskfile.build
|
|
install_dir='/usr/local/bin'
|
|
|
|
if [[ "$1" == '--user' ]]; then
|
|
install_dir="$HOME/.local/bin"
|
|
mkdir -p "$install_dir"
|
|
echo "Installing scripts in $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
|
|
echo "Installing $script ..."
|
|
curl -sL "$repository/bin/$script" -o "$install_dir/$script"
|
|
chmod +x "$install_dir/$script"
|
|
done
|
|
|
|
echo "Installation complete."
|