Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove Hextra fork, put Umami code into custom template #18

Merged
merged 3 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
url: https://quic-go.net
pages_path: ./build/
cmd_params: '--buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification --header="User-Agent:curl/7.54.0" --timeout=20 --exclude=github.com/quic-go/docs'
cmd_params: '--buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification --header="User-Agent:curl/7.54.0" --timeout=20 --exclude=(github.com/quic-go/docs|analytics.seemann.io)'
- uses: burnett01/rsync-deployments@93f02b856fbeaf9a8fbfdd8ce1a4adfd0843f849 # v7.0.0
if: ${{ github.event_name == 'push' }}
with:
Expand Down
4 changes: 0 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@ module github.com/quic-go/docs

go 1.22.0

// Using the fork is only needed until the PR adding support for Umami is merged:
// https://github.com/imfing/hextra/pull/328
replace github.com/imfing/hextra => github.com/marten-seemann/hextra v0.0.0-20240321085151-430a25fbf9d1

require github.com/imfing/hextra v0.7.3 // indirect
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/marten-seemann/hextra v0.0.0-20240321085151-430a25fbf9d1 h1:GexfSlfqrqx3u/MS8P03u8KjaWMAfH23Afk63MhINJ8=
github.com/marten-seemann/hextra v0.0.0-20240321085151-430a25fbf9d1/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI=
github.com/imfing/hextra v0.7.3 h1:dVGA1NTcWe+FaUMdrawEypPfrrmulq5NoK0we3nC330=
github.com/imfing/hextra v0.7.3/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI=
9 changes: 5 additions & 4 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ params:
editURL:
enable: true
base: "https://github.com/quic-go/docs/tree/master/content"
umami:
serverURL: "analytics.seemann.io"
id: "c8e5d798-f535-4fea-906f-93da2e05a771"
trackerScriptName: "script.js"
analytics:
umami:
serverURL: "analytics.seemann.io"
id: "c8e5d798-f535-4fea-906f-93da2e05a771"
trackerScriptName: "script.js"
3 changes: 3 additions & 0 deletions layouts/partials/custom/head-end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- if and hugo.IsProduction .Site.Params.analytics.umami.serverURL .Site.Params.analytics.umami.id }}
<script async defer src="https://{{ .Site.Params.analytics.umami.serverURL }}/{{ .Site.Params.analytics.umami.trackerScriptName | default "umami.js" }}" data-website-id="{{ .Site.Params.analytics.umami.id }}" ></script>
{{- end }}
Loading