#!/bin/bash

# Helper script to diagnose MkDocs configuration
echo "=== MkDocs and Python Information ==="
echo "Python version:"
python3 --version
echo ""

echo "MkDocs version:"
mkdocs --version
echo ""

echo "=== Installed Packages in Virtual Environment ==="
pip list
echo ""

echo "=== MkDocs Configuration ==="
if [ -f "mkdocs.yml" ]; then
  echo "Contents of mkdocs.yml:"
  cat mkdocs.yml
  echo ""
  
  echo "Checking plugins in mkdocs.yml:"
  grep -A 10 "plugins:" mkdocs.yml
else
  echo "mkdocs.yml not found in current directory"
fi
echo ""

echo "=== Testing MkDocs Build ==="
echo "Running: mkdocs build --strict"
mkdocs build --strict

echo ""
echo "=== Done ==="
