Skip to content

Commit 62be141

Browse files
authored
feat: add API docs (#181)
1 parent db59946 commit 62be141

7 files changed

Lines changed: 57 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Run Tests
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515

1616
- name: Install uv
1717
uses: astral-sh/setup-uv@v5

.github/workflows/docker_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919

2020
- name: Set up QEMU
2121
uses: docker/setup-qemu-action@v3

.github/workflows/publish_docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy Documentation
2+
on:
3+
push:
4+
branches: [main]
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
18+
steps:
19+
- uses: actions/checkout@v5
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.12'
23+
- run: pip install mkdocs mkdocs-material mkdocstrings[python]
24+
- run: mkdocs build
25+
- uses: actions/configure-pages@v5
26+
- uses: actions/upload-pages-artifact@v3
27+
with:
28+
path: ./site
29+
- id: deployment
30+
uses: actions/deploy-pages@v4

.github/workflows/pypi_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Build distribution
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1313
with:
1414
persist-credentials: false
1515
- name: Install uv

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# deepset MCP

docs/reference.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# API Reference
2+
3+
::: deepset_mcp.api

mkdocs.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
site_name: deepset MCP Documentation
2+
theme:
3+
name: material
4+
features:
5+
- navigation.sections
6+
- navigation.expand
7+
- search.suggest
8+
9+
plugins:
10+
- search
11+
- mkdocstrings:
12+
handlers:
13+
python:
14+
options:
15+
docstring_style: sphinx # or numpy/sphinx
16+
show_source: false
17+
18+
nav:
19+
- Home: index.md
20+
- API Reference: reference.md

0 commit comments

Comments
 (0)