|
1 | | -# openchoreo-website-staging |
2 | | -This is to test OpenChoreo website |
| 1 | +# OpenChoreo Documentation Website |
| 2 | + |
| 3 | +Official documentation website for [OpenChoreo](https://openchoreo.io) - an open-source Internal Developer Platform (IDP). |
| 4 | + |
| 5 | +## 🚀 Quick Start |
| 6 | + |
| 7 | +### Prerequisites |
| 8 | + |
| 9 | +- **Ruby 3.1** or higher |
| 10 | +- **Bundler** gem (`gem install bundler`) |
| 11 | + |
| 12 | +### Local Development |
| 13 | + |
| 14 | +1. **Clone the repository** |
| 15 | + ```bash |
| 16 | + git clone https://github.com/openchoreo/openchoreo.github.io.git |
| 17 | + cd openchoreo.github.io |
| 18 | + ``` |
| 19 | + |
| 20 | +2. **Install dependencies** |
| 21 | + ```bash |
| 22 | + bundle install |
| 23 | + ``` |
| 24 | + |
| 25 | +3. **Run the development server** |
| 26 | + ```bash |
| 27 | + bundle exec jekyll serve |
| 28 | + ``` |
| 29 | + |
| 30 | + The site will be available at `http://localhost:4000` |
| 31 | + |
| 32 | +4. **Build for production** |
| 33 | + ```bash |
| 34 | + # Standard build |
| 35 | + bundle exec jekyll build |
| 36 | + |
| 37 | + # Build for GitHub Pages deployment |
| 38 | + bundle exec jekyll build --baseurl "/openchoreo.github.io" |
| 39 | + ``` |
| 40 | + |
| 41 | +## 📁 Project Structure |
| 42 | + |
| 43 | +``` |
| 44 | +├── _data/ # Navigation and site data |
| 45 | +│ └── docs_nav.yml # Documentation navigation structure |
| 46 | +├── _includes/ # Reusable Jekyll components |
| 47 | +├── _layouts/ # Page layout templates |
| 48 | +├── _site/ # Generated site (gitignored) |
| 49 | +├── css/ # Stylesheets (Bootstrap, custom themes) |
| 50 | +├── docs/ # Documentation content (Markdown) |
| 51 | +├── img/ # Images and media assets |
| 52 | +└── js/ # JavaScript files |
| 53 | +``` |
| 54 | + |
| 55 | +## 📝 Writing Documentation |
| 56 | + |
| 57 | +### Adding a New Page |
| 58 | + |
| 59 | +1. Create a new Markdown file in the appropriate `docs/` subdirectory |
| 60 | +2. Add YAML front matter: |
| 61 | + ```yaml |
| 62 | + --- |
| 63 | + layout: docs |
| 64 | + title: Your Page Title |
| 65 | + --- |
| 66 | + ``` |
| 67 | +3. Write your content in Markdown |
| 68 | +4. Update `_data/docs_nav.yml` to include your page in the navigation |
| 69 | + |
| 70 | +### Documentation Structure |
| 71 | + |
| 72 | +The documentation is organized into the following sections: |
| 73 | + |
| 74 | +- **Overview** - Introduction to OpenChoreo, architecture, and roadmap |
| 75 | +- **Getting Started** - Quick start guide, installation, and first deployment |
| 76 | +- **Learn from Examples** - Practical examples and use cases |
| 77 | +- **Core Concepts** - Platform philosophy, abstractions, and relationships |
| 78 | +- **Reference** - FAQ, changelog, configuration schema, and limits |
| 79 | + |
| 80 | +## 🎨 Features |
| 81 | + |
| 82 | +- **Dark/Light Mode** - Automatic theme detection with manual toggle |
| 83 | +- **Responsive Design** - Mobile-friendly documentation |
| 84 | +- **Syntax Highlighting** - Code blocks with Prism.js |
| 85 | +- **Auto-generated TOC** - Table of contents from headings |
| 86 | +- **SEO Optimized** - Meta tags and Open Graph support |
| 87 | + |
| 88 | +## 🛠 Development Commands |
| 89 | + |
| 90 | +```bash |
| 91 | +# Install dependencies |
| 92 | +bundle install |
| 93 | + |
| 94 | +# Start development server with live reload |
| 95 | +bundle exec jekyll serve |
| 96 | + |
| 97 | +# Build the site |
| 98 | +bundle exec jekyll build |
| 99 | + |
| 100 | +# Clean build artifacts |
| 101 | +bundle exec jekyll clean |
| 102 | + |
| 103 | +# Build for GitHub Pages |
| 104 | +bundle exec jekyll build --baseurl "/openchoreo.github.io" |
| 105 | +``` |
| 106 | + |
| 107 | +## 🚢 Deployment |
| 108 | + |
| 109 | +The site is automatically deployed to GitHub Pages when changes are pushed to the main branch. |
| 110 | + |
| 111 | +### Manual Deployment |
| 112 | + |
| 113 | +1. Go to the [Actions tab](https://github.com/openchoreo/openchoreo.github.io/actions) |
| 114 | +2. Select the "Deploy Jekyll site to Pages" workflow |
| 115 | +3. Click "Run workflow" |
| 116 | +4. Select the branch and click "Run workflow" |
| 117 | + |
| 118 | +## 🤝 Contributing |
| 119 | + |
| 120 | +We welcome contributions to improve the OpenChoreo documentation! |
| 121 | + |
| 122 | +1. Fork the repository |
| 123 | +2. Create a feature branch (`git checkout -b feature/improvement`) |
| 124 | +3. Make your changes |
| 125 | +4. Test locally with `bundle exec jekyll serve` |
| 126 | +5. Commit your changes (`git commit -am 'Add new documentation'`) |
| 127 | +6. Push to the branch (`git push origin feature/improvement`) |
| 128 | +7. Create a Pull Request |
| 129 | + |
| 130 | +## 📚 Technologies Used |
| 131 | + |
| 132 | +- **[Jekyll](https://jekyllrb.com/)** (v4.4.1) - Static site generator |
| 133 | +- **[Bootstrap](https://getbootstrap.com/)** (v5.3) - CSS framework |
| 134 | +- **[jQuery](https://jquery.com/)** (v3.7.1) - JavaScript library |
| 135 | +- **[Prism.js](https://prismjs.com/)** - Syntax highlighting |
| 136 | +- **[GitHub Pages](https://pages.github.com/)** - Hosting |
| 137 | + |
| 138 | +## 📄 License |
| 139 | + |
| 140 | +This project is part of the OpenChoreo open-source initiative. Please refer to the main OpenChoreo repository for licensing information. |
| 141 | + |
| 142 | +## 🔗 Links |
| 143 | + |
| 144 | +- [OpenChoreo Main Repository](https://github.com/openchoreo/openchoreo) |
| 145 | +- [OpenChoreo Website](https://openchoreo.io) |
| 146 | +- [Documentation](https://openchoreo.github.io) |
| 147 | + |
| 148 | +## 💬 Support |
| 149 | + |
| 150 | +For questions and support: |
| 151 | +- Open an issue in this repository for documentation-related concerns |
| 152 | +- Visit the main [OpenChoreo repository](https://github.com/openchoreo/openchoreo) for platform-related issues |
| 153 | +- Join our community discussions |
| 154 | + |
| 155 | +--- |
| 156 | + |
| 157 | +Built with ❤️ by the OpenChoreo community |
0 commit comments