Skip to content

Commit 8f99fc8

Browse files
committed
Fixing mkdocs site
1 parent 013323e commit 8f99fc8

File tree

16 files changed

+173
-301
lines changed

16 files changed

+173
-301
lines changed

β€Ž.github/workflows/docs.ymlβ€Ž

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,22 @@ jobs:
3232
- name: Setup Pages
3333
uses: actions/configure-pages@v4
3434

35-
- name: Setup Node.js
36-
uses: actions/setup-node@v4
35+
- name: Setup Python
36+
uses: actions/setup-python@v4
3737
with:
38-
node-version: '18'
38+
python-version: '3.11'
3939

40-
- name: Install dependencies
40+
- name: Install MkDocs and plugins
4141
run: |
42-
npm install -g @antora/cli@3.1.1 @antora/site-generator-default@3.1.1
43-
npm install -g asciidoctor
42+
pip install mkdocs
43+
pip install mkdocs-material
44+
pip install mkdocs-git-revision-date-localized-plugin
4445
4546
- name: Build documentation
4647
run: |
47-
# Convert markdown files to asciidoc for better Antora support
48-
find docs -name "*.md" -exec sh -c '
49-
file="$1"
50-
dir=$(dirname "$file")
51-
base=$(basename "$file" .md)
52-
asciidoc_file="$dir/$base.adoc"
53-
54-
# Convert markdown to asciidoc
55-
pandoc "$file" -f markdown -t asciidoc -o "$asciidoc_file"
56-
57-
# Add front matter for Antora
58-
sed -i "1i\\:page-layout: article\\n:page-partial: true\\n" "$asciidoc_file"
59-
' _ {} \;
60-
61-
# Build the site using docs.yaml
62-
antora docs.yaml
48+
# Build with MkDocs using the configuration in docs/mkdocs.yml
49+
cd docs
50+
mkdocs build --site-dir ../build/site
6351
6452
- name: Upload artifact
6553
uses: actions/upload-pages-artifact@v3

β€Ž.gitignoreβ€Ž

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@ pip-delete-this-directory.txt
3737
htmlcov/
3838
apps/frontend/.env.local
3939
apps/backend/.env
40-
CLAUDE.md
40+
CLAUDE.md
41+
42+
# Docs build and site directories
43+
docs/build/
44+
docs/site/

β€Ždocs.yamlβ€Ž

Lines changed: 0 additions & 14 deletions
This file was deleted.

β€Ždocs/README.mdβ€Ž

Lines changed: 49 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,79 @@
11
# MaaS Platform Documentation
22

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.
44

5-
## πŸ“š Documentation Overview
5+
## Building the Documentation Locally
66

7-
### πŸš€ Getting Started
7+
To build and preview the documentation website locally, follow these steps:
88

9-
- **[Installation Guide](installation.md)** - Complete platform deployment instructions
10-
- **[Getting Started](getting-started.md)** - Quick start guide after installation
9+
### Prerequisites
1110

12-
## Architecture and Components
11+
- Python 3.11 or higher
12+
- pip (Python package manager)
1313

14-
- **[Architecture](architecture.md)** - Overview of the MaaS Platform architecture
15-
- **[Observability](observability.md)** - Overview of the MaaS Platform observability components
14+
### Installation
1615

17-
### βš™οΈ Configuration & Management
16+
1. Install MkDocs and required plugins:
1817

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+
```
2223

23-
### πŸ”§ Advanced Administration
24+
### Building and Serving
2425

25-
- **[Observability](observability.md)** - Monitoring, metrics, and dashboards
26+
1. Navigate to the docs directory (where `mkdocs.yml` is located):
2627

28+
```bash
29+
cd /path/to/maas-billing/docs
30+
```
2731

28-
### πŸ‘₯ End Users
32+
2. Start the development server:
2933

30-
- **[User Guide](user-guide.md)** - How end users interact with the platform
34+
```bash
35+
mkdocs serve
36+
```
3137

32-
## πŸš€ Quick Start for Administrators
38+
3. Open your browser and navigate to `http://127.0.0.1:8000`
3339

34-
### πŸ“Ή New to MaaS? Watch Our Installation Video
40+
The documentation will automatically reload when you make changes to the source files.
3541

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
3743

38-
### Administrator Getting Started Steps
44+
To build the static site files:
3945

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+
```
4449

45-
## πŸ“‹ Prerequisites for Administrators
50+
This will create a `site/` directory with the generated HTML files.
4651

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
5153

52-
## πŸ—οΈ Platform Components
54+
The documentation is configured using `mkdocs.yml` in this directory. This file contains:
5355

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
5960

60-
## πŸ‘₯ For End Users
61+
### File Structure
6162

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
6367

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
6869

69-
For detailed end-user documentation, see the [User Guide](user-guide.md) (coming soon).
70+
When adding new documentation:
7071

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
7276

73-
For questions or issues:
77+
### Deployment
7478

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`.
File renamed without changes.
File renamed without changes.

β€Ždocs/content/index.mdβ€Ž

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# MaaS Platform Documentation
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.
4+
5+
## πŸ“š Documentation Overview
6+
7+
### πŸš€ Getting Started
8+
9+
- **[Installation Guide](installation.md)** - Complete platform deployment instructions
10+
- **[Architecture](architecture.md)** - Overview of the MaaS Platform architecture
11+
12+
### βš™οΈ Configuration & Management
13+
14+
- **[Gateway Setup](gateway-setup.md)** - Setting up authentication and rate limiting
15+
- **[Tier Management](tier-management.md)** - Configuring subscription tiers and access control
16+
- **[Model Access Guide](model-access.md)** - Managing model access and policies
17+
18+
### πŸ”§ Advanced Administration
19+
20+
- **[Observability](observability.md)** - Monitoring, metrics, and dashboards
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,4 +274,4 @@ After deploying the infrastructure:
274274
275275
1. **Configure tiers**: See [Tier Management](tier-management.md) for access control setup
276276
2. **Set up monitoring**: Enable observability components in overlays
277-
3. **Start development**: See the main [README](../README.md) for frontend/backend setup
277+
3. **Start development**: See the main [README](https://github.com/redhat-ai-ml/maas-billing/blob/main/README.md) github page setup
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
Β (0)