Skip to content

Commit e9773f1

Browse files
authored
refactor: Merge documentation repo with playbook (#10)
1 parent 84af1db commit e9773f1

File tree

29 files changed

+938
-152
lines changed

29 files changed

+938
-152
lines changed

.github/workflows/build-antora.yml

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,34 @@
11
# Reusable Workflow: Build Antora Documentation Site
22
# This workflow can be called from other workflows to build the Antora site.
3-
# Includes Kroki/Mermaid services for diagram rendering.
43

54
name: Build Antora Site
65

76
on:
8-
workflow_call:
9-
inputs:
10-
node-version:
11-
description: 'Node.js version to use'
12-
required: false
13-
type: string
14-
default: '24.3.0'
15-
playbook-file:
16-
description: 'Path to Antora playbook file'
17-
required: false
18-
type: string
19-
default: 'antora-playbook.yml'
20-
outputs:
21-
build-path:
22-
description: 'Path to the built site directory'
23-
value: 'build/site'
7+
workflow_call: {}
248

259
jobs:
2610
build:
2711
runs-on: ubuntu-latest
2812

29-
services:
30-
mermaid:
31-
image: yuzutech/kroki-mermaid:latest
32-
ports:
33-
- 8002:8002
34-
kroki:
35-
image: yuzutech/kroki:latest
36-
env:
37-
KROKI_MERMAID_HOST: mermaid
38-
ports:
39-
- 8000:8000
40-
options: >-
41-
--health-cmd "curl -f http://localhost:8000/health || exit 1"
42-
--health-interval 10s
43-
--health-timeout 5s
44-
--health-retries 5
45-
4613
steps:
4714
- name: Checkout playbook source
4815
uses: actions/checkout@v6
4916

5017
- name: Setup Node.js
5118
uses: actions/setup-node@v6
5219
with:
53-
node-version: ${{ inputs.node-version }}
20+
node-version: 24
5421

5522
- name: Install Antora and Dependencies
5623
run: npm install
5724

25+
- name: Run docker compose
26+
uses: hoverkraft-tech/compose-action@05da55b2bb8a5a759d1c4732095044bd9018c050 # v2.4.3
27+
with:
28+
compose-file: './compose.yml'
29+
5830
- name: Generate Site
59-
run: npx antora generate --log-failure-level warn ${{ inputs.playbook-file }}
31+
run: npm run build
6032

6133
- name: Upload built site
6234
uses: actions/upload-artifact@v6

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/build/
2-
.cache/
3-
.idea/
4-
/node_modules/
1+
.idea
2+
build
3+
node_modules
4+
.cache

README.md

Lines changed: 11 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,25 @@
1-
# Antora Playbook
1+
# Agentic Layer Documentation
22

3-
A documentation site generator configuration that aggregates and publishes documentation from multiple Git repositories into a unified, searchable documentation website for the Agentic Layer ecosystem.
4-
5-
----
6-
7-
## Table of Contents
8-
9-
- [Getting Started](#getting-started)
10-
- [Configuration](#configuration)
11-
- [Publishing](#publishing)
12-
- [Contributing](#contributing)
13-
14-
----
3+
Documentation of the Agentic Layer ecosystem, built with Antora by aggregating content from multiple Git repositories.
154

165
## Getting Started
176

18-
### Installation
19-
207
Install all required dependencies:
218

22-
```bash
9+
```shell
2310
npm install
2411
```
2512

26-
### Starting the Documentation Build
13+
Start kroki backend for diagram generation:
14+
15+
```shell
16+
docker compose up -d
17+
```
2718

2819
Generate the documentation site:
2920

30-
```bash
31-
npx antora antora-playbook.yml
21+
```shell
22+
npm run build
3223
```
3324

3425
After successful completion, the generated documentation site will be available in the `build/site` directory.
@@ -37,86 +28,4 @@ Troubleshooting tips:
3728
- Ensure all referenced Git repositories and branches are accessible.
3829
- Clear the cache if you encounter issues: `rm -rf .cache/antora`
3930

40-
## Configuration
41-
42-
The project is configured through the `antora-playbook.yml` file, which defines:
43-
44-
### Site Configuration
45-
- **Title**: Agentic Layer Documentation
46-
- **URL**: https://docs.agentic-layer.ai
47-
- **Start Page**: home::index.adoc
48-
49-
### Content Sources
50-
Source repositories are defined in `content.sources` array of `antora-playbook.yml`.
51-
52-
### UI Configuration
53-
- Uses the default Antora UI theme from GitLab
54-
- Custom UI overrides are stored in `supplemental-ui/` directory
55-
- Navigation includes links to source Git repositories
56-
57-
### Output Configuration
58-
- Generated site output: `build/site/`
59-
- Cache directory: `.cache/antora/` (for performance optimization)
60-
61-
## Publishing
62-
The playbook is set up for GitHub Pages deployment defined in `./.github/workflows/deploy-docs.yml`.
63-
64-
## Contributing
65-
66-
### Adding New GitHub Repositories
67-
68-
To add a new GitHub repository as a documentation source to the antora-playbook:
69-
70-
1. **Repository Requirements**
71-
- Set up the following documentation structure in your new source repository `root`:
72-
```
73-
docs
74-
├── antora.yml
75-
└── modules
76-
└── ROOT
77-
├── nav.adoc
78-
├── pages
79-
│   └── index.adoc
80-
└── partials
81-
├── explanation.adoc
82-
├── how-to-guides.adoc
83-
├── reference.adoc
84-
└── tutorials.adoc
85-
86-
```
87-
88-
- `antora.yml` describes the component. Example:
89-
```yaml
90-
name: <COMPONENT_NAME>
91-
title: <COMPONENT_TITLE>
92-
version: main # or your versioning scheme
93-
start_page: ROOT:index.adoc
94-
nav:
95-
- modules/ROOT/nav.adoc
96-
```
97-
98-
2. **Update antora-playbook.yml**
99-
- Add a new entry to the `content.sources` array
100-
- Specify the GitHub repository URL
101-
- Define which branches to include (use `['feature/*']` for development, `[main]` for production)
102-
- Set the `start_path` if documentation is not in the root (typically `docs`)
103-
104-
Example:
105-
```yaml
106-
- url: https://github.com/agentic-layer/your-new-repo.git
107-
branches: ['feature/*'] # Change to [main] when production-ready
108-
start_path: docs
109-
```
110-
111-
3. **Test the Configuration**
112-
- Run `npx antora antora-playbook.yml` locally to verify the build works
113-
- Check that the new documentation appears correctly in the generated site
114-
- Ensure all links and cross-references function properly
115-
116-
117-
### Development Guidelines
118-
119-
- Follow the existing Antora playbook configuration patterns
120-
- Test documentation builds locally before pushing changes
121-
- Ensure all referenced Git repositories and branches are accessible; i.e. verfy repository access and that branches exist
122-
- Update branch references from `feature/*` to `main` when components are production-ready
31+
The project is configured through the `antora-playbook.yml` file.

antora-playbook.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ site:
99
content:
1010
edit_url: false # Disable "Edit this page" links
1111
sources:
12-
- url: https://github.com/agentic-layer/documentation.git
13-
branches: [main]
14-
start_path: home/docs
15-
- url: https://github.com/agentic-layer/documentation.git
16-
branches: [main]
17-
start_path: architecture/docs
12+
- url: ./
13+
branches: HEAD
14+
start_paths:
15+
- home/docs
16+
- architecture/docs
1817
- url: https://github.com/agentic-layer/agent-runtime-operator.git
1918
branches: [main]
2019
start_path: docs

architecture/docs/antora.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: architecture
2+
title: Agentic Layer Architecture
3+
version: main
4+
start_page: ROOT:index.adoc
5+
nav:
6+
- modules/ROOT/nav.adoc
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include::architecture:ROOT:partial$architecture-contents.adoc[]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
= Agentic Layer Architecture
2+
3+
include::architecture:ROOT:partial$architecture-contents.adoc[]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
** xref:architecture:introduction:index.adoc[Introduction and Goals]
2+
// ** xref:architecture:constraints:index.adoc[Architecture Constraints]
3+
** xref:architecture:context:index.adoc[System Scope and Context]
4+
// ** xref:architecture:solution-strategy:index.adoc[Solution Strategy]
5+
** xref:architecture:building-blocks:index.adoc[Building Block View]
6+
// ** xref:architecture:runtime:index.adoc[Runtime View]
7+
// ** xref:architecture:deployment:index.adoc[Deployment View]
8+
** xref:architecture:crosscutting:index.adoc[Cross-cutting Concepts]
9+
// ** xref:architecture:decisions:index.adoc[Architecture Decisions]
10+
// ** xref:architecture:quality:index.adoc[Quality Requirements]
11+
// ** xref:architecture:risks:index.adoc[Risks and Technical Debts]
12+
** xref:architecture:glossary:index.adoc[Glossary]

0 commit comments

Comments
 (0)