diff --git a/.dockerignore b/.dockerignore index 8cc828e..55e6045 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,6 @@ .git .github tests -gothui-web +tendui-web *_test.go README.md diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 7d86e12..aebcc3d 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -27,11 +27,11 @@ jobs: - name: Vet run: go vet ./... - name: Build deployment image - run: docker build --build-arg VERSION="$(git describe --tags --long --dirty --always)" -t gothui-web:ci . + run: docker build --build-arg VERSION="$(git describe --tags --long --dirty --always)" -t tendui-web:ci . - name: Smoke-test the deployed image run: | - docker run --detach --name gothui-web-ci -p 127.0.0.1:8080:8080 gothui-web:ci - trap 'docker logs gothui-web-ci; docker rm -f gothui-web-ci' EXIT + docker run --detach --name tendui-web-ci -p 127.0.0.1:8080:8080 tendui-web:ci + trap 'docker logs tendui-web-ci; docker rm -f tendui-web-ci' EXIT curl --fail --max-time 5 --retry 10 --retry-all-errors --retry-delay 1 --retry-max-time 20 http://127.0.0.1:8080/healthz curl --fail http://127.0.0.1:8080/ | grep -F 'Start building' curl --fail http://127.0.0.1:8080/site.css > /dev/null diff --git a/.gitignore b/.gitignore index a4ca302..04d3f91 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /tests/results/* !/tests/results/.gitkeep -/gothui-web +/tendui-web /tests/browser/node_modules/ diff --git a/Dockerfile b/Dockerfile index 059f281..94c5ac8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,16 +2,16 @@ FROM golang:1.27.3-alpine AS build WORKDIR /src COPY go.mod go.sum ./ COPY vendor ./vendor -COPY main.go docs.go docs_templ.go assets.go brand.go ./ +COPY *.go ./ COPY static ./static COPY content ./content COPY library-version.json ./ ARG VERSION=2026.1.0-dev -RUN CGO_ENABLED=0 GOPROXY=off go build -mod=vendor -trimpath -ldflags="-s -w -X main.version=${VERSION}" -o /gothui-web . +RUN CGO_ENABLED=0 GOPROXY=off go build -mod=vendor -trimpath -ldflags="-s -w -X main.version=${VERSION}" -o /tendui-web . FROM scratch -COPY --from=build /gothui-web /gothui-web +COPY --from=build /tendui-web /tendui-web USER 65532:65532 ENV PORT=8080 EXPOSE 8080 -ENTRYPOINT ["/gothui-web"] +ENTRYPOINT ["/tendui-web"] diff --git a/LICENSE b/LICENSE index 888a5a3..995ce5f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2026 GothUI contributors +Copyright (c) 2026 TendUI contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index e4bdfcf..5073b50 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,29 @@ -# GothUI Web +# TendUI Web -GothUI +TendUI -The documentation and examples website for [GothUI](https://github.com/Tend-Stack/GothUI): -semantic CSS and typed templ components, embedded in your Go binary. +The documentation and examples website for [TendUI](https://github.com/Tend-Stack/TendUI): +beautiful interfaces with no frontend build pipeline. Pure CSS and semantic HTML +work with any stack; first-class Go and templ support embeds the stylesheet +inside your Go binary. -The documentation composes GothUI’s typed `AppShell` and `Prose` components +The documentation composes TendUI’s typed `AppShell` and `Prose` components with its embedded semantic stylesheet. Guide content uses Go HTML templates; -the landing page retains its own branding. Catalogs and demos share GothUI’s -example handler. All assets are embedded. No Node, npm, JavaScript, +the landing page keeps its own hero styling. Every page, including the mounted +catalog and demos, renders one shared `SiteHeader` (`site_header.templ`) and +reads the same `tendui_theme` cookie, which defaults to dark. Catalogs and demos +share TendUI’s example handler through `site.HandlerWithOptions`. All assets are embedded. No Node, npm, JavaScript, external fonts, tracking, database, or runtime downloads are required to build or serve it. The test-only browser suite is separate from the shipped application. Documentation lives under `/docs`, the searchable 36-component reference under `/catalog`, application examples under `/examples`, and native state/appearance -controls under `/playground`. The public canonical origin is https://gothui.com. +controls under `/playground`. The public canonical origin is https://tendui.com. The library and templ runtime are vendored at the exact revision recorded in `library-version.json`. Docker builds use `GOPROXY=off` and need no private-repo credentials. To refresh from a clean library checkout, run -`python3 tools/vendor-library.py /path/to/GothUI`. This uses the local Go module +`python3 tools/vendor-library.py /path/to/TendUI`. This uses the local Go module cache for already-downloaded dependencies, records a tag or exact pseudo-version, and removes its temporary proxy and cache. Commit the resulting module metadata, manifest, and vendor directory together. No local `replace` ships in the repo. @@ -40,13 +44,13 @@ GET/HEAD and conditional requests. Unknown paths return 404. ```sh go test -race ./... go vet ./... -CGO_ENABLED=0 go build -trimpath -o gothui-web . -./gothui-web -version +CGO_ENABLED=0 go build -trimpath -o tendui-web . +./tendui-web -version ``` ## Tend deployment -Connect `https://github.com/Tend-Stack/GothUI-Web`, branch `main`, in Tend. +Connect `https://github.com/Tend-Stack/TendUI-web`, branch `main`, in Tend. Select the repository-root `Dockerfile`, container port **8080**, and HTTP health path **/healthz**. No secrets, volumes, or additional services are required. Enable GitHub push deployments in Tend; this repository does not call a deploy @@ -56,8 +60,8 @@ The image runs as a non-root user and contains only the static Go executable. For a local container check: ```sh -docker build --build-arg VERSION="$(git describe --tags --long --dirty --always)" -t gothui-web . -docker run --rm -p 8080:8080 gothui-web +docker build --build-arg VERSION="$(git describe --tags --long --dirty --always)" -t tendui-web . +docker run --rm -p 8080:8080 tendui-web ``` Version lines use `YEAR.RELEASE.FIX`, initially `2026.1.0`; Git tags use `v2026.1.0`. @@ -66,7 +70,7 @@ Release/development builds should pass `git describe --tags --long --dirty` as GitHub Actions tests the HTTP contract, runs vet, and builds the Dockerfile. Tend may deploy independently of CI; check both statuses after publication. -The documentation and homepage include canonical metadata for gothui.com; +The documentation and homepage include canonical metadata for tendui.com; `/sitemap.xml` lists the primary documentation and example routes. ## Scope @@ -84,7 +88,7 @@ policy. This keeps proxies from rewriting versioned Go commands as email links or injecting email-decoding scripts. Production smoke checks must inspect the actual HTML through the public domain as well as the origin/container response. -For the fixed public host `gothui.com`, Tend terminates HTTPS before forwarding +For the fixed public host `tendui.com`, Tend terminates HTTPS before forwarding HTTP to the container. The website adapts validated presentation URLs for the shared demo handler and marks its cookies Secure. It preserves Origin-based request protection and does not trust arbitrary forwarded headers. Localhost diff --git a/assets.go b/assets.go index 42405da..47342e8 100644 --- a/assets.go +++ b/assets.go @@ -15,7 +15,8 @@ func assetURL(name, source string) string { var siteStylesheetURL = assetURL("site", "static/site.css") var docsStylesheetURL = assetURL("docs", "static/docs.css") -var libraryStylesheetURL = assetURL("gothui", "library-version.json") +var headerStylesheetURL = assetURL("header", "static/header.css") +var libraryStylesheetURL = assetURL("tendui", "library-version.json") // Resolve artwork references before hashing CSS or HTML so a brand update also // changes the referring stylesheet URL. Friendly image URLs remain downloadable. diff --git a/content/accessibility.html b/content/accessibility.html index 6afc9ac..31eb9fd 100644 --- a/content/accessibility.html +++ b/content/accessibility.html @@ -4,5 +4,5 @@

Test the complete workflow