I have developed two projects:
- A package (projA) with Sphinx documentation
- A
Flask
app (projB), which utilizes projA and lists it in therequirements.txt
file.
Therefore, projA would be installed in the virtual environment that coincides with projB.
My question is:
How can I safely serve the documentation from the static files in the /docs/build/html
directory of projA via a route (let's says /docs
) in projA?
Since projA is installed as a dependency, it would be located in the /venv/Lib/..
folder. So, I could proxy /docs
to point to the project folder inside the virtual environment folder, but is that safe? Or is there a better way to accomplish this?