Is it possible to exclude all files by name with exclude_patterns?

18 views
Skip to first unread message

Max Ghenis

unread,
Jul 6, 2020, 2:45:39 PM7/6/20
to sphinx-users
I'm using jupyter-book's exclude_patterns config field (inherited from Sphinx) and am looking to exclude several files named README.md in different folders. I'm having trouble figuring out how to do that, and it's not one of the documented patterns. Here's what I've tried - any help appreciated. Thanks -- Max
  1. *README* didn't exclude
  2. README didn't exclude
  3. **README.md** threw error "expected alphabetic or numeric character"
  4. **README.md threw error (same)
  5. **/README.md threw error (same)
  6. **README.md* threw error (same)
  7. */README.md threw error (same)
Filed in https://github.com/executablebooks/jupyter-book/issues/753 but coming to the source here instead.

Max Ghenis

unread,
Jul 7, 2020, 10:21:57 AM7/7/20
to sphinx...@googlegroups.com
This was because I wasn't quoting the pattern (others I've used haven't needed quotes). '**/README.md' worked.

--
You received this message because you are subscribed to a topic in the Google Groups "sphinx-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sphinx-users/wrsLpS51yow/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sphinx-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/cadf07df-4b19-49ec-ac5d-891505e71128n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages