Skip to content

Commit b6605e9

Browse files
committed
chore: add action to add edit this page links
1 parent e26a3b8 commit b6605e9

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/deploy-userguide-latest.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,25 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v3
2323

24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: '8.0'
28+
coverage: none
29+
2430
# Build the latest User Guide
2531
- name: Build with Sphinx
2632
uses: ammaraskar/sphinx-action@0.4
2733
with:
2834
docs-folder: user_guide_src/
2935

36+
- name: Add "Edit this page" links
37+
run: |
38+
cd user_guide_src
39+
# Fix permissions
40+
sudo chown -R runner:docker build/html/
41+
php add-edit-this-page build/html/
42+
3043
# Create an artifact of the html output
3144
- name: Upload artifact
3245
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)