Fix the Facebook crawler spider trap by disabling Quartz SPA mode and removing the nginx fallback to index.html. Non-existent URLs now return 404.html instead of the root SPA shell, preventing infinite recursive crawling. Remove hand-curated category index files (tutorials.md, reference.md, how-to.md, explanation.md) — Quartz auto-generates folder pages. Drop docs-check-index and docs-check-filenames hooks. Update docs-check-links to allow path-based wiki-links and only error on true ambiguity. Remove robots.txt exclusions since they're no longer needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
884 B
Bash
Executable file
26 lines
884 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#MISE description="Prime AI context with key BlumeOps documentation"
|
|
|
|
set -euo pipefail
|
|
|
|
DOCS_DIR="$(cd "$(dirname "$0")/.." && pwd)/docs"
|
|
|
|
# Key files for AI context priming, in order of importance
|
|
FILES=(
|
|
"$DOCS_DIR/tutorials/ai-assistance-guide.md"
|
|
"$DOCS_DIR/how-to/agent-change-process.md"
|
|
"$DOCS_DIR/index.md"
|
|
"$DOCS_DIR/how-to/operations/troubleshooting.md"
|
|
"$DOCS_DIR/explanation/architecture.md"
|
|
"$DOCS_DIR/reference/tools/mise-tasks.md"
|
|
)
|
|
|
|
# Concatenate files with headers showing paths
|
|
bat --style=header --color=never --decorations=always "$@" "${FILES[@]}"
|
|
|
|
# Documentation tree — replaces the old hand-curated index files
|
|
echo ""
|
|
echo "=== Documentation Structure ==="
|
|
echo "All docs under $DOCS_DIR (excluding changelog.d/):"
|
|
echo ""
|
|
find "$DOCS_DIR" -name '*.md' -not -path '*/changelog.d/*' | sort | sed "s|$DOCS_DIR/||"
|