Access outside of root dir in Cloudflare Pages

Hi all
My sphinx-based project which is located in docs folder on build time shell access something outside of this folder like /examples folder or some source code for autodoc(so impossible to put everything inside one folder)
can you suggest some solution?

What is your project structure like? Would it be possible to add a script that builds all the documentation and then you just call that script to build?