- Add .distignore (operator-private files excluded) - Add build.sh for WordPress-installable release ZIPs - Update CLAUDE.md references (now operator-private only)
46 lines
1.5 KiB
Bash
Executable File
46 lines
1.5 KiB
Bash
Executable File
#!/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!" |