Files
proxmox/docs/scripts/check-docs-crossrefs.sh
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00

29 lines
987 B
Bash
Executable File

#!/usr/bin/env bash
# check-docs-crossrefs.sh - List docs that may be missing a "Related Documentation" section
# Usage: run from repo root: ./docs/scripts/check-docs-crossrefs.sh
# Optional: use output to add cross-references manually where appropriate.
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DOCS_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
echo "Checking docs for 'Related Documentation' section..."
echo ""
missing=0
while IFS= read -r -d '' f; do
if ! grep -q "Related Documentation\|Related documentation\|## Related" "$f" 2>/dev/null; then
rel="${f#$DOCS_DIR/}"
echo " ${rel:-$f}"
missing=$((missing + 1))
fi
done < <(find "$DOCS_DIR" -name "*.md" -not -path "*/node_modules/*" -print0 2>/dev/null | sort -z)
if [ "$missing" -eq 0 ]; then
echo "All checked docs have a Related Documentation section (or similar)."
else
echo ""
echo "Total: $missing doc(s) without a clear Related section. Add cross-refs where appropriate."
fi
exit 0