Skip to content

docs: fix GoFr brand casing in nav descriptions and search breadcrumbs#216

Closed
aryanmehrotra wants to merge 1 commit into
mainfrom
docs/gofr-brand-casing
Closed

docs: fix GoFr brand casing in nav descriptions and search breadcrumbs#216
aryanmehrotra wants to merge 1 commit into
mainfrom
docs/gofr-brand-casing

Conversation

@aryanmehrotra
Copy link
Copy Markdown
Member

The lowercase 'r' is the canonical brand mark (matches the logo). Two website-side spots had drifted to `GoFR` / `Gofr` / naively title-cased renderings.

Changes

`src/lib/navigation.js`

Seven `desc:` strings used `GoFR` through-out the navigation metadata. This is the website's standalone copy; the framework's `gofr/docs/navigation.js` overlays it during the framework-docs docker build, so when paired with gofr#3398 the fix lands in both layers.

`src/components/Search.jsx`

`prettifySegment` was naive Title Case, so search breadcrumbs rendered slugs like `gofr-vs-gin` as "Gofr Vs Gin" and `wrap-grpc` as "Wrap Grpc".

Added a small `PRETTY_TOKENS` map covering the brand mark and common acronyms; plain words still fall through to Title Case:

  • `gofr` → `GoFr`
  • `gofrcli` → `GoFr CLI`
  • `vs` → `vs` (lowercase, comparator)
  • `grpc` → `gRPC`
  • `graphql` → `GraphQL`
  • `api`, `cli`, `http`, `https`, `rest`, `faq` → uppercase

So search breadcrumbs now read "Comparison › GoFr vs Gin" and "References › GoFr CLI" instead of the previous mangled forms.

Out of scope (intentionally)

Real Go identifiers and env-var conventions are left untouched:

  • `RegisterServerWithGofr` (Go function name in `gofr/pkg/` and `gofr/examples/grpc/`)
  • `GOFR_TELEMETRY` and other `GOFR_*` env-var names

Test

  • `npx next build` succeeds.
  • `grep -rn 'GoFR' src/lib src/components` returns no matches.

🤖 Generated with Claude Code

The lowercase 'r' is the canonical brand mark (matches the logo).
Two website-side spots had drifted to "GoFR" (all-caps R) or
"Gofr" (lowercase 'ofr'):

  - src/lib/navigation.js — 7 desc strings used 'GoFR' through-out
    the nav. This is the website's standalone copy of nav metadata;
    the framework's gofr/docs/navigation.js overlays it during the
    framework-docs docker build, so when paired with gofr#3398 the
    fix lands in both layers.

  - src/components/Search.jsx — `prettifySegment` was naive Title
    Case, so search breadcrumbs rendered slugs like 'gofr-vs-gin'
    as 'Gofr Vs Gin' and 'wrap-grpc' as 'Wrap Grpc'. Added a small
    PRETTY_TOKENS map (gofr → GoFr, gofrcli → GoFr CLI, vs → vs,
    grpc → gRPC, etc.) so the breadcrumb honors the brand mark and
    common acronyms while plain words still fall through to Title
    Case.

Code identifiers left alone (RegisterServerWithGofr, GOFR_TELEMETRY).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 6, 2026 05:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the website’s docs navigation copy and search-result breadcrumbs to use correct GoFr brand casing and better formatting for common slug tokens (brand + acronyms), improving consistency across the docs UX.

Changes:

  • Replaced “GoFR” with canonical “GoFr” in multiple navigation description strings.
  • Enhanced search breadcrumb segment prettifying with a token map (e.g., gofr → “GoFr”, grpc → “gRPC”, vs → “vs”) while keeping a Title Case fallback.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/lib/navigation.js Normalizes brand casing in navigation metadata descriptions shown across docs navigation/search context.
src/components/Search.jsx Improves breadcrumb rendering by mapping known tokens (brand/acronyms) instead of naive Title Case.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aryanmehrotra
Copy link
Copy Markdown
Member Author

Superseded by #215 — all commits from this branch are stacked there as part of a single QA-bundle PR. Closing without deleting the branch.

@aryanmehrotra aryanmehrotra mentioned this pull request May 7, 2026
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.

2 participants