
Normally, Sphinx will only allow you to add files that are situated inside the source directory, but you might want to include files from another directory, for example a central 'examples' folder. For RST files these can be linked with include directives inside another RST file. For notebooks, there's nbsphinx-link.