Skip to content

Update SMDBoxHandler for new smdbox v2 - #23

Merged
sergeyfast merged 1 commit into
masterfrom
update-smdbox
Jul 6, 2026
Merged

Update SMDBoxHandler for new smdbox v2#23
sergeyfast merged 1 commit into
masterfrom
update-smdbox

Conversation

@sergeyfast

Copy link
Copy Markdown
Member

Summary

  • SMDBoxHandler now serves the canonical embed page from the new vmkteam/smdbox v2 with absolute URLs to the GitHub Pages bundle (https://vmkteam.github.io/smdbox/app.{js,css}). The jsDelivr @latest/dist/ bundle is frozen as legacy in smdbox v2 and no longer updated.
  • External Bootstrap CSS (bootswatch) removed — the v2 bundle is self-contained; viewport meta added for the responsive UI.
  • #json-rpc-root auto-init is kept — smdbox v2 preserves this backward-compatible contract.
  • README ecosystem link updated from semrush/smdbox to vmkteam/smdbox.
  • Lint fixes to make make lint green: fmt.Fprintf instead of sb.WriteString(fmt.Sprintf(...)) in parser (staticcheck QF1012), goconst exclusion for middleware.go in .golangci.yml.

Testing

  • make fmt lint — 0 issues, go test ./... — ok.
  • Verified end-to-end with testdata/arithsrv: /doc serves the page, the v2 widget auto-initializes into #json-rpc-root, pre-fills the schema URL, loads the SMD schema and lists all namespaces (arith, phonebook, printer).

Release v2.3.3 (patch) should be tagged after merge; generator version is untouched.

- Serve the canonical embed page with absolute URLs from
  vmkteam.github.io/smdbox (GitHub Pages, v2 bundle) instead of the
  frozen jsDelivr legacy dist
- Drop external Bootstrap CSS since the v2 bundle is self-contained
- Update README ecosystem link from semrush/smdbox to vmkteam/smdbox
- Fix staticcheck QF1012 in parser: use fmt.Fprintf instead of
  sb.WriteString(fmt.Sprintf(...))
- Exclude goconst for middleware.go in golangci-lint config
@sergeyfast
sergeyfast merged commit 9e3b4b3 into master Jul 6, 2026
2 checks passed
@sergeyfast
sergeyfast deleted the update-smdbox branch July 6, 2026 13:34
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