|
| 1 | +# Python Examples Documentation Site |
| 2 | + |
| 3 | +This is the source for the GitHub Pages documentation site for python-examples. |
| 4 | + |
| 5 | +## 🚀 Built With |
| 6 | + |
| 7 | +- **Astro** - Fast, content-focused static site generator |
| 8 | +- **Academic Paper Design** - Clean, professional typography inspired by research papers |
| 9 | +- **Interactive Filtering** - Search and filter examples by category |
| 10 | +- **Personality** - Easter eggs and touches that show character |
| 11 | + |
| 12 | +## 🛠️ Development |
| 13 | + |
| 14 | +```bash |
| 15 | +cd docs |
| 16 | + |
| 17 | +# Install dependencies |
| 18 | +npm install |
| 19 | + |
| 20 | +# Start dev server |
| 21 | +npm run dev |
| 22 | + |
| 23 | +# Build for production |
| 24 | +npm run build |
| 25 | + |
| 26 | +# Preview production build |
| 27 | +npm run preview |
| 28 | +``` |
| 29 | + |
| 30 | +## 📁 Structure |
| 31 | + |
| 32 | +``` |
| 33 | +docs/ |
| 34 | +├── src/ |
| 35 | +│ ├── layouts/ # Page layouts |
| 36 | +│ ├── pages/ # Astro pages |
| 37 | +│ ├── styles/ # Global CSS |
| 38 | +│ └── components/ # Reusable components (future) |
| 39 | +├── public/ # Static assets |
| 40 | +└── astro.config.mjs # Astro configuration |
| 41 | +``` |
| 42 | + |
| 43 | +## 🎨 Design Philosophy |
| 44 | + |
| 45 | +- **Academic aesthetic** - Serif fonts, paper-like background, numbered sections |
| 46 | +- **Monospace code** - JetBrains Mono for all code examples |
| 47 | +- **Accent color** - Burnt orange (#d35400) for personality |
| 48 | +- **Clean typography** - Crimson Pro for body, Inter for UI elements |
| 49 | +- **Interactive** - Search, filters, and easter eggs for engagement |
| 50 | + |
| 51 | +## 🚀 Deployment |
| 52 | + |
| 53 | +The site automatically deploys to GitHub Pages when changes are pushed to master via GitHub Actions. |
| 54 | + |
| 55 | +## 🎯 Features |
| 56 | + |
| 57 | +- ✅ Responsive design |
| 58 | +- ✅ Search functionality |
| 59 | +- ✅ Category filtering |
| 60 | +- ✅ Print-friendly (for actual paper) |
| 61 | +- ✅ Easter egg (Konami code) |
| 62 | +- ✅ Fast static site generation |
| 63 | +- ✅ Academic paper styling |
| 64 | + |
| 65 | +## 📝 Adding New Examples |
| 66 | + |
| 67 | +Edit `src/pages/index.astro` and add to the `examples` array: |
| 68 | + |
| 69 | +```javascript |
| 70 | +{ |
| 71 | + title: 'your-example.py', |
| 72 | + description: 'What it does', |
| 73 | + category: 'Category Name', |
| 74 | + tags: ['tag1', 'tag2'], |
| 75 | + difficulty: 'beginner' // or 'intermediate', 'advanced' |
| 76 | +} |
| 77 | +``` |
| 78 | + |
| 79 | +The site will automatically update filters and search. |
0 commit comments