Skip to content

docs: sweep user-facing imports to v2 paths#65

Merged
theogravity merged 1 commit into
mainfrom
chore/docs-sweep-v2-import-paths
May 2, 2026
Merged

docs: sweep user-facing imports to v2 paths#65
theogravity merged 1 commit into
mainfrom
chore/docs-sweep-v2-import-paths

Conversation

@theogravity
Copy link
Copy Markdown
Contributor

Summary

  • Sweeps every v1 import path mention in the user-facing docs, README, and LLM reference files to its v2 form.
  • The previous v2 PR explicitly deferred the doc-side import-path sweep; users landing on the homepage / README right now copy v1 snippets and silently miss v2 features.
  • Total: 296 path replacements across 46 files (then 6 more for pkg.go.dev/...#Symbol cross-references), all balanced inserts/deletes.

Path-bump map applied

v1 form v2 form
go.loglayer.dev (bare) go.loglayer.dev/v2
go.loglayer.dev/transport, go.loglayer.dev/utils/<X> go.loglayer.dev/v2/transport, go.loglayer.dev/v2/utils/<X>
go.loglayer.dev/transports/<X>, plugins/<X>, integrations/<X> go.loglayer.dev/transports/<X>/v2 (and same for plugins, integrations)

go get commands and pkg.go.dev/... cross-reference URLs (with #Symbol fragments) updated alongside.

Excluded by design

  • whats-new.md (version-history page; v1 mentions are correct context)
  • migrating-to-v2.md (literally documents the bump)
  • .changeset/*.md, CHANGELOG.md (release archive)
  • docs/src/public/CNAME (docs site domain, not import path)
  • https://go.loglayer.dev/... URLs (the docs site, not import paths)
  • pkg.go.dev/badge/go.loglayer.dev.svg (the bare-form shield resolves to latest)
  • Third-party tool versions like lumberjack.v2, dd-trace-go

How the sweep was done

A small Python script (with self-tests) handled the substitution. The asymmetry between main-module subpaths (/v2 inserted after .dev) and sub-module paths (/v2 appended at the end) made a single regex unsafe; the script applies the two patterns separately and protects docs-site URLs and badge URLs ahead of time. The path-end set covers whitespace, quote, paren, comma, semicolon, period, backslash, #, and EOL so URL fragments and trailing punctuation are handled cleanly. Idempotence verified: a re-run reports zero changes.

Test plan

  • cd docs && bun run docs:build succeeds clean
  • grep -rn "go\.loglayer\.dev" docs/src/ README.md | grep -v <preserved patterns> reports zero remaining v1 mentions
  • No new em-dashes introduced (count is unchanged from main)
  • Pre-push hooks (test-race, tidy) pass

🤖 Generated with Claude Code

Bumps every v1 import path mention in the user-facing docs, README, and
LLM reference files to its v2 form. The v2 release shipped the module-path
bumps (`go.loglayer.dev` -> `go.loglayer.dev/v2`, `go.loglayer.dev/transports/<X>`
-> `go.loglayer.dev/transports/<X>/v2`, etc.); the doc-side sweep was
deferred to this PR. New users landing on the homepage / README otherwise
copy v1 snippets and silently miss v2 features.

Excluded by design: whats-new.md, migrating-to-v2.md, .changeset/*.md,
CHANGELOG.md, the docs-site CNAME, the `https://go.loglayer.dev` docs URLs,
and the bare `pkg.go.dev/badge/go.loglayer.dev.svg` shield (resolves to
latest).
@theogravity theogravity merged commit 0bc560b into main May 2, 2026
13 checks passed
@theogravity theogravity deleted the chore/docs-sweep-v2-import-paths branch May 2, 2026 23:25
theogravity added a commit that referenced this pull request May 2, 2026
Follow-up to the v2.0.0 release (#61, #63) and user-facing import sweep
(#65) addressing issues surfaced by a four-reviewer documentation pass.

Critical:
- creating-transports.md: drop stale "already prefix-applied" comment on
  TransportParams.Messages; the core no longer mutates Messages[0].
- llms.txt / llms-full.txt: add transports/cli to the Renderers catalog
  and install snippet (shipped at v2.0.0 but was missing from both).
- introduction.md: show the lltest "go.loglayer.dev/transports/testing/v2"
  import alias in the test-capture snippet.

Important:
- GoDoc cross-references bumped to /v2 in transports/cli/cli.go,
  transports/otellog/otellog.go, doc.go, examples/pretty-modes/main.go.
- migrating-to-v2.md: reframe lede as "two breaking changes" (the
  import-path bump is its own breaking change); add paragraph on the
  core no longer mutating caller-owned input; rewrite Step 1 shell
  snippet so the trailing-backslash + comment paste-trap is gone; add
  callout for the new testing.LogLine.Prefix field.
- configuration.md / llms.txt: reframe the Prefix inline comment so it
  no longer claims the core prepends.

Style:
- Em-dash sweep across llms.txt and llms-full.txt (~50 occurrences) per
  the project's no-em-dashes-anywhere rule.
- llms-full.txt: typo "rolled-our-own" -> "roll-our-own"; reframe the
  "Testing Transport (lltest)" and "Capture entries with lltest"
  headings since lltest is an alias convention, not the package name.

transports/central left undocumented intentionally: its package GoDoc
is already correct for v2 and the module is not in monorel.toml or the
v2.0.0 release.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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