|
| 1 | +# BitBuilder Hypervisor Website |
| 2 | + |
| 3 | +This directory contains the official website, landing page, and developer documentation for BitBuilder Hypervisor. |
| 4 | + |
| 5 | +## 📁 Structure |
| 6 | + |
| 7 | +``` |
| 8 | +website/ |
| 9 | +├── index.html # Landing page |
| 10 | +├── docs.html # Getting started documentation |
| 11 | +├── architecture.html # Architecture documentation |
| 12 | +├── stack.html # Stack & templates documentation |
| 13 | +├── api.html # API reference |
| 14 | +├── css/ |
| 15 | +│ ├── styles.css # Main stylesheet |
| 16 | +│ └── docs.css # Documentation-specific styles |
| 17 | +└── js/ |
| 18 | + ├── main.js # Main JavaScript |
| 19 | + └── docs.js # Documentation enhancements |
| 20 | +``` |
| 21 | + |
| 22 | +## 🚀 Features |
| 23 | + |
| 24 | +### Landing Page (`index.html`) |
| 25 | +- Modern, responsive design |
| 26 | +- Hero section with key messaging |
| 27 | +- Benefits and features showcase |
| 28 | +- Core technologies overview |
| 29 | +- Architecture highlights |
| 30 | +- UAPI compliance information |
| 31 | +- Call-to-action sections |
| 32 | + |
| 33 | +### Documentation Site |
| 34 | +- **Getting Started** (`docs.html`) - Installation, quick start, core concepts |
| 35 | +- **Architecture** (`architecture.html`) - System architecture, design decisions, patterns |
| 36 | +- **Stack & Templates** (`stack.html`) - Template system, extension images, examples |
| 37 | +- **API Reference** (`api.html`) - Varlink API documentation |
| 38 | + |
| 39 | +### Features |
| 40 | +- ✅ Responsive design for mobile, tablet, and desktop |
| 41 | +- ✅ Smooth scrolling and animations |
| 42 | +- ✅ Sidebar navigation for documentation |
| 43 | +- ✅ Code syntax highlighting |
| 44 | +- ✅ Copy-to-clipboard for code blocks |
| 45 | +- ✅ Anchor links for headings |
| 46 | +- ✅ Print-friendly styles |
| 47 | +- ✅ SEO optimized |
| 48 | + |
| 49 | +## 🛠️ Development |
| 50 | + |
| 51 | +### Prerequisites |
| 52 | +- Any modern web browser |
| 53 | +- A local web server (optional, for development) |
| 54 | + |
| 55 | +### Running Locally |
| 56 | + |
| 57 | +#### Option 1: Python HTTP Server |
| 58 | +```bash |
| 59 | +cd website |
| 60 | +python3 -m http.server 8000 |
| 61 | +# Open http://localhost:8000 in your browser |
| 62 | +``` |
| 63 | + |
| 64 | +#### Option 2: Node.js HTTP Server |
| 65 | +```bash |
| 66 | +cd website |
| 67 | +npx http-server -p 8000 |
| 68 | +# Open http://localhost:8000 in your browser |
| 69 | +``` |
| 70 | + |
| 71 | +#### Option 3: Direct File Access |
| 72 | +Simply open `index.html` in your web browser. Note that some features may not work correctly without a web server. |
| 73 | + |
| 74 | +## 📦 Deployment |
| 75 | + |
| 76 | +### GitHub Pages |
| 77 | + |
| 78 | +The website is configured for GitHub Pages deployment. To deploy: |
| 79 | + |
| 80 | +1. Ensure the `website/` directory is in your repository |
| 81 | +2. Go to repository Settings > Pages |
| 82 | +3. Set the source to the branch containing this website |
| 83 | +4. Configure the directory to `/website` |
| 84 | +5. Save and wait for deployment |
| 85 | + |
| 86 | +Alternatively, you can use GitHub Actions for automated deployment (see `.github/workflows/` if configured). |
| 87 | + |
| 88 | +### Custom Hosting |
| 89 | + |
| 90 | +To deploy to any web server: |
| 91 | + |
| 92 | +1. Copy the entire `website/` directory to your web server |
| 93 | +2. Configure your web server to serve `index.html` as the default document |
| 94 | +3. Ensure proper MIME types for CSS and JS files |
| 95 | +4. Optional: Enable gzip compression for better performance |
| 96 | + |
| 97 | +### Configuration |
| 98 | + |
| 99 | +No build step is required! The website is pure HTML, CSS, and JavaScript. |
| 100 | + |
| 101 | +## 🎨 Customization |
| 102 | + |
| 103 | +### Colors |
| 104 | + |
| 105 | +Edit `css/styles.css` and modify the CSS variables in `:root`: |
| 106 | + |
| 107 | +```css |
| 108 | +:root { |
| 109 | + --primary-color: #2563eb; |
| 110 | + --secondary-color: #7c3aed; |
| 111 | + --accent-color: #f59e0b; |
| 112 | + --dark-bg: #0f172a; |
| 113 | + --light-bg: #f8fafc; |
| 114 | + /* ... */ |
| 115 | +} |
| 116 | +``` |
| 117 | + |
| 118 | +### Content |
| 119 | + |
| 120 | +- **Landing Page**: Edit `index.html` |
| 121 | +- **Documentation**: Edit `docs.html`, `architecture.html`, `stack.html`, `api.html` |
| 122 | +- **Navigation**: Update navbar in each HTML file |
| 123 | +- **Footer**: Update footer section in each HTML file |
| 124 | + |
| 125 | +### Styling |
| 126 | + |
| 127 | +- **Main Styles**: `css/styles.css` - Navigation, hero, sections, footer |
| 128 | +- **Documentation Styles**: `css/docs.css` - Documentation layout, sidebar, content |
| 129 | + |
| 130 | +## 📱 Responsive Breakpoints |
| 131 | + |
| 132 | +- **Desktop**: > 968px |
| 133 | +- **Tablet**: 768px - 968px |
| 134 | +- **Mobile**: < 768px |
| 135 | + |
| 136 | +## 🧪 Testing |
| 137 | + |
| 138 | +Before deploying, test the following: |
| 139 | + |
| 140 | +1. **Navigation**: All links work correctly |
| 141 | +2. **Responsive Design**: Test on mobile, tablet, and desktop |
| 142 | +3. **Code Blocks**: Copy-to-clipboard functionality works |
| 143 | +4. **Anchor Links**: Section anchors scroll correctly |
| 144 | +5. **External Links**: GitHub and other external links are correct |
| 145 | +6. **Print**: Documentation prints correctly |
| 146 | + |
| 147 | +## 📝 Content Guidelines |
| 148 | + |
| 149 | +When updating documentation: |
| 150 | + |
| 151 | +1. **Use Semantic HTML**: Proper heading hierarchy (h1 > h2 > h3) |
| 152 | +2. **Code Examples**: Wrap in `<pre><code>` tags |
| 153 | +3. **Info Boxes**: Use `.info-box` or `.warning-box` classes |
| 154 | +4. **Tables**: Use `.docs-table` class for proper styling |
| 155 | +5. **Navigation**: Update sidebar navigation to match new sections |
| 156 | + |
| 157 | +## 🔧 Browser Support |
| 158 | + |
| 159 | +- Chrome/Edge: Latest 2 versions |
| 160 | +- Firefox: Latest 2 versions |
| 161 | +- Safari: Latest 2 versions |
| 162 | +- Mobile browsers: iOS Safari, Chrome Android |
| 163 | + |
| 164 | +## 📄 License |
| 165 | + |
| 166 | +The website content and code are part of BitBuilder Hypervisor and are licensed under the MIT License. |
| 167 | + |
| 168 | +## 🤝 Contributing |
| 169 | + |
| 170 | +To contribute to the website: |
| 171 | + |
| 172 | +1. Fork the repository |
| 173 | +2. Create a feature branch |
| 174 | +3. Make your changes |
| 175 | +4. Test thoroughly |
| 176 | +5. Submit a pull request |
| 177 | + |
| 178 | +## 📞 Support |
| 179 | + |
| 180 | +- **Issues**: [GitHub Issues](https://github.com/bitbuilder-io/bitbuilder-hypervisor/issues) |
| 181 | +- **Discussions**: [GitHub Discussions](https://github.com/bitbuilder-io/bitbuilder-hypervisor/discussions) |
| 182 | +- **Documentation**: This website! |
| 183 | + |
| 184 | +## 🗺️ Roadmap |
| 185 | + |
| 186 | +Future enhancements: |
| 187 | + |
| 188 | +- [ ] Search functionality |
| 189 | +- [ ] Dark mode toggle |
| 190 | +- [ ] Interactive architecture diagrams |
| 191 | +- [ ] API playground/sandbox |
| 192 | +- [ ] Video tutorials |
| 193 | +- [ ] Multi-language support |
| 194 | +- [ ] Blog/news section |
| 195 | + |
| 196 | +--- |
| 197 | + |
| 198 | +Built with ❤️ for the BitBuilder Hypervisor project. |
0 commit comments