You can see how Scalar is integrated on line ~125 of lib/openapi/docs.ts
(Shown here as lib-openapi-docs.ts
)
I may have not included every module that's needed for this system because it's unreleased.
Also, hono-openapi
is not being used at all, I developed my own system which is included below.
But, that should not matter too much - the principles should be the same.