Hello Ramon, Am 11.03.2012 23:43, schrieb Ramon: > Would the exclude_patterns directive help you here? > > http://sphinx.pocoo.org/config.html#confval-exclude_patterns > No, not really, as it would mean I need to add an exclude pattern for every component I that is _not_ included in my current package configuration. I implemented a local patch to test an "include_patterns" directive which seems to work (however, I have to admit that afterwards I put this sphinx project aside due to other task).
If this is of general interest, I could dig it up again and possibly prepare a patch. It is basically an addition to get_matching_files which still excludes all files according to exclude_patterns, but then only includes those that match the include_patterns. Regards, Johannes > Ramon > > On Wednesday, February 9, 2011 12:04:39 AM UTC-8, Johannes Stallkamp > wrote: > > Hello, > > I am new to Sphinx and I am wondering whether it is possible to only > include rst files that are actually referenced in the TOC. > IIUC, I can only explicitly _exclude_ files. However, our projects > contain a flexible number of subcomponents in one large directory > tree. > I create the master index file dynamically via CMake to include only > references to the docs of those components that are included. When > running sphinx, I get warnings that some documents are not indexed > (the > ones of the excluded components) but they are nevertheless included. > > Is there any way to tell Sphinx to only include explicitly listed > files? > > Kind regards > Johannes > > -- > You received this message because you are subscribed to the Google > Groups "sphinx-dev" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/sphinx-dev/-/F2V_lMPXVOEJ. > To post to this group, send email to sphinx-dev@googlegroups.com. > To unsubscribe from this group, send email to > sphinx-dev+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sphinx-dev?hl=en. -- Johannes Stallkamp Lehrstuhl Theorie kognitiver Systeme Institut für Neuroinformatik Ruhr-Universität Bochum 44780 Bochum, Germany office: NB 3 / 71 tel: +49 234 32 25566 fax: +49 234 32 14209 email: johannes.stallk...@ini.ruhr-uni-bochum.de URL: http://www.ini.ruhr-uni-bochum.de -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.