Skip to content

Instantly share code, notes, and snippets.

@reitzig
reitzig / add-test-branches-to-playbook.sh
Last active February 25, 2025 10:58
Patch Antora playbook for testing feature branches
#!/usr/bin/env bash
set -euo pipefail
# # INPUT
# The playbook (YAML file) you want to patch"
playbook="${1}"
# URL of the Git repository that contains the content source under test;
# typically, this will be the HTTPS clone URL of that repository:
repo_under_test="${2}"
@reitzig
reitzig / mise.toml
Last active February 24, 2025 16:33
mise: MWE for project setup with project-local completions
[env]
LOCAL_FISH_COMPLETION_DIR = "{{config_root}}/.config/fish/completions"
[hooks]
postinstall = 'mkdir -p "$LOCAL_FISH_COMPLETION_DIR"'
[tasks.install-local-completions]
description = 'Install shell completions into project directory'
hide = true
run = '''