Skip to content

Commit fdf7732

Browse files
authored
Merge pull request #6 from redpanda-data/docs
2 parents b6aed22 + 37e95ea commit fdf7732

File tree

7 files changed

+42
-5
lines changed

7 files changed

+42
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
task: 'tests'
1919
- name: 'Run Ruff'
2020
task: 'lint'
21+
- name: 'Build docs'
22+
task: 'build-docs'
2123
name: ${{ matrix.variant.name }}
2224
runs-on: ubuntu-latest
2325
steps:

.github/workflows/docs.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy Documentation
2+
on:
3+
push:
4+
branches:
5+
- main
6+
permissions:
7+
contents: write
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
- name: Configure Git Credentials
15+
run: |
16+
git config user.name github-actions[bot]
17+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v5
20+
- name: Install Task
21+
uses: arduino/setup-task@v2
22+
- name: Deploy Documentation
23+
run: task deploy-docs

docs/reference/agents.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Agents module
2+
3+
::: redpanda.agents

docs/reference/index.md

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

docs/reference/runtime.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Runtime module
2+
3+
::: redpanda.runtime

mkdocs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ plugins:
2525
- mkdocstrings:
2626
handlers:
2727
python:
28-
paths: ["src/agents"]
28+
paths:
29+
- "src/redpanda"
2930
options:
3031
docstring_style: google
3132
# Shows links to other members in signatures
@@ -69,4 +70,4 @@ validation:
6970
anchors: warn
7071

7172
watch:
72-
- "src/agents"
73+
- "src/redpanda"

src/redpanda/runtime/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919

2020

2121
async def serve(agent: Agent) -> None:
22+
"""
23+
Serve an agent as a Redpanda Connect processor plugin.
24+
25+
This method runs for the entire lifetime of the server.
26+
27+
Args:
28+
agent: The agent to serve.
29+
"""
2230
addr = os.getenv("REDPANDA_CONNECT_AGENT_RUNTIME_MCP_SERVER")
2331
if addr:
2432
agent.mcp.append(SSEMCPEndpoint(addr))

0 commit comments

Comments
 (0)