Skip to content

fix(pages): link the docs the site publishes, and gate that it does - #430

Merged
scttfrdmn merged 5 commits into
mainfrom
fix/landing-page-links-to-docs
Aug 14, 2026
Merged

scttfrdmn merged 5 commits into
mainfrom
fix/landing-page-links-to-docs

Conversation

@scttfrdmn

@scttfrdmn scttfrdmn commented Aug 14, 2026 •

Copy link
Copy Markdown
Owner

#429 deployed. Verifying the live site turned up a defect it shipped: the landing page links nothing under /docs/.

200  https://objectfs.io/docs/
200  https://objectfs.io/docs/features/read-ahead/
200  https://objectfs.io/docs/design/conditional-write-compatibility/

…and every href on the landing page:

/  #install  #integrity  #limits  #main-content  #what
assets/favicon.svg  css/style.css
https://github.com/scttfrdmn/objectfs#readme      ← "Documentation", in the footer
...

The nav has no docs entry at all, and the footer's "Documentation" points at GitHub's rendered README. The documentation site this workflow exists to publish has no entry point but a typed URL.

Why nothing caught it

  • TestLandingPageIsDeployedWithItsAssets skips docs/ — correctly, since no such directory exists in web/; mkdocs assembles it into _site/docs.
  • pages.yml asserts _site/docs/index.html exists, not that anything points at it.
  • A link checker over the built site would report zero broken links.

The failure is an absent link, which is invisible to every check that starts from the links that are present. That is the whole reason this gets a test rather than just a fix.

The fix

docs/ in the nav and in the footer, with the footer's "Documentation" repointed from GitHub to the published site. TestLandingPageLinksToTheDocs asserts both surfaces carry it, and separately that "Documentation" does not point at GitHub — the docs are published from this repository now, and two documentation destinations with no rule for which is current is the arrangement that let four non-existent install channels survive in docs-platform/. Both mutations fail the intended test, with both assertions firing independently.

Verification

  • go build ./... && gofmt -l . && go vet ./... && golangci-lint run — clean
  • go test -race ./internal/config/ — clean; 2 new mutations caught
  • Rendered locally against a docs/ stub: mobile menu at 375px opens with the added link, desktop nav has room at 900px and 1280px

One note on method: the first narrow screenshots looked like the hamburger had been pushed off-screen. It had not — headless Chrome has a capture-width floor around 500px, so a 375px request laid out wider and cropped. A geometry probe in a sized iframe reports the hamburger at display: flex, inside the viewport, at every width down to 375, and rendering the page in a 375px iframe shows it correctly. Worth recording because the artifact is convincing and looks exactly like a responsive bug.

The same edge was missing in the other direction

Checked /docs/ for links back out and found none. Material points its header logo and title at the docs index by default — a link to the page the reader is already on — so every page mkdocs built linked only inward. A reader arriving from a search result was inside a documentation subdirectory with no exit to the project's front page.

extra.homepage: https://objectfs.io/ fixes it. Verified against a real build rather than asserted: with mkdocs-material, mkdocs-minify-plugin and mike installed the way pages.yml installs them, mkdocs build --strict is clean and both the header logo and the mobile drawer title carry href=https://objectfs.io/ — on the index and on a deep page (features/read-ahead/).

Gated by TestTheDocsLinkBackToTheLandingPage, for the same reason as the inbound half: removing the key breaks nothing any other check can see. --strict still succeeds, the tree is still complete, every internal link still resolves, and the only difference is that the one edge out of the tree is gone.

The check matches the whole line, not a substring — and that was found by mutation, not by writing it correctly. The first version used strings.Contains, which homepage: https://objectfs.io/docs/ satisfies while restoring the defect exactly. The comment claiming that trap was covered was sitting directly above the code that did not cover it. Three mutants now fail:

mutant caught
key removed from extra: ✅
homepage pointed at /docs/ ✅
homepage pointed at GitHub ✅

The first deploy of objectfs.io served every page under /docs/ and the landing
page pointed at none of them. Its nav and footer both sent a reader to
github.com/scttfrdmn/objectfs#readme, so the documentation site pages.yml exists
to publish had no entry point but a typed URL.

Nothing in the PR that added it could have caught this. TestLandingPageIsDeployed
WithItsAssets skips `docs/` because there is no such directory in web/ — mkdocs
assembles it — the workflow asserts _site/docs/index.html exists rather than that
anything points at it, and a link checker over the built site would have found
zero broken links. The failure is an absent link, invisible to every check that
starts from the links that are present.

So TestLandingPageLinksToTheDocs asserts both surfaces carry it, and that
"Documentation" does not point back at GitHub: the docs are published from this
repository now, and two documentation destinations with no rule for which is
current is the arrangement that let four non-existent install channels survive in
docs-platform/. Both mutations fail the intended test.

Verified in a 375px iframe that the mobile menu still opens with the added link,
and at 900 and 1280 that the desktop nav has room for it. The narrow screenshots
that first looked like an overflow were a headless capture-width floor, not a
layout bug — the geometry probe reports the hamburger at display:flex inside the
viewport at every width down to 375.
… gated too

The absent link had two directions and the first deploy shipped both. The landing
page pointed at none of /docs/ — fixed earlier in this branch — and every page mkdocs
built pointed only inward, because Material links its header logo and title to the
docs index, which is a link to the page the reader is already on. A reader arriving
from a search result was inside a documentation subdirectory with no exit to the
project's front page.

extra.homepage now names the apex. Verified against a real build, not asserted: with
mkdocs-material, mkdocs-minify-plugin and mike installed as pages.yml installs them,
--strict builds clean and both the header logo and the mobile drawer title carry
href=https://objectfs.io/ on the index and on a deep page.

Gated, because removing the key breaks nothing any other check can see: --strict
still succeeds, the tree is still complete, and every internal link still resolves.
The only difference is that the one edge out of the tree is gone again, which is the
same shape of failure as the inbound half.

The check matches the whole line rather than a substring. The first version used
strings.Contains, which `homepage: https://objectfs.io/docs/` satisfies while
restoring the defect exactly — and the comment claiming that trap was covered was
sitting directly above the code that did not cover it. Mutation found it. Three
mutants now fail: key removed, homepage pointed at /docs/, homepage pointed at
GitHub.
scttfrdmn added a commit that referenced this pull request Aug 14, 2026
…433)

* ci: stop install-script from throwing away the output it asserts on

The success branch captured the install output in a command substitution without
`|| true`, so under `set -e` a failing install killed the step at the assignment
and `echo "$out"` never ran. The log then held only bash's

  /opt/ofs/bin/objectfs: No such file or directory
  Process completed with exit code 127

and none of the three ::error:: messages below it — messages written specifically
for the runs where they would now never be printed. The refusal branch above already
has `|| true` for exactly this reason.

Found while diagnosing a transient rockylinux:9 failure on #431 whose only diff was
a toolchain line. The same job passed on main and on #430 at the same time, and the
rerun was green, so the failure was a flake — but the flake's cause is unrecoverable
because the step discarded the evidence. A job whose assertions can only be read
when they pass reports the same non-answer this job exists to reject.

The idempotency step below has the same shape and does not need the same fix: its
substitution ends in `[ ... ] && echo SAME || echo DIFFERENT`, which exits 0
regardless.

* docs(install): objectfs.io is served now, and that is not why the repo host is absent

install.sh's header said "Both objectfs.io and packages.objectfs.io resolve to
registrar parking IPs", which stopped being true when #429 put the landing page and
the docs on Pages. The conclusion is unchanged and the reason it is unchanged is the
part worth writing down: Porkbun answers a wildcard, so packages.objectfs.io resolves
exactly like every other name under the domain and completes no TLS handshake.
Resolution was never the evidence — which is the same argument the landing-page
domain test exists to make.
@scttfrdmn
scttfrdmn merged commit 5727d4b into main Aug 14, 2026
42 checks passed
@scttfrdmn
scttfrdmn deleted the fix/landing-page-links-to-docs branch August 14, 2026 04:04
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