Multi repo content

Hi!

We are currently building a documentation for our products using hugo and docsy theme for docs versioning.

Our products have different versions and release strategies.

With this in mind, we planned to have a separate hugo repositories for each product and build each repository then service the public folders in nginx.

AAA ./public → /var/www/html/aaa
BBB ./public → /var/www/html/bbb
CCC ./public → /var/www/html/ccc

Then they are published to the same subdomain (docs.example.com) and do a url path based routing.

docs.example.com/aaa -> /var/www/html/aaa
docs.example.com/bbb -> /var/www/html/bbb
docs.example.com/ccc -> /var/www/html/ccc

The hugo docs is working as expected if they are published directory with our path base routing but if we added the url routing, the pages gets broken.
We tried several configurations and also added --baseURL but still same issue persists.

Are we missing something or is this setup viable?

Is the same domain is being used ?

The docs.example.com/aaa And docs.example.com/bbb share the same home page at docs.example.com ? Of did I misread this ?

If this is the case then aaa and bbb and ccc would be sections under docs.example.com