Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
build:
name: Build website
runs-on: ubuntu-latest
env:
OUTPUT_DIR: _site
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -32,7 +34,15 @@ jobs:
run: go install go.abhg.dev/doc2go@latest

- name: Generate API reference
run: doc2go ./...
run: doc2go -internal -out ${{ env.OUTPUT_DIR }} -subdir api ./...

- name: Flatten doc2go structure
run: |
MODULE=$(go list -m)
OUTPUT_DIR="${{ env.OUTPUT_DIR }}"

mv "$OUTPUT_DIR/api/$MODULE"/* "$OUTPUT_DIR"/
rm -rf "$OUTPUT_DIR/api/$MODULE"

- name: Upload pages
uses: actions/upload-pages-artifact@v3
Expand Down
Loading