Skip to content

Commit 0ddcd52

Browse files
Merge pull request #611 from laughingman7743/fix-docs-version-607
Fix documentation version display
2 parents 8bf8d85 + 1c9303a commit 0ddcd52

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0 # Fetch all history for version detection
2527
- name: Setup Pages
2628
uses: actions/configure-pages@v5
2729
- uses: astral-sh/setup-uv@v5
@@ -30,6 +32,7 @@ jobs:
3032
enable-cache: true
3133
- run: |
3234
uv sync --group dev
35+
uv build
3336
make docs
3437
- name: Upload artifact
3538
uses: actions/upload-pages-artifact@v3

docs/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,10 @@ def get_version():
8989
html_css_files = [
9090
"custom.css",
9191
]
92+
93+
# Furo theme options
94+
html_theme_options = {
95+
"source_repository": "https://github.com/laughingman7743/PyAthena/",
96+
"source_branch": "master",
97+
"source_directory": "docs/",
98+
}

0 commit comments

Comments
 (0)