#!/bin/bash # TigerStyle Scent Documentation Deployment Script # Builds and deploys the documentation site set -e echo "πŸš€ Building TigerStyle Scent Documentation..." # Build the documentation npm run build echo "πŸ“¦ Build completed successfully!" # Create deployment directory mkdir -p /home/rpm/claude/wordpress/oauth2-provider/docs-site # Copy built files to deployment location echo "πŸ“‹ Deploying to web server..." sudo cp -r dist/* /home/rpm/claude/wordpress/oauth2-provider/docs-site/ # Set proper permissions sudo chown -R http:http /home/rpm/claude/wordpress/oauth2-provider/docs-site/ sudo chmod -R 755 /home/rpm/claude/wordpress/oauth2-provider/docs-site/ echo "βœ… Documentation deployed successfully!" echo "" echo "🌐 Access your documentation at:" echo " Local: http://localhost:4331/ (dev server)" echo " Built: file:///home/rpm/claude/wordpress/oauth2-provider/docs-site/index.html" echo "" echo "🎯 Key features implemented:" echo " βœ… Diataxis framework structure" echo " βœ… Interactive OAuth2 flow demo" echo " βœ… Security checklist with Alpine.js" echo " βœ… TigerStyle branding and cat-themed design" echo " βœ… Responsive mobile-first layout" echo " βœ… Fast search with Pagefind" echo "" echo "πŸ“š Content available:" echo " πŸ“– Tutorial: Your First OAuth2 Server" echo " πŸ”§ How-to: Fix SQL Injection Vulnerabilities" echo " 🧠 Explanation: OAuth2 Security Architecture" echo " πŸ“‹ Reference: Authorization Endpoint API" echo "" echo "πŸ¦Έβ€β™‚οΈ Security exemplar documentation is ready!"