Skip to content

Commit 5bff651

Browse files
committed
WIP
1 parent 23a5882 commit 5bff651

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Generate Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- autogenerate-docs
7+
8+
permissions: { }
9+
10+
jobs:
11+
generate-docs:
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
# - uses: actions/setup-python@v5
19+
# with:
20+
# python-version: '3.12'
21+
- run: pip install -r docs/build/requirements.txt
22+
- run: python build.py
23+
working-directory: ./docs/build
24+
- name: Create Pull Request
25+
uses: peter-evans/create-pull-request@v6
26+
with:
27+
commit-message: Update documentation
28+
branch: update-documentation
29+
delete-branch: true
30+
title: 'Update Documentation'
31+
body: 'This is the PR with the Autogenerated documentation'
32+
labels: 'documentation'

docs/build/build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
)
2020
renderer = MarkdownRenderer(
2121
source_linker=GithubSourceLinker(
22-
root=LIBRARY_ROOT_PATH.as_posix(), repo="quixio/quix-streams"
22+
root=LIBRARY_ROOT_PATH.as_posix(),
23+
repo="quixio/quix-streams",
24+
use_branch=True,
2325
),
2426
source_position="after signature",
2527
source_format="[[VIEW SOURCE]]({url})",

0 commit comments

Comments
 (0)