Open mmcky opened 3 years ago
ah yeah - I feel like this is an annoying Sphinx bug that has bitten me before too. Perhaps a warning is the right way to go here, so that users know why things are breaking 👍
I think another one -- but a lot less likely to occur is genindex
This issue just took a couple of hours of my life that I won't get back, so it might be worth a warning :)
thanks for the feedback @AllenDowney -- sorry about the lost hours. Love your books!
I'll see if we can put a warning check in place for this into jupyter-book
as a reserved filename.
sphinx
filenamesThanks, @mmcky !
Describe the bug
When building
html
it seems that if you usesearch
as a filename -- sphinx replaces it with a search page and ignores the content in that file. Perhaps this is a reservedadditional page
for sphinx?If
_toc.yml
contains:the issue occurs.
However if the file is nested in a folder there is no issue.
also other names such as
my_search
don't face the issue.A minimal example is available here
To Reproduce
Clone minimal example
and
jb build ./
with html
Expected behavior
Either a warning for using a special filename or use the user provided file.
Environment