jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

Adding the bibliography block changes layout of the page

Open yn- opened this issue 1 year ago • 3 comments

Describe the bug

context When I follow the 'create the first book' tutorial and build the example book ...

expectation I expected the Markdown Files chapter would have the same layout as other pages.

bug But instead the Markdown Files chapter has a column-by-column layout, with page content, navigation footer and copyright footer side by side.

layout

problem This is a problem for people making use of the bibliography feature.

how I narrow down to the bibliography When I remove the ```{bibliography}...``` block from the source file markdown.md, the layout becomes normal again.

Reproduce the bug

  1. produce the sample book project using the jupyter-book command.
  2. build the sample book.
  3. look at the Markdown Files chapter.
  4. then the column-by-column layout should appear.

List your environment

Jupyter Book      : 0.15.1
External ToC      : 0.3.1
MyST-Parser       : 0.18.1
MyST-NB           : 0.17.2
Sphinx Book Theme : 1.0.1
Jupyter-Cache     : 0.6.1
NbClient          : 0.7.4

yn- avatar Jun 02 '23 02:06 yn-

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Jun 02 '23 02:06 welcome[bot]

I think you can probably resolve this by downgrading docutils to v0.17.1.

Additional context: to quote https://github.com/executablebooks/jupyter-book/issues/2022#issuecomment-1590151564:

Duplicate of https://github.com/executablebooks/jupyter-book/issues/1970 and https://github.com/executablebooks/jupyter-book/issues/1997. The former is closed because Jupyter Book now warns you to downgrade docutils, though plain-old MyST-Parser has the issue too (with no warning). The latter is open because it hasn't been decided to close it as duplicate yet. Either way the issue won't truly be fixed until MyST-Parser supports latest docutils, which I think also implies upgrading Sphinx, so the workaround specified in the docs and alternatively https://github.com/executablebooks/jupyter-book/issues/1997#issuecomment-1590145393 are the way to go for now.

firasm avatar Jul 15 '23 04:07 firasm

After pip install "docutils<=0.17.1" --force-reinstall, when you rebuild, do jupyter-book build . --all to force rebuilding all pages.

qin-yu avatar Dec 15 '23 20:12 qin-yu