- ai-service/convert.py: converts Office/PDF files to markdown with frontmatter - database/seeders/data/: folder structure for themas, projects, documents, etc. - database/seeders/data/raw/: drop zone for Office/PDF files to convert - wiki/: project architecture, concepts, and knowledge graph documentation - Remove unused Laravel example tests Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
19 lines
536 B
Bash
19 lines
536 B
Bash
#!/bin/bash
|
|
# Search the wiki — usable by both humans and LLM agents
|
|
# Usage: ./wiki/tools/search.sh "query" [--files-only]
|
|
|
|
WIKI_DIR="$(dirname "$(dirname "$(readlink -f "$0")")")"
|
|
QUERY="$1"
|
|
MODE="${2:---content}"
|
|
|
|
if [ -z "$QUERY" ]; then
|
|
echo "Usage: $0 <query> [--files-only]"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$MODE" = "--files-only" ]; then
|
|
grep -rl --include="*.md" --include="*.yaml" "$QUERY" "$WIKI_DIR" 2>/dev/null | sort
|
|
else
|
|
grep -rn --include="*.md" --include="*.yaml" --color=auto -i "$QUERY" "$WIKI_DIR" 2>/dev/null
|
|
fi
|