Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaramadze committed Jul 29, 2024
1 parent 23a5882 commit 5bff651
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Generate Documentation

on:
push:
branches:
- autogenerate-docs

permissions: { }

jobs:
generate-docs:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.12'
- run: pip install -r docs/build/requirements.txt
- run: python build.py
working-directory: ./docs/build
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update documentation
branch: update-documentation
delete-branch: true
title: 'Update Documentation'
body: 'This is the PR with the Autogenerated documentation'
labels: 'documentation'
4 changes: 3 additions & 1 deletion docs/build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
)
renderer = MarkdownRenderer(
source_linker=GithubSourceLinker(
root=LIBRARY_ROOT_PATH.as_posix(), repo="quixio/quix-streams"
root=LIBRARY_ROOT_PATH.as_posix(),
repo="quixio/quix-streams",
use_branch=True,
),
source_position="after signature",
source_format="[[VIEW SOURCE]]({url})",
Expand Down

0 comments on commit 5bff651

Please sign in to comment.