Skip to content

docs: add addon READMEs for geo-routing and bot detection - #320

Merged
mosherBT merged 2 commits into
masterfrom
addon-docs-geo-routing-bot-detection
Aug 20, 2026
Merged

docs: add addon READMEs for geo-routing and bot detection#320
mosherBT merged 2 commits into
masterfrom
addon-docs-geo-routing-bot-detection

Conversation

@mosherBT

@mosherBT mosherBT commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Why

geo-routing and botDetection are both exported addons with no module documentation. Bot detection has no README coverage at all, and SkipTargetingForBots() — the helper most callers should reach for — is undocumented anywhere in the repo.

Existing addons (abTestAssignment, prebid/analytics, prototypes) each ship a .md. These two are the gap.

What Changed

Adding docs for botDetection and geo-routing

How to Test

  • [] Tested — tsc -b lib clean; 21 suites / 326 tests pass, unchanged from master
  • Docs updated

Notes

  • Breaking change
  • Requires release

Both addons are exported and used, but neither had a module doc. Bot
detection had no README coverage at all, and SkipTargetingForBots() was
undocumented anywhere despite being the helper most callers actually want.

- lib/addons/geo-routing.md: supported region table, custom GeoMap usage,
  the null-return contract, and the fact that country-to-region translation
  and the node/site config are the caller's responsibility.
- lib/addons/botDetection.md: the full substring match list by category,
  SkipTargetingForBots() and when to prefer it over a bare isBot()
  early-return, and the two limits worth knowing — the pattern is
  deliberately broad and user-agent only.

Adds a Bot detection section to the README, which had none, and links both
addon docs from their README sections.

Also tightens the docs checkbox in the PR template: it asked for
"Docs / README updated (if public API changed)", which is easy to read as
README-only. It now names the module .md explicitly and states that new
addons ship with one.
@mosherBT
mosherBT requested review from a team as code owners August 19, 2026 17:38
@mosherBT
mosherBT requested a review from juliorafaelr August 19, 2026 17:38
Comment thread lib/addons/geo-routing.md Outdated
Comment thread lib/addons/botDetection.md Outdated
@mosherBT
mosherBT merged commit d7fb6ea into master Aug 20, 2026
7 checks passed
@mosherBT
mosherBT deleted the addon-docs-geo-routing-bot-detection branch August 20, 2026 13:53
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