## Summary - Move all existing zettelkasten cards from `docs/` to `docs/zk/` as a temporary holding area - Update `zk-docs` mise task to look in the new location - Add `docs/README.md` explaining the Diataxis-based restructuring plan and target audiences ## Context This is phase 1 of a multi-phase documentation restructuring effort. The goal is to reorganize docs to follow the Diataxis framework while serving multiple audiences: 1. Erich (owner) - knowledge graph/zk 2. Claude/AI agents - memory and context enrichment 3. New external readers - high-level overview 4. Potential operators/contributors - onboarding 5. Replicators - people wanting to duplicate the approach ## Testing - [x] Verified `mise run zk-docs` still works with the new path - [x] Updated obsidian.nvim config (in ~/.config/nvim) to point to new path ## Note The obsidian.nvim config change is outside this repo but was made as part of this work. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/84
31 lines
769 B
Bash
31 lines
769 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
HTML_DIR="/usr/share/nginx/html"
|
|
|
|
# Check for required environment variable
|
|
if [ -z "$DOCS_RELEASE_URL" ]; then
|
|
echo "Error: DOCS_RELEASE_URL environment variable is required"
|
|
echo "Set it to the URL of the static site tarball to serve"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Downloading docs from: $DOCS_RELEASE_URL"
|
|
|
|
# Download the tarball
|
|
if ! curl -fsSL "$DOCS_RELEASE_URL" -o /tmp/docs.tar.gz; then
|
|
echo "Error: Failed to download docs from $DOCS_RELEASE_URL"
|
|
exit 1
|
|
fi
|
|
|
|
# Clear existing content and extract
|
|
rm -rf "${HTML_DIR:?}"/*
|
|
echo "Extracting docs to $HTML_DIR"
|
|
tar -xzf /tmp/docs.tar.gz -C "$HTML_DIR"
|
|
rm /tmp/docs.tar.gz
|
|
|
|
echo "Docs extracted successfully"
|
|
echo "Starting nginx..."
|
|
|
|
# Start nginx in foreground
|
|
exec nginx -g "daemon off;"
|