Skip to content

feat(site): replace Jekyll with a Hugo site and new landing page - #188

Merged
ryanlewis merged 3 commits into
mainfrom
hugo-site
Sep 5, 2026
Merged

ryanlewis merged 3 commits into
mainfrom
hugo-site

Conversation

@ryanlewis

@ryanlewis ryanlewis commented Sep 5, 2026 •

Copy link
Copy Markdown
Owner

Replaces the jekyll-theme-chirpy site under docs/ with a themeless Hugo 0.165 site, and gives things.rlew.io the approved landing page.

What changed

docs/ is now a Hugo site with no theme and no external theme module:

docs/
  hugo.toml
  content/          _index.md (landing) + install, commands, agents,
                    configuration, about
  layouts/          index.html, _default/single.html, partials, note shortcode,
                    render-table hook
  assets/css/       site.css, served through Hugo Pipes with fingerprinting + SRI
  static/           CNAME, favicons, img/

Gone with Jekyll: Gemfile (and the html-proofer dev dependency), _config.yml, _data/, _includes/, _tabs/, assets/js/data/search.json, index.md, avatar.svg. docs/.mise.toml pins hugo = "0.165.0" instead of ruby, and Renovate's ruby <4 pin goes too — it existed only for Chirpy.

The pages

The landing page is the approved design: hero with the version badge and a copy-to-clipboard install command, a terminal mock, three cards, the agent section, and an install strip whose three cards each copy their command. Copy-to-clipboard is about 20 lines of inline JS with an execCommand fallback, no framework.

The docs pages keep the layout from the approved docs mockup — sidebar, prose column, "on this page" — plus prev/next links. The sidebar is generated from the real content: the Commands group is every H2 of commands.md, read through .Fragments.Headings, so it cannot drift from the page.

Documentation copy is unchanged

Prose was moved, not rewritten. The only edits to the five content pages are front matter, the Liquid ({{ site.repository }}, {{ site.baseurl }}, relative_url) resolved to literals, and the kramdown {: .prompt-* } callouts converted to a note shortcode styled like the callout box in the design. git diff origin/main...HEAD on those files shows nothing else.

index.md's Quickstart section moved verbatim into install.md under its own H2, which is what the sidebar's "Quickstart" entry links to. Its shields.io badge block and "Where next" list are the only copy dropped — both are navigation the new nav and sidebar replace.

URLs

/install/, /commands/, /agents/, /configuration/ and /about/ all keep working, set explicitly with url: front matter. The site stays at the root of things.rlew.io and CNAME moves to docs/static/ so Hugo copies it into the output.

The two demo GIFs move from docs/assets/img/ (which is Hugo's Pipes directory, not a published one) to docs/static/img/, so /img/demo-agent.gif on the agents page resolves. That is the one README change: its inline demo image path follows the file.

Verification

cd docs && hugo --minify --gc --baseURL https://things.rlew.io/ — the exact command the Pages workflow now runs — succeeds with no warnings on the pinned 0.165.0. All six pages plus CNAME and both GIFs are in public/. The output contains no leftover Liquid, and every internal link, heading anchor and image reference in the built HTML resolves; checked programmatically across all pages. The landing page's text, diffed word-for-word against the approved mockup, is identical.

make test and make lint are green. internal/config/docs_test.go read the configuration page from docs/_tabs/, so its path had to follow the move — without that fix the suite was red.

Note

The hero badge version in hugo.toml is hand-maintained; nothing checks it against the latest tag. Worth a follow-up if the site should track releases automatically.

Swaps jekyll-theme-chirpy for a themeless Hugo 0.165 site under docs/,
built with `hugo --minify --gc`.

The landing page implements the approved design: hero, terminal mock,
three cards, agent section, and an install strip whose three commands
copy to the clipboard. The docs pages keep their existing copy and gain
a sidebar, an on-this-page column driven by .TableOfContents, and
prev/next links.

Documentation prose is unchanged. Only the Jekyll-specific bits were
converted: `{{ site.repository }}` and `{{ site.baseurl }}` resolved to
literals, and the two kramdown `{: .prompt-* }` callouts became a `note`
shortcode styled like the design's callout box. index.md's Quickstart
section moved verbatim into install.md, where the sidebar links it.

The site stays at the root of things.rlew.io and /install/, /commands/,
/configuration/ and /about/ keep working.

Renovate's ruby <4 pin went with Chirpy.
internal/config/docs_test.go read the configuration page from
docs/_tabs/, which the Hugo move renamed to docs/content/. All three
tests in that file failed on this branch until now.

Also from review: fail the build when assets/css/site.css cannot be
resolved, rather than silently publishing an unstyled site, and put the
configured locale in <html lang> instead of a hardcoded "en".
@ryanlewis
ryanlewis merged commit e32a46c into main Sep 5, 2026
10 checks passed
@ryanlewis
ryanlewis deleted the hugo-site branch September 5, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant