Skip to content

Source addons from gobl.dev bundle of external modules - #58

Merged
samlown merged 1 commit into
mainfrom
addons-multi-repo
Jun 12, 2026
Merged

Source addons from gobl.dev bundle of external modules#58
samlown merged 1 commit into
mainfrom
addons-multi-repo

Conversation

@samlown

@samlown samlown commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Addons no longer all live in GOBL core: approved external addons (fr-ctc flows, sa-zatca) are implemented in their own Go modules, with GOBL keeping a curated approved list (tax.ApprovedAddons()) and gobl.dev's bundle package declaring which external modules actually ship. This updates the docs generator to follow that model.

Changes

  • Generator sources addons from the gobl.dev bundle: cmd/generate blank-imports github.com/invopop/gobl.dev/bundle, so the documented addon set tracks gobl.dev exactly. To document a newly approved external addon, go get -u github.com/invopop/gobl.dev and regenerate.
  • Module shown per addon page: each page now states the implementing Go module (e.g. fr-ctc-flow2-v1gobl.fr.ctc), derived from the approved-addons list.
  • Stale page cleanup: generated pages under addons/ and regimes/ that no longer correspond to a registered definition are deleted (drops pl-favat-v2); only overview.mdx is hand-written.
  • Navigation generated: the Addons → Definitions and Tax Regimes → Countries groups in docs.json are now rebuilt by the generator (both had drifted out of date) alongside the existing Schemas (Draft 0) handling.
  • Warning for unregistered approved addons: fr-ctc-v1 is approved but registers no AddonDef (key-only placeholder), so the generator warns instead of documenting it.
  • gobl upgraded to v0.500.0 and regenerated: adds fr-ctc-flow2/6/10-v1 and sa-zatca-v1 addon pages, NO and SA regimes, plus the expected draft-0 schema churn (bill/conditionbill/fault, new org/endpoint, cbc/uri).
  • addons/overview.mdx and the README explain the new multi-repo sourcing model.

Test plan

  • go build ./... and go vet clean
  • Generator run is idempotent (second run produces no diff)
  • Verified no remaining references to removed pages (pl-favat-v2, bill/condition)
  • mint broken-links could not run locally (CLI requires Node LTS, machine has Node 25) — worth a glance at the Mintlify preview

🤖 Generated with Claude Code

Addons no longer all live in GOBL core: approved external addons (e.g.
fr-ctc, sa-zatca) are implemented in their own Go modules, with the
gobl.dev bundle package as the curated list of modules that ship. The
generator now imports that bundle so the documented addon set tracks
gobl.dev exactly, and upgrades gobl to v0.500.0.

- Show the implementing Go module on each addon page, derived from
  tax.ApprovedAddons().
- Remove stale generated pages under addons/ and regimes/ (drops
  pl-favat-v2); only overview.mdx is hand-written.
- Warn about approved addons with no registered definition (fr-ctc-v1
  is a key-only placeholder today).
- Rebuild the Addons > Definitions and Tax Regimes > Countries
  navigation groups in docs.json from the registered definitions
  instead of maintaining them by hand.
- Regenerate all pages from gobl v0.500.0: adds fr-ctc-flow2/6/10,
  sa-zatca-v1 addons, NO and SA regimes, and the usual draft-0 schema
  churn.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
gobl 🟢 Ready View Preview Jun 11, 2026, 1:12 PM

@samlown
samlown merged commit 777b561 into main Jun 12, 2026
4 checks passed
@mintlify

mintlify Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Docs PR opened: #59

Added a Changelog section with the first entry covering new addons, tax regimes, and document schemas shipped this week.

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