|
1 | 1 | # MaaS Platform Documentation |
2 | 2 |
|
3 | | -Welcome to the Model-as-a-Service (MaaS) Platform documentation. This platform provides a comprehensive solution for deploying and managing AI models with policy-based access control, rate limiting, and tier-based subscriptions. |
| 3 | +This directory contains the documentation for the MaaS (Model-as-a-Service) Platform. |
4 | 4 |
|
5 | | -## π Documentation Overview |
| 5 | +## Building the Documentation Locally |
6 | 6 |
|
7 | | -### π Getting Started |
| 7 | +To build and preview the documentation website locally, follow these steps: |
8 | 8 |
|
9 | | -- **[Installation Guide](installation.md)** - Complete platform deployment instructions |
10 | | -- **[Getting Started](getting-started.md)** - Quick start guide after installation |
| 9 | +### Prerequisites |
11 | 10 |
|
12 | | -## Architecture and Components |
| 11 | +- Python 3.11 or higher |
| 12 | +- pip (Python package manager) |
13 | 13 |
|
14 | | -- **[Architecture](architecture.md)** - Overview of the MaaS Platform architecture |
15 | | -- **[Observability](observability.md)** - Overview of the MaaS Platform observability components |
| 14 | +### Installation |
16 | 15 |
|
17 | | -### βοΈ Configuration & Management |
| 16 | +1. Install MkDocs and required plugins: |
18 | 17 |
|
19 | | -- **[Gateway Setup](gateway-setup.md)** - Setting up authentication and rate limiting |
20 | | -- **[Tier Management](tier-management.md)** - Configuring subscription tiers and access control |
21 | | -- **[Model Access Guide](model-access.md)** - Managing model access and policies |
| 18 | +```bash |
| 19 | +pip install mkdocs |
| 20 | +pip install mkdocs-material |
| 21 | +pip install mkdocs-git-revision-date-localized-plugin |
| 22 | +``` |
22 | 23 |
|
23 | | -### π§ Advanced Administration |
| 24 | +### Building and Serving |
24 | 25 |
|
25 | | -- **[Observability](observability.md)** - Monitoring, metrics, and dashboards |
| 26 | +1. Navigate to the docs directory (where `mkdocs.yml` is located): |
26 | 27 |
|
| 28 | +```bash |
| 29 | +cd /path/to/maas-billing/docs |
| 30 | +``` |
27 | 31 |
|
28 | | -### π₯ End Users |
| 32 | +2. Start the development server: |
29 | 33 |
|
30 | | -- **[User Guide](user-guide.md)** - How end users interact with the platform |
| 34 | +```bash |
| 35 | +mkdocs serve |
| 36 | +``` |
31 | 37 |
|
32 | | -## π Quick Start for Administrators |
| 38 | +3. Open your browser and navigate to `http://127.0.0.1:8000` |
33 | 39 |
|
34 | | -### πΉ New to MaaS? Watch Our Installation Video |
| 40 | +The documentation will automatically reload when you make changes to the source files. |
35 | 41 |
|
36 | | -For a visual guide to getting started, check out our [Installation Video Walkthrough](installation.md#-video-walkthrough) that covers the complete deployment process. |
| 42 | +### Building for Production |
37 | 43 |
|
38 | | -### Administrator Getting Started Steps |
| 44 | +To build the static site files: |
39 | 45 |
|
40 | | -1. **Deploy the platform**: Follow the [Installation Guide](installation.md) to set up MaaS in your cluster |
41 | | -2. **Configure authentication**: Set up [Gateway authentication](gateway-setup.md) for your organization |
42 | | -3. **Configure tiers**: Set up [Tier Management](tier-management.md) for access control |
43 | | -4. **Test the deployment**: Follow [Getting Started](getting-started.md) to verify everything works |
| 46 | +```bash |
| 47 | +mkdocs build |
| 48 | +``` |
44 | 49 |
|
45 | | -## π Prerequisites for Administrators |
| 50 | +This will create a `site/` directory with the generated HTML files. |
46 | 51 |
|
47 | | -- **OpenShift cluster** (4.19.9+) with kubectl/oc access |
48 | | -- **ODH/RHOAI** with KServe enabled |
49 | | -- **Cluster admin** permissions for initial setup |
50 | | -- **Basic Kubernetes knowledge** for troubleshooting |
| 52 | +### Configuration |
51 | 53 |
|
52 | | -## ποΈ Platform Components |
| 54 | +The documentation is configured using `mkdocs.yml` in this directory. This file contains: |
53 | 55 |
|
54 | | -- **Gateway API**: Traffic routing and management |
55 | | -- **Kuadrant/Authorino/Limitador**: Authentication, authorization, and rate limiting |
56 | | -- **KServe**: Model serving platform |
57 | | -- **MaaS API**: Token management and tier resolution |
58 | | -- **React Frontend**: Web-based management interface |
| 56 | +- Site metadata and navigation |
| 57 | +- Theme configuration (Material Design with Red Hat branding) |
| 58 | +- Markdown extensions and plugins |
| 59 | +- Build settings |
59 | 60 |
|
60 | | -## π₯ For End Users |
| 61 | +### File Structure |
61 | 62 |
|
62 | | -If you're an end user looking to use AI models through the MaaS platform, your administrator should provide you with: |
| 63 | +- `index.md` - Homepage |
| 64 | +- `*.md` - Individual documentation pages |
| 65 | +- `mkdocs.yml` - MkDocs configuration |
| 66 | +- `assets/` - Images and other static assets |
63 | 67 |
|
64 | | -- **Access credentials** (tokens or OAuth setup) |
65 | | -- **Available models** and their capabilities |
66 | | -- **Usage guidelines** and rate limits |
67 | | -- **API endpoints** for model interaction |
| 68 | +### Contributing |
68 | 69 |
|
69 | | -For detailed end-user documentation, see the [User Guide](user-guide.md) (coming soon). |
| 70 | +When adding new documentation: |
70 | 71 |
|
71 | | -## π Support |
| 72 | +1. Create or edit Markdown files in this directory |
| 73 | +2. Update the navigation in `mkdocs.yml` if adding new pages |
| 74 | +3. Test locally with `mkdocs serve` |
| 75 | +4. Commit your changes |
72 | 76 |
|
73 | | -For questions or issues: |
| 77 | +### Deployment |
74 | 78 |
|
75 | | -- **Administrators**: Open an issue on GitHub or check the [Installation Guide](installation.md) for troubleshooting |
76 | | -- **End Users**: Contact your platform administrator for access and usage questions |
77 | | -- **General**: Review the [Samples](samples/) for examples |
78 | | - |
79 | | -## π License |
80 | | - |
81 | | -This project is licensed under the Apache 2.0 License. |
| 79 | +The documentation is automatically deployed to GitHub Pages when changes are pushed to the main branch. The deployment is handled by the GitHub Actions workflow in `.github/workflows/docs.yml`. |
0 commit comments