Hi there!
Let's assume I'm building a dating web-app in Laravel.
I have two repositories:
dating-backend
dating-docs
The dating-backend has Laravel code such as auth, forum, all sort of functionality.
The dating-docs is like MDN docs, exactly that.
My question is, how do I use https://docusaurus.io/ in my laravel webapp, under domain.com/docs?
I'm not using Livewire or any SPA - I'm just using Laravel and Blade, though I could always use React/Vue just for the /docs route.
Idealy, if someone changes the documentation via the github, it would update on laravel, likewise if I push code to github master, it would update the site - I will have to do this in configuration of Digital Ocean I'm aware of that, but that's the idea of how I want to set it up.
So the master od dating-docs would update the laravel app domain/docs content, while dating-backedn would update the entire code basically.
One issue seems like to serve the docosaurus it would need to be in the same repository/file. Which makes me think, how do I serve the files and inject them to my laravel app?
Docosaurus seems to have its own structure and code when you install it, but I want to keep that in a different repo.
How would you guys go about doing this?
EDIT:
One way supabase does it, it seems based on this file https://github.com/supabase/supabase/tree/master/www is that they serve it as two different websites under one domain name.
That means, I should probably deploy my laravel app in one digital ocean droplet, then deploy the documentation in another digital ocean droplet, and serve it under the same domain name, except the docs would be domain.com/docs and the laravel webapp would be under domain.com except docs