Skip to content

docs: add godoc examples, package docs, llms.txt, and ghinstallation comparison - #54

Merged
jferrl merged 3 commits into
mainfrom
docs/llm-discoverability
Aug 10, 2026
Merged

docs: add godoc examples, package docs, llms.txt, and ghinstallation comparison#54
jferrl merged 3 commits into
mainfrom
docs/llm-discoverability

Conversation

@jferrl

@jferrl jferrl commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Description

Improves discoverability and documentation quality for both humans and AI coding assistants:

  • doc.go — full package documentation rendered on the pkg.go.dev landing page: authentication chain overview, token caching and proactive refresh, external signer (KMS/HSM) support, Enterprise URLs, and a pointer to the webhook subpackage. The short package comment moves out of auth.go.
  • example_test.go / webhook/example_test.go — runnable Example functions for every constructor and the webhook API. These render as copy-pasteable examples on pkg.go.dev.
  • llms.txt — concise machine-readable library summary (API surface, when to choose this library, canonical snippet) for AI coding assistants that fetch repo docs at generation time.
  • README — honest feature comparison with ghinstallation, fact-checked against its source (it does refresh proactively and does support custom signers; the table says so).

Type of Change

  • 📚 Documentation update

Testing

  • New and existing unit tests pass locally with my changes (go test ./...; example functions are compile-verified by the test suite)

Documentation

  • I have updated the documentation accordingly
  • I have added/updated code comments where necessary

…comparison

- doc.go: full package documentation with usage overview for pkg.go.dev
- example_test.go + webhook/example_test.go: runnable Example functions
  rendered on pkg.go.dev for every constructor and the webhook API
- llms.txt: concise machine-readable library summary for AI coding
  assistants that fetch repo docs at generation time
- README: honest feature comparison with ghinstallation
@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.15%. Comparing base (7afe248) to head (f497201).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #54   +/-   ##
=======================================
  Coverage   94.15%   94.15%           
=======================================
  Files           4        4           
  Lines         325      325           
=======================================
  Hits          306      306           
  Misses         12       12           
  Partials        7        7           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

jferrl added 2 commits August 10, 2026 10:38
One canonical quick-start instead of near-duplicate full programs;
reference detail now lives in doc.go, pkg.go.dev examples, and llms.txt.
Version-specific marketing removed; comparison table kept.
@jferrl
jferrl merged commit b99d2b2 into main Aug 10, 2026
9 checks passed
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