executablebooks / sphinx-book-theme

A clean book theme for scientific explanations and documentation with Sphinx
https://sphinx-book-theme.readthedocs.io
BSD 3-Clause "New" or "Revised" License
413 stars 196 forks source link

[FIX] Template Overriding - Add PR #566 Changes Back #770

Closed adam-grant-hendry closed 6 months ago

adam-grant-hendry commented 9 months ago

Fixes:

welcome[bot] commented 9 months ago

Thanks for submitting your first pull request! You are awesome! :hugs:
If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.
Welcome to the EBP community! :tada:

adam-grant-hendry commented 8 months ago

@choldgraf Do you have an option for me to request a reviewer? I couldn't find an option in the Contributing Guide.

agoose77 commented 7 months ago

@adam-grant-hendry thanks for opening this PR — I'm picking up the thread to try and get the issue resolved. Could you confirm whether your last reply to @choldgraf above is a reasonable solution - to simply inform users that they should not place the theme in extensions? If so, then we can close this PR? :)

ghisvail commented 6 months ago

I am also affected by the html-page-context event error. It was a bit hard to follow this thread, just wanted to know how close you think you are to a working fix, and possibly a follow-up release ?

choldgraf commented 6 months ago

@ghisvail the short answer is to just not add this theme to your extensions list. Adding it as the html_theme is enough and should avoid this bug.

https://github.com/executablebooks/sphinx-book-theme/pull/770#discussion_r1394965818

adam-grant-hendry commented 6 months ago

@agoose77 Yes, that should be fine. A new PR can be created to add the note to the documentation.

ghisvail commented 6 months ago

@ghisvail the short answer is to just not add this theme to your extensions list. Adding it as the html_theme is enough and should avoid this bug.

#770 (comment)

I am sorry to insist, but I don't understand what you mean. I am using JB, and the only reference to extensions is here:

  extra_extensions:
  - 'sphinx.ext.autodoc'
  - 'sphinx.ext.autosummary'
  - 'sphinx.ext.napoleon'
  - 'sphinx.ext.viewcode'
  - 'sphinx_toolbox.more_autosummary'
  - 'sphinx_toolbox.more_autodoc.typehints'
  - 'sphinxcontrib.mermaid'

I don't see any explicit reference to sphinx-book-theme.

ghisvail commented 5 months ago

Now I got it, it's jupyter-book config which adds sphinx-book-theme to extensions in the generated docs/conf.py.

If I remove it manually and then perform a build with sphinx-build, then it works.