Skip to content

Commit 91c5891

Browse files
committed
add goatcounter analytics
1 parent 3d9ae58 commit 91c5891

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
# Build the documentation
3030
- run: pdoc src/benlink -o docs --logo /benlink/logo-transparent.png --logo-link "https://kylehusmann.com/benlink" --edit-url "benlink=https://github.com/khusmann/benlink/blob/main/src/benlink/"
3131
- run: cp assets/logo-transparent.png docs
32-
32+
- run: |
33+
find docs -type f -name "*.html" -exec sed -i '/<\/head>/i \
34+
<script data-goatcounter="https://benlink.goatcounter.com/count" \
35+
async src="//gc.zgo.at/count.js"></script>' {} +
3336
- uses: actions/upload-pages-artifact@v3
3437
with:
3538
path: docs/

0 commit comments

Comments
 (0)