repos / starfx

supercharged async flow control library.
git clone https://github.com/neurosnap/starfx.git

commit
c10a5a7
parent
8cc044f
author
Eric Bower
date
2024-11-18 04:52:11 +0000 UTC
chore: cache bust css
5 files changed,  +8, -5
M docs/Makefile
+1, -1
1@@ -12,7 +12,7 @@ ssg:
2 	cp ./static/* ./public
3 .PHONY: ssg
4 
5-local: ssg
6+dev: ssg
7 	rsync -vr ./public/ erock@pgs.sh:/starfx-local
8 .PHONY: dev
9 
M docs/go.mod
+1, -1
1@@ -4,7 +4,7 @@ go 1.22
2 
3 // replace github.com/picosh/pdocs => /home/erock/dev/pico/pdocs
4 
5-require github.com/picosh/pdocs v0.0.0-20240621181009-3827cd3af2d3
6+require github.com/picosh/pdocs v0.0.0-20241118044720-1a43b70d33b7
7 
8 require (
9 	github.com/alecthomas/chroma v0.10.0 // indirect
M docs/go.sum
+2, -2
 1@@ -6,8 +6,8 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
 2 github.com/dlclark/regexp2 v1.4.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc=
 3 github.com/dlclark/regexp2 v1.10.0 h1:+/GIL799phkJqYW+3YbOd8LCcbHzT0Pbo8zl70MHsq0=
 4 github.com/dlclark/regexp2 v1.10.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
 5-github.com/picosh/pdocs v0.0.0-20240621181009-3827cd3af2d3 h1:+/rt+j32CsEh49LAMKnX4GTVaIVlOLAcDX6SsYWKt+4=
 6-github.com/picosh/pdocs v0.0.0-20240621181009-3827cd3af2d3/go.mod h1:KXO3Z0EVdA811AX6mlK4lwFDT+KgmegRVrEmZU5uLXU=
 7+github.com/picosh/pdocs v0.0.0-20241118044720-1a43b70d33b7 h1:bFTqN2+VzAvv3+///We9tgKsZt84lcEAi9Jp9YmDV20=
 8+github.com/picosh/pdocs v0.0.0-20241118044720-1a43b70d33b7/go.mod h1:KXO3Z0EVdA811AX6mlK4lwFDT+KgmegRVrEmZU5uLXU=
 9 github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
10 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
11 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
M docs/main.go
+3, -0
 1@@ -2,6 +2,8 @@ package main
 2 
 3 import (
 4 	"log/slog"
 5+	"math/rand"
 6+	"strconv"
 7 
 8 	"github.com/picosh/pdocs"
 9 )
10@@ -150,6 +152,7 @@ func main() {
11 		Out:      "./public",
12 		Tmpl:     "./tmpl",
13 		PageTmpl: "post.page.tmpl",
14+		CacheId:  strconv.Itoa(rand.Intn(10000)),
15 	}
16 
17 	err := config.GenSite()
M docs/tmpl/base.layout.tmpl
+1, -1
1@@ -10,7 +10,7 @@
2     <link href="/logo.png" rel="icon" sizes="any" type="image/png"/>
3     <link rel="stylesheet" href="https://pico.sh/syntax.css" />
4     <link rel="stylesheet" href="https://pico.sh/smol.css" />
5-    <link rel="stylesheet" href="/main.css" />
6+    <link rel="stylesheet" href="/main.css?v={{.CacheId}}" />
7     {{template "meta" .}}
8   </head>
9