mirror of
https://github.com/hanzoskill/bot-documentation-expert.git
synced 2026-10-30 21:11:50 +00:00
45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
#!/bin/bash
|
|
# Fetch and display Bot documentation sitemap organized by category
|
|
|
|
SITEMAP_URL="https://docs.hanzo.bot/sitemap.xml"
|
|
|
|
echo "๐ Bot Documentation Structure"
|
|
echo "===================================="
|
|
echo ""
|
|
|
|
# Fetch sitemap and extract URLs (macOS compatible)
|
|
URLS=$(curl -s "$SITEMAP_URL" | sed -n 's/.*<loc>\([^<]*\)<\/loc>.*/\1/p' | sort)
|
|
|
|
# Function to print category
|
|
print_category() {
|
|
local category="$1"
|
|
local emoji="$2"
|
|
local pattern="$3"
|
|
|
|
local matches=$(echo "$URLS" | grep -E "$pattern" | sed 's|https://docs.hanzo.bot/||')
|
|
if [ -n "$matches" ]; then
|
|
echo "$emoji $category"
|
|
echo "$matches" | sed 's/^/ - /'
|
|
echo ""
|
|
fi
|
|
}
|
|
|
|
# Print each category
|
|
print_category "Getting Started" "๐" "/start/"
|
|
print_category "Gateway & Operations" "๐ง" "/gateway/"
|
|
print_category "Providers" "๐ฌ" "/providers/"
|
|
print_category "Core Concepts" "๐ง " "/concepts/"
|
|
print_category "Tools" "๐ ๏ธ" "/tools/"
|
|
print_category "Automation" "โก" "/automation/"
|
|
print_category "CLI" "๐ป" "/cli/"
|
|
print_category "Platforms" "๐ฑ" "/platforms/"
|
|
print_category "Nodes" "๐ก" "/nodes/"
|
|
print_category "Web" "๐" "/web/"
|
|
print_category "Install" "๐ฆ" "/install/"
|
|
print_category "Reference" "๐" "/reference/"
|
|
print_category "Experiments" "๐งช" "/experiments/"
|
|
|
|
# Count total docs
|
|
TOTAL=$(echo "$URLS" | wc -l | tr -d ' ')
|
|
echo "๐ Total documentation pages: $TOTAL"
|