xonecas.io
8356
Wx

www-xonecas-io / commit 2ec11b6

site serve renders every page on request, and htmx swaps them in place of full reloads (1048)

The static build is gone: site build, public/ and search.json. internal/server reads the data
file and each repo's git once, and a newer data file shows on the next request. /projects
filters, sorts and pages on the server. The header search asks /suggest. Clones use git's smart
HTTP. projects.js, pager.js and search.js are replaced by htmx and Go.

Co-Authored-By: Claude Opus 5.5

Sean Caetano Martin2026-11-08 2ec11b64596d7d4452aa2e72cbbc2ef22b9f2b6f parent 9adc174

79 files changed

This diff is too big to show in full. The first 1000 lines are below, and every file is listed with its counts.

.gitignore+0−1
@@ -1,4 +1,3 @@
11 bin/
2-public/
32 repos/
43 data/
Makefile+4−6
@@ -1,7 +1,7 @@
11 TAILWIND_VERSION := v4.3.3
22 REPOS ?= repos
33
4-.PHONY: site import index build serve test
4+.PHONY: site import index serve test
55
66 bin/tailwindcss:
77 mkdir -p bin
@@ -18,11 +18,9 @@ import:
1818 index:
1919 go run ./cmd/site index -sources sources.txt -store $(REPOS)
2020
21-build: bin/tailwindcss
22- go run ./cmd/site build -data data/projects.json -out public
23-
24-serve: build
25- go run ./cmd/site serve -dir public
21+# serve runs the site on :8080, with the Rats devnotes script for Ctrl+click tickets.
22+serve: bin/tailwindcss
23+ go run ./cmd/site serve -data data/projects.json -devnotes
2624
2725 test:
2826 go test ./...
README.md+12−11
@@ -1,11 +1,11 @@
11 # xonecas.io
22
3-My projects and their git history, as a static site. It reads git repos and renders `public/`, which any static
4-server can host, including the `<name>.git` folders you `git clone` from.
3+My projects and their git history, as a site. `site serve` reads the git repos and renders each page when it is asked
4+for, with htmx swapping pages in place of full reloads. It also serves `git clone` of every project at `/<name>.git`.
55
66 ```
77 git push over SSH ─► git's shell ─► repos/xonecas.io/<name>.git ─┐
8- ├─► site index ─► site build ─► public/
8+ ├─► site index ─► data/projects.json ─► site serve
99 sources.txt ─► site import ─► repos/<host>/<owner>/<repo>.git ───┤
1010 overrides.txt ──┘
1111 ```
@@ -16,14 +16,14 @@ server can host, including the `<name>.git` folders you `git clone` from.
1616 make site # builds bin/site
1717 make import # mirrors every repo in sources.txt into repos/
1818 make index # reads repos/ into data/projects.json
19-make serve # builds public/ and serves it on http://vm:8080
19+make serve # serves the site on http://vm:8080
2020 ```
2121
2222 Run everything from this folder. `bin/site help` lists the commands, and `bin/site <command> -h` lists a command's flags.
2323
2424 ## Push a repo from anywhere
2525
26-Pushing over SSH creates the repo on its first push, the way `gh repo create` would, and each push rebuilds the site.
26+Pushing over SSH creates the repo on its first push, the way `gh repo create` would, and each push updates the site.
2727 **Once, on the server:** make `bin/site` the login shell of the user pushes go to. Here that's `git`, with this repo at `~git/site`
2828 and `make site` run there:
2929
@@ -54,16 +54,16 @@ If it says `does not appear to be a git repository`, you logged in as a user who
5454 | Stop showing a repo | `bin/site remote rm <path or url>` (a hosted repo's data is kept) |
5555 | List the repos | `bin/site remote list` |
5656 | Fetch every added repo again | `make import` |
57-| Rebuild the site | `make index build` |
57+| Update the site | `make index` (the running site reads the new data on its next request) |
5858
59-A push to a hosted repo rebuilds `public/` by itself; its log is `repos/xonecas.io/<name>.git/build.log`.
60-After `remote add` or `rm`, run `make index build`.
59+A push to a hosted repo runs `site index` by itself; its log is `repos/xonecas.io/<name>.git/build.log`.
60+After `remote add` or `rm`, run `make index`.
6161
6262 `repos/` is git-ignored. On the VM it is lost when the VM is recreated, so host repos on the machine that serves the site.
6363
6464 ## Fix how a project shows
6565
66-Edit `overrides.txt`, one rule per line, then `make index build`:
66+Edit `overrides.txt`, one rule per line, then `make index`:
6767
6868 ```
6969 merge <remote URL> <remote URL> make two remotes one project
@@ -77,10 +77,11 @@ tag <name> +frontend -backend add or drop tags
7777
7878 | Path | Holds |
7979 | --- | --- |
80-| `cmd/site` | the `site` command: import, remote, shell, index, build, serve, help |
80+| `cmd/site` | the `site` command: import, remote, shell, index, serve, help |
8181 | `internal/store` | the repo store: `sources.txt`, mirrors, hosted repos, the hosts' metadata |
8282 | `internal/project` | groups repos into projects, and their tags, description and overrides |
83-| `internal/site` | renders every page into `public/` |
83+| `internal/server` | serves the site: picks each page, reads git once per data file, and serves clones |
84+| `internal/site` | renders each page, and the htmx parts in its templates |
8485 | `internal/repo` | runs git against a bare repo |
8586 | `tickets/` | the Rats board |
8687
cmd/site/devnotes.go+12−18
@@ -4,9 +4,7 @@ import (
44 "bytes"
55 _ "embed"
66 "net/http"
7- "os"
8- "path"
9- "path/filepath"
7+ "net/http/httptest"
108 "strings"
119 )
1210
@@ -15,25 +13,21 @@ import (
1513 //go:embed devnotes.js
1614 var devnotesJS []byte
1715
18-// devnotes serves dir like next, with the devnotes script inlined into every HTML page.
19-// Only the dev server uses it, so built pages never carry the script.
20-func devnotes(dir string, next http.Handler) http.Handler {
16+// devnotes serves next with the devnotes script inlined into every page a browser loads. Pages end in a slash.
17+// htmx requests are left alone: the script from the first page keeps running when htmx swaps the body.
18+func devnotes(next http.Handler) http.Handler {
2119 tag := append(append([]byte("<script>"), devnotesJS...), "</script></body>"...)
2220 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
23- p := path.Clean(r.URL.Path)
24- if strings.HasSuffix(r.URL.Path, "/") {
25- p = path.Join(p, "index.html")
26- }
27- var b []byte
28- err := os.ErrNotExist
29- if strings.HasSuffix(p, ".html") {
30- b, err = os.ReadFile(filepath.Join(dir, filepath.FromSlash(p)))
31- }
32- if err != nil {
21+ if r.Header.Get("HX-Request") != "" || !strings.HasSuffix(r.URL.Path, "/") {
3322 next.ServeHTTP(w, r)
3423 return
3524 }
36- w.Header().Set("Content-Type", "text/html; charset=utf-8")
37- w.Write(bytes.Replace(b, []byte("</body>"), tag, 1))
25+ rec := httptest.NewRecorder()
26+ next.ServeHTTP(rec, r)
27+ for k, v := range rec.Header() {
28+ w.Header()[k] = v
29+ }
30+ w.WriteHeader(rec.Code)
31+ w.Write(bytes.Replace(rec.Body.Bytes(), []byte("</body>"), tag, 1))
3832 })
3933 }
cmd/site/help.go+4−5
@@ -7,7 +7,7 @@ import (
77 )
88
99 // usage is what site help prints. Run site from the site folder, where sources.txt is.
10-const usage = `site builds xonecas.io from git repos. Run it in the site folder; README.md has more.
10+const usage = `site serves xonecas.io from git repos. Run it in the site folder; README.md has more.
1111
1212 Repos
1313 site remote list list the repos the site shows
@@ -18,8 +18,7 @@ Repos
1818 Site
1919 site import fetch every added remote again
2020 site index read the repos into data/projects.json
21- site build render public/
22- site serve serve public/ on :8080
21+ site serve serve the site on :8080, from the repos and data/projects.json
2322 site -c <command> what sshd runs when site is the git user's shell: git push, git clone and remote
2423
2524 site <command> -h a command's flags
@@ -31,12 +30,12 @@ Set up pushing, once, on the server
3130
3231 Push a new repo, from any machine
3332 git remote add origin git@xonecas.io:my-thing.git
34- git push -u origin main the first push creates the repo; each push rebuilds public/
33+ git push -u origin main the first push creates the repo; each push updates the site
3534 ssh git@xonecas.io remote list the same remote commands, over SSH
3635
3736 Show a repo you already have
3837 bin/site remote add ~/code/other-thing
39- bin/site index && bin/site build
38+ bin/site index the site shows it on the next request
4039
4140 See the site
4241 make serve then open http://vm:8080
cmd/site/main.go+14−22
@@ -1,11 +1,10 @@
1-// Command site builds xonecas.io from bare git repos and serves it locally.
1+// Command site serves xonecas.io from bare git repos, and manages the repos.
22 //
33 // site import [-sources sources.txt] [-store repos] [-jobs 8] [-meta data/meta.json]
44 // site remote [-sources sources.txt] [-store repos] [-meta data/meta.json] list | new <name> | add <url or path> | rm <url or path>
55 // site -c <command>, run by sshd when site is the git user's login shell
66 // site index [-sources sources.txt] [-store repos] [-overrides overrides.txt] [-meta data/meta.json] [-out data/projects.json]
7-// site build [-data data/projects.json] [-out public] [-tailwind bin/tailwindcss]
8-// site serve [-dir public] [-addr :8080]
7+// site serve [-data data/projects.json] [-tailwind bin/tailwindcss] [-addr :8080] [-devnotes]
98 package main
109
1110 import (
@@ -19,7 +18,7 @@ import (
1918 "sync"
2019
2120 "xonecas.io/site/internal/project"
22- "xonecas.io/site/internal/site"
21+ "xonecas.io/site/internal/server"
2322 "xonecas.io/site/internal/store"
2423 )
2524
@@ -80,29 +79,22 @@ func main() {
8079 if err := index(*sources, *root, *overrides, *meta, *out); err != nil {
8180 log.Fatal(err)
8281 }
83- case "build":
84- data := fs.String("data", "data/projects.json", "the data file, from site index")
85- out := fs.String("out", "public", "output folder")
86- tailwind := fs.String("tailwind", "bin/tailwindcss", "tailwind binary, empty to skip CSS")
82+ case "serve":
83+ data := fs.String("data", "data/projects.json", "the data file, from site index; a newer one is read on the next request")
84+ tailwind := fs.String("tailwind", "bin/tailwindcss", "tailwind binary that compiles site.css, empty to skip CSS")
85+ addr := fs.String("addr", ":8080", "listen address, on every interface so the host can reach the VM")
86+ notes := fs.Bool("devnotes", false, "add the Rats devnotes script to every page, for development")
8787 fs.Parse(os.Args[2:])
88- var projects []project.Project
89- b, err := os.ReadFile(*data)
90- if err == nil {
91- err = json.Unmarshal(b, &projects)
92- }
88+ srv, err := server.New(*data, *tailwind)
9389 if err != nil {
9490 log.Fatal(err)
9591 }
96- if err := site.Build(projects, *out, *tailwind); err != nil {
97- log.Fatal(err)
92+ var h http.Handler = srv
93+ if *notes {
94+ h = devnotes(h)
9895 }
99- log.Printf("built %s into %s", *data, *out)
100- case "serve":
101- dir := fs.String("dir", "public", "folder to serve")
102- addr := fs.String("addr", ":8080", "listen address, on every interface so the host can reach the VM")
103- fs.Parse(os.Args[2:])
104- log.Printf("serving %s on %s", *dir, *addr)
105- log.Fatal(http.ListenAndServe(*addr, devnotes(*dir, http.FileServer(http.Dir(*dir)))))
96+ log.Printf("serving %s on %s", *data, *addr)
97+ log.Fatal(http.ListenAndServe(*addr, h))
10698 default:
10799 printUsage(os.Stderr, nil)
108100 os.Exit(2)
cmd/site/remote.go+1−1
@@ -90,7 +90,7 @@ func newRepo(name string, urls []string, sources, root, meta string) error {
9090 }
9191 wd, _ := os.Getwd()
9292 lock, _ := filepath.Abs(filepath.Join(root, ".build.lock"))
93- build := fmt.Sprintf("%s index -sources %s -store %s -meta %s && %[1]s build", exe, sources, root, meta)
93+ build := fmt.Sprintf("%s index -sources %s -store %s -meta %s", exe, sources, root, meta)
9494 hook := fmt.Sprintf("unset GIT_DIR\ncd '%s' && flock '%s' sh -c '%s' < /dev/null >> '%s' 2>&1 &", wd, lock, build, filepath.Join(dir, "build.log"))
9595 if err := store.Create(dir, hook); err != nil {
9696 return err
internal/server/clone.go+34−0
@@ -0,0 +1,34 @@
1+package server
2+
3+import (
4+ "net/http"
5+ "net/http/cgi"
6+ "os/exec"
7+ "path/filepath"
8+ "strings"
9+)
10+
11+// clone serves `git clone <site>/<name>.git` from the project's repo, with git's smart HTTP protocol.
12+// git http-backend serves only fetches: it refuses a push from a visitor with no login, and so does clone.
13+// It also serves none of the repo's own files, such as its config.
14+func (s *Server) clone(w http.ResponseWriter, r *http.Request, name string) {
15+ st, err := s.state()
16+ if err != nil {
17+ http.Error(w, err.Error(), http.StatusInternalServerError)
18+ return
19+ }
20+ i, err := st.project(name)
21+ if err != nil || strings.Contains(r.URL.RawQuery+r.URL.Path, "receive-pack") {
22+ http.NotFound(w, r)
23+ return
24+ }
25+ dir, err := filepath.Abs(st.shown[i].Sources[0].Dir)
26+ git, lerr := exec.LookPath("git")
27+ if err != nil || lerr != nil {
28+ http.Error(w, "git is missing", http.StatusInternalServerError)
29+ return
30+ }
31+ h := &cgi.Handler{Path: git, Args: []string{"http-backend"}, Root: "/" + name + ".git",
32+ Env: []string{"GIT_PROJECT_ROOT=" + dir, "GIT_HTTP_EXPORT_ALL=1"}}
33+ h.ServeHTTP(w, r)
34+}
internal/server/files.go+44−0
@@ -0,0 +1,44 @@
1+package server
2+
3+import (
4+ "mime"
5+ "net/http"
6+ "path"
7+ "strings"
8+
9+ "xonecas.io/site/internal/site"
10+)
11+
12+// files serves what is not a page: the assets, robots.txt, sitemap.xml and llms.txt, and clones of <name>.git.
13+// Anything else is the not-found page.
14+func (s *Server) files(w http.ResponseWriter, r *http.Request) {
15+ name, rest, _ := strings.Cut(strings.TrimPrefix(r.URL.Path, "/"), "/")
16+ if strings.HasSuffix(name, ".git") {
17+ s.clone(w, r, strings.TrimSuffix(name, ".git"))
18+ return
19+ }
20+ if r.Method != http.MethodGet && r.Method != http.MethodHead || rest != "" {
21+ s.notFound(w, r)
22+ return
23+ }
24+ st, err := s.state()
25+ if err != nil {
26+ http.Error(w, err.Error(), http.StatusInternalServerError)
27+ return
28+ }
29+ b, ok := s.assets[name]
30+ if text, seo := st.seo[name]; seo {
31+ b, ok = []byte(text), true
32+ }
33+ if !ok {
34+ s.notFound(w, r)
35+ return
36+ }
37+ w.Header().Set("Content-Type", mime.TypeByExtension(path.Ext(name)))
38+ if v := r.URL.Query().Get("v"); v != "" && v == site.Version(name) {
39+ w.Header().Set("Cache-Control", "public, max-age=31536000, immutable") // a new build gets a new ?v=
40+ } else {
41+ w.Header().Set("Cache-Control", "no-cache")
42+ }
43+ w.Write(b)
44+}
internal/server/pages.go+57−0
@@ -0,0 +1,57 @@
1+package server
2+
3+import (
4+ "net/http"
5+ "strconv"
6+
7+ "xonecas.io/site/internal/site"
8+)
9+
10+func home(_ http.ResponseWriter, _ *http.Request, st *state) (string, any, error) {
11+ return "index.html", site.NewHomeData(st.shown, st.rows), nil
12+}
13+
14+// projects is /projects. A change to the filters form replaces the address with this view's, defaults left out,
15+// so the address bar and back button follow the list without an entry per keystroke.
16+func projects(w http.ResponseWriter, r *http.Request, st *state) (string, any, error) {
17+ page := site.NewProjectsPage(st.rows, r.URL.Query())
18+ if r.Header.Get("HX-Trigger") == "filters" {
19+ w.Header().Set("HX-Replace-Url", page.URL)
20+ }
21+ return "projects.html", page, nil
22+}
23+
24+func activity(_ http.ResponseWriter, r *http.Request, st *state) (string, any, error) {
25+ n, err := pageNumber(r)
26+ if err != nil {
27+ return "", nil, err
28+ }
29+ feed, err := st.feedOf()
30+ if err != nil {
31+ return "", nil, err
32+ }
33+ page, err := site.NewActivityPage(st.shown, feed, r.PathValue("year"), n)
34+ return "activity.html", page, err
35+}
36+
37+func style(http.ResponseWriter, *http.Request, *state) (string, any, error) {
38+ return "style.html", site.StyleData(), nil
39+}
40+
41+// suggest is the header search's suggestions for ?q=, a fragment htmx puts in #suggest.
42+func suggest(_ http.ResponseWriter, r *http.Request, st *state) (string, any, error) {
43+ return "suggest", site.Suggest(st.shown, r.URL.Query().Get("q")), nil
44+}
45+
46+// pageNumber is the {page} in the path, 1 when there is none.
47+func pageNumber(r *http.Request) (int, error) {
48+ p := r.PathValue("page")
49+ if p == "" {
50+ return 1, nil
51+ }
52+ n, err := strconv.Atoi(p)
53+ if err != nil {
54+ return 0, site.ErrNotFound
55+ }
56+ return n, nil
57+}
internal/server/project.go+104−0
@@ -0,0 +1,104 @@
1+package server
2+
3+import (
4+ "mime"
5+ "net/http"
6+ "path"
7+ "strings"
8+
9+ "xonecas.io/site/internal/repo"
10+ "xonecas.io/site/internal/site"
11+)
12+
13+func projectHome(_ http.ResponseWriter, r *http.Request, st *state) (string, any, error) {
14+ i, f, err := projectFiles(r, st)
15+ if err != nil {
16+ return "", nil, err
17+ }
18+ page, err := site.NewProjectPage(st.shown[i], st.rows[i], f.tree, f.kids)
19+ return "project.html", page, err
20+}
21+
22+// browse is a folder under tree/ or a file under blob/. Their addresses end in a slash.
23+func browse(_ http.ResponseWriter, r *http.Request, st *state) (string, any, error) {
24+ i, f, err := projectFiles(r, st)
25+ if err != nil {
26+ return "", nil, err
27+ }
28+ p := strings.TrimSuffix(r.PathValue("path"), "/")
29+ if f.tree.Dirs[p] != strings.Contains(r.URL.Path, "/tree/") {
30+ return "", nil, site.ErrNotFound
31+ }
32+ page, err := site.NewBrowsePage(st.shown[i].Name, st.shown[i].Sources[0].Dir, st.rows[i], f.tree, f.kids, p)
33+ return "browse.html", page, err
34+}
35+
36+func commits(_ http.ResponseWriter, r *http.Request, st *state) (string, any, error) {
37+ i, log, err := projectLog(r, st)
38+ if err != nil {
39+ return "", nil, err
40+ }
41+ n, err := pageNumber(r)
42+ if err != nil {
43+ return "", nil, err
44+ }
45+ page, err := site.NewLogPage(st.shown[i].Name, st.rows[i], log, n)
46+ return "commits.html", page, err
47+}
48+
49+func commit(_ http.ResponseWriter, r *http.Request, st *state) (string, any, error) {
50+ i, log, err := projectLog(r, st)
51+ if err != nil {
52+ return "", nil, err
53+ }
54+ page, err := site.NewCommitPage(st.shown[i].Name, st.rows[i], log, r.PathValue("hash"))
55+ return "commit.html", page, err
56+}
57+
58+// raw serves a file on HEAD as itself, for README images. It runs no scripts, as an SVG could have.
59+func (s *Server) raw(w http.ResponseWriter, r *http.Request) {
60+ st, err := s.state()
61+ if err != nil {
62+ http.Error(w, err.Error(), http.StatusInternalServerError)
63+ return
64+ }
65+ i, f, err := projectFiles(r, st)
66+ p := r.PathValue("path")
67+ if _, ok := f.tree.Files[p]; err != nil || !ok {
68+ s.notFound(w, r)
69+ return
70+ }
71+ b, err := repo.Blob(st.shown[i].Sources[0].Dir, "HEAD:"+p)
72+ if err != nil {
73+ http.Error(w, err.Error(), http.StatusInternalServerError)
74+ return
75+ }
76+ kind := mime.TypeByExtension(path.Ext(p))
77+ if kind == "" {
78+ kind = http.DetectContentType(b)
79+ }
80+ w.Header().Set("Content-Type", kind)
81+ w.Header().Set("Content-Security-Policy", "sandbox")
82+ w.Header().Set("Cache-Control", "no-cache")
83+ w.Write(b)
84+}
85+
86+// projectFiles is the project {name} and its files.
87+func projectFiles(r *http.Request, st *state) (int, files, error) {
88+ i, err := st.project(r.PathValue("name"))
89+ if err != nil {
90+ return 0, files{}, err
91+ }
92+ f, err := st.files(i)
93+ return i, f, err
94+}
95+
96+// projectLog is the project {name} and its commits.
97+func projectLog(r *http.Request, st *state) (int, []site.LogEntry, error) {
98+ i, err := st.project(r.PathValue("name"))
99+ if err != nil {
100+ return 0, nil, err
101+ }
102+ log, err := st.log(i)
103+ return i, log, err
104+}
internal/server/server.go+95−0
@@ -0,0 +1,95 @@
1+// Package server serves xonecas.io: every page rendered on request from the repos and the data file,
2+// the assets, and clones of each project.
3+package server
4+
5+import (
6+ "bytes"
7+ "errors"
8+ "log"
9+ "net/http"
10+ "sync"
11+
12+ "xonecas.io/site/internal/site"
13+)
14+
15+// Server is the site's HTTP handler.
16+type Server struct {
17+ data string // data/projects.json, from site index
18+ assets map[string][]byte // by path, from site.Assets
19+ mux *http.ServeMux
20+ mu sync.Mutex
21+ st *state
22+}
23+
24+// page renders one template with its data for a request, or fails with site.ErrNotFound.
25+type page func(w http.ResponseWriter, r *http.Request, st *state) (name string, data any, err error)
26+
27+// New loads the data file and compiles the assets with a tailwind binary ("" for none).
28+func New(data, tailwind string) (*Server, error) {
29+ assets, err := site.Assets(tailwind)
30+ if err != nil {
31+ return nil, err
32+ }
33+ s := &Server{data: data, assets: assets, mux: http.NewServeMux()}
34+ if _, err := s.state(); err != nil {
35+ return nil, err
36+ }
37+ for pattern, p := range map[string]page{
38+ "GET /{$}": home,
39+ "GET /projects/{$}": projects,
40+ "GET /activity/{$}": activity,
41+ "GET /activity/{year}/{$}": activity,
42+ "GET /activity/{year}/{page}/{$}": activity,
43+ "GET /style/{$}": style,
44+ "GET /suggest": suggest,
45+ "GET /projects/{name}/{$}": projectHome,
46+ "GET /projects/{name}/tree/{path...}": browse,
47+ "GET /projects/{name}/blob/{path...}": browse,
48+ "GET /projects/{name}/commits/{$}": commits,
49+ "GET /projects/{name}/commits/{page}/{$}": commits,
50+ "GET /projects/{name}/commit/{hash}/{$}": commit,
51+ } {
52+ s.mux.HandleFunc(pattern, s.render(p))
53+ }
54+ s.mux.HandleFunc("GET /projects/{name}/raw/{path...}", s.raw)
55+ s.mux.HandleFunc("/", s.files)
56+ return s, nil
57+}
58+
59+func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { s.mux.ServeHTTP(w, r) }
60+
61+// render serves p: the page, the not-found page for site.ErrNotFound, or a 500 for anything else.
62+// htmx asks for the same pages as a browser, and picks the part it swaps with hx-select.
63+func (s *Server) render(p page) http.HandlerFunc {
64+ return func(w http.ResponseWriter, r *http.Request) {
65+ st, err := s.state()
66+ name, data := "", any(nil)
67+ if err == nil {
68+ name, data, err = p(w, r, st)
69+ }
70+ code := http.StatusOK
71+ if errors.Is(err, site.ErrNotFound) {
72+ code, name, data, err = http.StatusNotFound, "notfound.html", nil, nil
73+ }
74+ var buf bytes.Buffer
75+ if err == nil {
76+ err = site.Render(&buf, name, data)
77+ }
78+ if err != nil {
79+ log.Printf("%s: %v", r.URL, err)
80+ http.Error(w, "Something broke. It is logged.", http.StatusInternalServerError)
81+ return
82+ }
83+ w.Header().Set("Content-Type", "text/html; charset=utf-8")
84+ w.Header().Set("Cache-Control", "no-cache")
85+ w.WriteHeader(code)
86+ w.Write(buf.Bytes())
87+ }
88+}
89+
90+// notFound serves the not-found page.
91+func (s *Server) notFound(w http.ResponseWriter, r *http.Request) {
92+ s.render(func(http.ResponseWriter, *http.Request, *state) (string, any, error) {
93+ return "", nil, site.ErrNotFound
94+ })(w, r)
95+}
internal/server/server_test.go+159−0
@@ -0,0 +1,159 @@
1+package server
2+
3+import (
4+ "encoding/json"
5+ "io"
6+ "net/http"
7+ "net/http/httptest"
8+ "os"
9+ "os/exec"
10+ "path/filepath"
11+ "strings"
12+ "testing"
13+
14+ "xonecas.io/site/internal/project"
15+)
16+
17+// gitRepo makes a repo with a README that links a doc and shows an image, and returns its git dir.
18+func gitRepo(t *testing.T) string {
19+ dir := t.TempDir()
20+ files := map[string]string{
21+ "README.md": "#Hello\n\n![logo](./img/logo.png) [docs](docs/) [guide](docs/guide.md#top) [web](https://x.io)\n",
22+ "img/logo.png": "\x89PNG\x00\n",
23+ "docs/guide.md": "guide\n",
24+ }
25+ for f, body := range files {
26+ os.MkdirAll(filepath.Join(dir, filepath.Dir(f)), 0o755)
27+ os.WriteFile(filepath.Join(dir, f), []byte(body), 0o644)
28+ }
29+ for _, args := range [][]string{{"init", "-q"}, {"add", "."}, {"-c", "user.name=xonecas", "-c", "user.email=x@x", "commit", "-qm", "first"}} {
30+ if out, err := exec.Command("git", append([]string{"-C", dir}, args...)...).CombinedOutput(); err != nil {
31+ t.Fatal(string(out))
32+ }
33+ }
34+ return filepath.Join(dir, ".git")
35+}
36+
37+// testServer serves a data file with project hello, from gitRepo, and a hidden fork.
38+func testServer(t *testing.T) *httptest.Server {
39+ src := []project.Source{{URL: "https://github.com/xonecas/hello.git", Dir: gitRepo(t), Branch: "main", Commits: 1}}
40+ projects := []project.Project{
41+ {Name: "hello", Sources: src, Info: project.Info{Readme: "README.md", Commits: 3, First: "2026-10-01", Last: "2026-11-01",
42+ Months: map[string]int{"2026-10": 2, "2026-11": 1}, Description: "says hi", Tags: []string{"pre-AI", "small", "frontend"}, Topics: []string{"go"}}},
43+ {Name: "a-fork", Sources: src, Info: project.Info{Hidden: "fork"}},
44+ }
45+ data := filepath.Join(t.TempDir(), "projects.json")
46+ b, _ := json.Marshal(projects)
47+ if err := os.WriteFile(data, b, 0o644); err != nil {
48+ t.Fatal(err)
49+ }
50+ srv, err := New(data, "")
51+ if err != nil {
52+ t.Fatal(err)
53+ }
54+ ts := httptest.NewServer(srv)
55+ t.Cleanup(ts.Close)
56+ return ts
57+}
58+
59+// get fetches path with headers, as key, value pairs, and returns the response with its body read.
60+func get(t *testing.T, ts *httptest.Server, path string, headers ...string) (*http.Response, string) {
61+ req, _ := http.NewRequest("GET", ts.URL+path, nil)
62+ for i := 0; i+1 < len(headers); i += 2 {
63+ req.Header.Set(headers[i], headers[i+1])
64+ }
65+ res, err := http.DefaultClient.Do(req)
66+ if err != nil {
67+ t.Fatal(err)
68+ }
69+ b, _ := io.ReadAll(res.Body)
70+ res.Body.Close()
71+ return res, string(b)
72+}
73+
74+func TestPages(t *testing.T) {
75+ ts := testServer(t)
76+ for path, wants := range map[string][]string{
77+ "/": {"All 1 projects", "/projects/hello/", "says hi", "Every month since 2026", `src="/egg.js?v=`, `src="/htmx.min.js?v=`, `hx-boost="true"`},
78+ "/projects/": {`<span id="shown">1</span>`, `value="frontend" class="sr-only peer">`, `form="filters"`, `hx-select="#results"`},
79+ "/projects/hello/": {`<h1 id="hello">Hello</h1>`, `src="/projects/hello/raw/img/logo.png"`, `href="/projects/hello/tree/docs/"`, `href="/projects/hello/blob/docs/guide.md/#top"`, `href="https://x.io"`, `git clone https://xonecas.io/hello.git`},
80+ "/activity/": {`href="/projects/hello/commit/`},
81+ "/activity/2026/": {"commits in 2026"},
82+ "/projects/hello/blob/img/logo.png/": {"Binary file, not shown."},
83+ "/projects/hello/blob/docs/guide.md/": {`<span id="L1"><a href="#L1">1</a>`},
84+ "/projects/hello/tree/docs/": {"guide.md"},
85+ "/projects/hello/commits/": {"1 commits", "first"},
86+ "/style/": {"Style"},
87+ "/llms.txt": {"[hello]"},
88+ } {
89+ res, body := get(t, ts, path)
90+ if res.StatusCode != 200 {
91+ t.Errorf("%s: %s", path, res.Status)
92+ }
93+ for _, want := range wants {
94+ if !strings.Contains(body, want) {
95+ t.Errorf("%s is missing %q", path, want)
96+ }
97+ }
98+ if strings.Contains(body, "a-fork") {
99+ t.Errorf("%s lists a hidden project", path)
100+ }
101+ }
102+ for _, path := range []string{"/projects/a-fork/", "/projects/hello/tree/README.md/", "/projects/hello/blob/docs/", "/projects/hello/commit/abc/", "/activity/1999/", "/activity/2026/9/", "/nope", "/a-fork.git/info/refs"} {
103+ if res, _ := get(t, ts, path); res.StatusCode != 404 {
104+ t.Errorf("%s: %s, want 404", path, res.Status)
105+ }
106+ }
107+ if res, body := get(t, ts, "/projects/hello/raw/img/logo.png"); res.Header.Get("Content-Type") != "image/png" || body != "\x89PNG\x00\n" {
108+ t.Errorf("raw logo.png: %s %q", res.Header.Get("Content-Type"), body)
109+ }
110+ if res, _ := get(t, ts, "/projects/hello"); res.Request.URL.Path != "/projects/hello/" {
111+ t.Errorf("/projects/hello went to %s, not /projects/hello/", res.Request.URL.Path)
112+ }
113+}
114+
115+// TestProjects filters /projects on the server, and a change to the filters form replaces the address with the view's.
116+func TestProjects(t *testing.T) {
117+ ts := testServer(t)
118+ for query, shown := range map[string]string{"?tag=backend": "0", "?tag=backend&tag=frontend": "1", "?q=hel": "1", "?q=go": "1", "?q=g": "0", "?from=2026-11": "1", "?to=0&from=0": "1"} {
119+ if _, body := get(t, ts, "/projects/"+query); !strings.Contains(body, `<span id="shown">`+shown+`</span>`) {
120+ t.Errorf("%s does not show %s projects", query, shown)
121+ }
122+ }
123+ res, _ := get(t, ts, "/projects/?tag=frontend&sort=recent&q=&from=0&to=1", "HX-Request", "true", "HX-Trigger", "filters")
124+ if got := res.Header.Get("HX-Replace-Url"); got != "/projects/?tag=frontend" {
125+ t.Errorf("HX-Replace-Url is %q", got)
126+ }
127+ if res, _ := get(t, ts, "/projects/?tag=frontend", "HX-Request", "true"); res.Header.Get("HX-Replace-Url") != "" {
128+ t.Error("a pager link replaced the address, so back skips the page it came from")
129+ }
130+}
131+
132+// TestSuggest is the fragment htmx puts under the header search.
133+func TestSuggest(t *testing.T) {
134+ ts := testServer(t)
135+ if _, body := get(t, ts, "/suggest?q=HE", "HX-Request", "true"); body != `<a href="/projects/hello/"><b>hello</b><span>says hi</span></a>` {
136+ t.Errorf("suggest he: %q", body)
137+ }
138+ if _, body := get(t, ts, "/suggest?q=g"); !strings.Contains(body, `href="/projects/?q=go"`) || strings.Contains(body, "<html") {
139+ t.Errorf("suggest g: %q", body)
140+ }
141+}
142+
143+// TestClone clones a project from the server, as a visitor would, and fails to push to it.
144+func TestClone(t *testing.T) {
145+ ts := testServer(t)
146+ dest := filepath.Join(t.TempDir(), "hello")
147+ if b, err := exec.Command("git", "clone", "--quiet", ts.URL+"/hello.git", dest).CombinedOutput(); err != nil {
148+ t.Fatal(string(b))
149+ }
150+ if _, err := os.Stat(filepath.Join(dest, "docs/guide.md")); err != nil {
151+ t.Error("the clone has no docs/guide.md")
152+ }
153+ if b, err := exec.Command("git", "-C", dest, "push", "--quiet", "origin", "HEAD:main2").CombinedOutput(); err == nil {
154+ t.Errorf("a push to the clone URL worked: %s", b)
155+ }
156+ if res, _ := get(t, ts, "/hello.git/config"); res.StatusCode == 200 {
157+ t.Error("the repo's config is served")
158+ }
159+}
internal/server/state.go+127−0
@@ -0,0 +1,127 @@
1+package server
2+
3+import (
4+ "encoding/json"
5+ "log"
6+ "os"
7+ "slices"
8+ "sync"
9+ "time"
10+
11+ "xonecas.io/site/internal/project"
12+ "xonecas.io/site/internal/site"
13+)
14+
15+// state is what the pages read: the shown projects from the data file, and what git says about each one,
16+// read once when a page first needs it. site index rewrites the data file after every push, import and
17+// remote change, and a newer data file starts a new state.
18+type state struct {
19+ mod time.Time
20+ shown []project.Project
21+ rows []site.ProjectRow
22+ named map[string]int // index into shown and rows
23+ seo map[string]string
24+ repos []repoState
25+ feed lazy[[]site.Commit]
26+}
27+
28+// repoState is what git says about one shown project.
29+type repoState struct {
30+ files lazy[files]
31+ log lazy[[]site.LogEntry]
32+}
33+
34+type files struct {
35+ tree site.Tree
36+ kids map[string][]site.TreeEntry
37+}
38+
39+// lazy is a value computed once, on first use.
40+type lazy[T any] struct {
41+ once sync.Once
42+ v T
43+ err error
44+}
45+
46+func (l *lazy[T]) get(f func() (T, error)) (T, error) {
47+ l.once.Do(func() { l.v, l.err = f() })
48+ return l.v, l.err
49+}
50+
51+// state is the current state, loaded again when the data file has changed. A data file that does not
52+// read, such as one site index is still writing, keeps the state there is.
53+func (s *Server) state() (*state, error) {
54+ fi, err := os.Stat(s.data)
55+ s.mu.Lock()
56+ defer s.mu.Unlock()
57+ if err == nil && s.st != nil && fi.ModTime().Equal(s.st.mod) {
58+ return s.st, nil
59+ }
60+ var st *state
61+ if err == nil {
62+ st, err = load(s.data, fi.ModTime())
63+ }
64+ if err != nil {
65+ if s.st != nil {
66+ log.Printf("keeping the loaded data: %v", err)
67+ return s.st, nil
68+ }
69+ return nil, err
70+ }
71+ s.st = st
72+ go st.feedOf() // the activity pages read every project's log
73+ return st, nil
74+}
75+
76+func load(path string, mod time.Time) (*state, error) {
77+ b, err := os.ReadFile(path)
78+ if err != nil {
79+ return nil, err
80+ }
81+ var projects []project.Project
82+ if err := json.Unmarshal(b, &projects); err != nil {
83+ return nil, err
84+ }
85+ shown := slices.DeleteFunc(projects, func(p project.Project) bool { return p.Hidden != "" })
86+ st := &state{mod: mod, shown: shown, rows: site.Rows(shown), named: map[string]int{}, seo: site.SEO(shown), repos: make([]repoState, len(shown))}
87+ for i, p := range shown {
88+ st.named[p.Name] = i
89+ }
90+ return st, nil
91+}
92+
93+// project is the index of the shown project name.
94+func (st *state) project(name string) (int, error) {
95+ i, ok := st.named[name]
96+ if !ok {
97+ return 0, site.ErrNotFound
98+ }
99+ return i, nil
100+}
101+
102+// files is the tree on HEAD of project i, and each folder's entries.
103+func (st *state) files(i int) (files, error) {
104+ return st.repos[i].files.get(func() (files, error) {
105+ t, err := site.ReadTree(st.shown[i].Sources[0].Dir)
106+ return files{t, site.Children(st.shown[i].Name, t)}, err
107+ })
108+}
109+
110+// log is every commit of project i, newest first.
111+func (st *state) log(i int) ([]site.LogEntry, error) {
112+ return st.repos[i].log.get(func() ([]site.LogEntry, error) { return site.ReadLog(st.shown[i]) })
113+}
114+
115+// feedOf is my commits across the shown projects, newest first.
116+func (st *state) feedOf() ([]site.Commit, error) {
117+ return st.feed.get(func() ([]site.Commit, error) {
118+ logs := make([][]site.LogEntry, len(st.shown))
119+ var err error
120+ for i := range st.shown {
121+ if logs[i], err = st.log(i); err != nil {
122+ return nil, err
123+ }
124+ }
125+ return site.Feed(st.rows, logs), nil
126+ })
127+}
internal/site/activity.go+43−37
@@ -1,8 +1,6 @@
11 package site
22
33 import (
4- "os"
5- "path/filepath"
64 "slices"
75 "strconv"
86 "strings"
@@ -30,60 +28,68 @@ type ActivityPage struct {
3028 Years []YearCount
3129 Months []Cell
3230 Days []Day
31+ Pager []PagerItem
3332 }
3433
3534 // perPage is how many commits an activity page shows.
3635 const perPage = 100
3736
38-// writeActivity writes /activity/<year>/ and /activity/<year>/<page>/ for every year from the first to the last commit,
39-// and /activity/ as the latest year's first page. feed is my commits across the shown projects.
40-func writeActivity(out string, shown []project.Project, feed []Commit) error {
41- if err := os.RemoveAll(filepath.Join(out, "activity")); err != nil { // years and pages that no longer exist go too
42- return err
37+// Feed is my commits in logs, the logs of the projects in rows, newest first.
38+func Feed(rows []ProjectRow, logs [][]LogEntry) []Commit {
39+ var feed []Commit
40+ for i, log := range logs {
41+ for _, c := range log {
42+ if project.Me[strings.ToLower(c.Author)] {
43+ feed = append(feed, Commit{rows[i].El, c.Short, c.Subject, c.Author, c.Date, "/projects/" + rows[i].El.Name + "/commit/" + c.Hash + "/"})
44+ }
45+ }
4346 }
47+ slices.SortStableFunc(feed, func(a, b Commit) int { return strings.Compare(b.Date, a.Date) })
48+ return feed
49+}
50+
51+// NewActivityPage is page n, from 1, of year ("" for the latest) in feed, my commits across the shown projects.
52+// Every year from the first commit to the last has pages, even an empty one.
53+func NewActivityPage(shown []project.Project, feed []Commit, year string, n int) (ActivityPage, error) {
4454 all, years := map[string]int{}, map[string]int{}
4555 first, last := "9999", "0000"
4656 for _, p := range shown {
47- for m, n := range p.Months {
48- all[m] += n
49- years[m[:4]] += n
57+ for m, c := range p.Months {
58+ all[m] += c
59+ years[m[:4]] += c
5060 }
5161 first, last = min(first, p.First[:4]), max(last, p.Last[:4])
5262 }
63+ if year == "" {
64+ year = last
65+ }
66+ if year < first || year > last || len(year) != 4 {
67+ return ActivityPage{}, ErrNotFound
68+ }
5369 var list []YearCount
5470 lo, _ := strconv.Atoi(first)
5571 hi, _ := strconv.Atoi(last)
56- for n := hi; n >= lo; n-- {
57- y := strconv.Itoa(n)
58- list = append(list, YearCount{y, years[y], level(years[y])})
72+ for y := hi; y >= lo; y-- {
73+ s := strconv.Itoa(y)
74+ list = append(list, YearCount{s, years[s], level(years[s])})
5975 }
60- slices.SortStableFunc(feed, func(a, b Commit) int { return strings.Compare(b.Date, a.Date) })
61- for _, y := range list {
62- var mine []Commit
63- for _, c := range feed {
64- if strings.HasPrefix(c.Date, y.Year) {
65- mine = append(mine, c)
66- }
76+ var mine []Commit
77+ for _, c := range feed {
78+ if strings.HasPrefix(c.Date, year) {
79+ mine = append(mine, c)
6780 }
68- pages := max(1, (len(mine)+perPage-1)/perPage)
69- for n := 1; n <= pages; n++ {
70- page := ActivityPage{y.Year, y.Count, n, pages, list, months(y.Year, all), days(mine[(n-1)*perPage : min(n*perPage, len(mine))])}
71- dir := filepath.Join(out, "activity", y.Year)
72- if n > 1 {
73- dir = filepath.Join(dir, strconv.Itoa(n))
74- }
75- paths := []string{filepath.Join(dir, "index.html")}
76- if y.Year == last && n == 1 {
77- paths = append(paths, filepath.Join(out, "activity", "index.html"))
78- }
79- for _, path := range paths {
80- if err := render(path, "activity.html", page); err != nil {
81- return err
82- }
83- }
81+ }
82+ pages := max(1, (len(mine)+perPage-1)/perPage)
83+ if n < 1 || n > pages {
84+ return ActivityPage{}, ErrNotFound
85+ }
86+ href := func(p int) string {
87+ if p == 1 {
88+ return "/activity/" + year + "/"
8489 }
90+ return "/activity/" + year + "/" + strconv.Itoa(p) + "/"
8591 }
86- return nil
92+ return ActivityPage{year, years[year], n, pages, list, months(year, all), days(mine[(n-1)*perPage : min(n*perPage, len(mine))]), Pager(n, pages, href)}, nil
8793 }
8894
8995 // days groups commits, newest first, by the day they were made.
internal/site/assets.go+17−23
@@ -6,12 +6,11 @@ import (
66 "io/fs"
77 "os"
88 "os/exec"
9- "path/filepath"
109 "strings"
1110 )
1211
1312 // versions maps each asset's path to a hash of its content. Pages link an asset with ?v=<hash>,
Cut short: this commit's diff is over 1000 lines.
internal/site/assets/site.css+6−4
Cut short: this commit's diff is over 1000 lines.
internal/site/browse.go+23−61
Cut short: this commit's diff is over 1000 lines.
internal/site/build.go+0−141
Cut short: this commit's diff is over 1000 lines.
internal/site/build_test.go+0−115
Cut short: this commit's diff is over 1000 lines.
internal/site/clone.go+0−25
Cut short: this commit's diff is over 1000 lines.
internal/site/clone_test.go+0−31
Cut short: this commit's diff is over 1000 lines.
internal/site/commits.go+22−48
Cut short: this commit's diff is over 1000 lines.
internal/site/home.go+2−1
Cut short: this commit's diff is over 1000 lines.
internal/site/page.go+8−35
Cut short: this commit's diff is over 1000 lines.
internal/site/pager.go+34−0
Cut short: this commit's diff is over 1000 lines.
internal/site/projects.go+178−0
Cut short: this commit's diff is over 1000 lines.
internal/site/prune.go+0−38
Cut short: this commit's diff is over 1000 lines.
internal/site/readme.go+5−8
Cut short: this commit's diff is over 1000 lines.
internal/site/render.go+59−0
Cut short: this commit's diff is over 1000 lines.
internal/site/rows.go+0−17
Cut short: this commit's diff is over 1000 lines.
internal/site/rows_test.go+14−0
Cut short: this commit's diff is over 1000 lines.
internal/site/search.go+30−26
Cut short: this commit's diff is over 1000 lines.
internal/site/seo.go+4−11
Cut short: this commit's diff is over 1000 lines.
internal/site/sidebar.go+2−2
Cut short: this commit's diff is over 1000 lines.
internal/site/sidebar_test.go+1−1
Cut short: this commit's diff is over 1000 lines.
internal/site/static/egg.js+8−4
Cut short: this commit's diff is over 1000 lines.
internal/site/static/htmx.min.js+1−0
Cut short: this commit's diff is over 1000 lines.
internal/site/static/pager.js+0−23
Cut short: this commit's diff is over 1000 lines.
internal/site/static/projects.js+0−64
Cut short: this commit's diff is over 1000 lines.
internal/site/static/search.js+0−50
Cut short: this commit's diff is over 1000 lines.
internal/site/style.go+2−2
Cut short: this commit's diff is over 1000 lines.
internal/site/templates/activity.html+2−3
Cut short: this commit's diff is over 1000 lines.
internal/site/templates/browse.html+1−1
Cut short: this commit's diff is over 1000 lines.
internal/site/templates/commit.html+1−1
Cut short: this commit's diff is over 1000 lines.
internal/site/templates/commits.html+1−1
Cut short: this commit's diff is over 1000 lines.
internal/site/templates/components.html+9−4
Cut short: this commit's diff is over 1000 lines.
internal/site/templates/index.html+1−1
Cut short: this commit's diff is over 1000 lines.
internal/site/templates/layout.html+4−2
Cut short: this commit's diff is over 1000 lines.
internal/site/templates/notfound.html+6−0
Cut short: this commit's diff is over 1000 lines.
internal/site/templates/project.html+1−1
Cut short: this commit's diff is over 1000 lines.
internal/site/templates/projects.html+17−15
Cut short: this commit's diff is over 1000 lines.
internal/site/templates/style.html+2−2
Cut short: this commit's diff is over 1000 lines.
tickets/1015-remotes-show-github-should-show-correctly-from.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1016-browsing-files-should-have-a-sidebar-for-easier.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1017-stars-is-github-data-not-git-let-s-remove-this.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1018-the-title-is-pinned-but-i-can-t-pin-or-unpin.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1019-repo-list-is-imcomplete.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1021-frontend-design-pass.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1023-hidden-or-renamed-projects-stay-in-public-after.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1024-markdown-code-snippets-are-not-syntax.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1026-browsers-keep-a-stale-site-css-after-a-rebuild.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1027-the-mocks-have-a-activity-page-lets-make-it-real.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1028-let-s-make-the-slider-more-prominent-and-cool.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1029-let-s-add-click-to-copy-to-clipboard-to-the.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1030-activity-and-projects-need-pagination.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1031-tags-need-to-be-much-more-specific-use.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1032-some-tags-look-completly-different-it-looks-bad.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1033-new-tags-are-missing-from-the-frontpage.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1036-seo-agent-accessibility.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1041-this-repo-doesn-t-appear-in-the-list.md+3−2
Cut short: this commit's diff is over 1000 lines.
tickets/1042-how-do-we-add-new-remotes.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1044-no-readme.md+3−3
Cut short: this commit's diff is over 1000 lines.
tickets/1046-site-build-panics-when-no-project-is-shown.md+2−1
Cut short: this commit's diff is over 1000 lines.
tickets/1047-git-push-waits-for-the-whole-site-rebuild.md+28−0
Cut short: this commit's diff is over 1000 lines.
tickets/1048-why-didn-t-we-use-htmx.md+102−0
Cut short: this commit's diff is over 1000 lines.
tickets/attachments/1048/header search suggestions from the server.png+0−0
Binary file, not shown.
tickets/attachments/1048/projects at 390px.png+0−0
Binary file, not shown.
tickets/attachments/1048/projects, mid-drag of the date range.png+0−0
Binary file, not shown.