magidoc icon indicating copy to clipboard operation
magidoc copied to clipboard

How do i deploy these docs in FastAPI

Open aurthurm opened this issue 1 year ago • 2 comments

How do i deploy generated docs in FastAPI. I want themto be served in a route /graphql/documentation whilst i can use any other routed my other projects

aurthurm avatar Jan 28 '24 10:01 aurthurm

I figure you could use static files in FastAPI. Although I have never tried it. It's possible FastAPI doesn't support clean URLs out for the box, in which case you might have to look for another option (plugin or other hosting method).

As for the base URL, you must use the option website.options.siteRoot when building your website.

Let me know if you need more help. If you figure out how to do it for FastAPI, let me know, I'd be happy to add it to the docs.

pelletier197 avatar Jan 28 '24 14:01 pelletier197

@aurthurm any news about this ? If not, I'll close for inactivity

pelletier197 avatar May 04 '24 02:05 pelletier197