Closed ncoghlan closed 9 years ago
I'd actually be reluctant to ignore a file with such an ordinary name. I could envision some real JS project having a file with this name. For your CPython needs --nojs
is an easy solution. Another is to add the whole Sphinx-generated directory to --ignore-dir
(this would work for JS projects too).
I mostly use pss to search CPython clones, and it frequently gets hits on the searchindex.js file generated by Sphinx.
Would it be worth adding "searchindex.js" to the default exclusion regexes?
Excluding it with "--nojs" is easy enough for my particular use case, but it wouldn't work so well for a web programming project that actually had also had real Javascript files to search.