Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TemplateNotFound('sidebar-search-bs.html') #320

Closed
12rambau opened this issue Feb 24, 2021 · 4 comments
Closed

TemplateNotFound('sidebar-search-bs.html') #320

12rambau opened this issue Feb 24, 2021 · 4 comments

Comments

@12rambau
Copy link
Collaborator

When rendering my documentation on readTheDoc I get the following error :

Theme error:
An error happened in rendering the page index.
Reason: TemplateNotFound('sidebar-search-bs.html')

My repository is the following : https://github.com/12rambau/sepal_ui

in my requirements.txt I added :

pydata-sphinx-theme>=0.4.3

and in my conf_file :

extensions = ['sphinx.ext.napoleon', 'pydata_sphinx_theme']
html_theme = 'pydata_sphinx_theme'

Did I miss something ?

@12rambau
Copy link
Collaborator Author

no need for extentions ....
sorry for bothering

@jorisvandenbossche
Copy link
Member

Indeed, no need to add the theme to the list of extensions.

@fmaussion
Copy link
Member

Sorry to ping again on this closed issue, but I have the same error (the build worked nicely a week ago). Here is my conf.py

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.autosummary',
    'sphinx.ext.intersphinx',
    'sphinx.ext.extlinks',
    'sphinx.ext.mathjax',
    'numpydoc',
    'sphinx.ext.ifconfig',
    'sphinx.ext.viewcode',
    'IPython.sphinxext.ipython_directive',
    'IPython.sphinxext.ipython_console_highlighting',
]

And the error message (full log):

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/oggm-edu/conda/latest/lib/python3.9/site-packages/sphinx/cmd/build.py", line 280, in build_main
    app.build(args.force_all, filenames)
  File "/home/docs/checkouts/readthedocs.org/user_builds/oggm-edu/conda/latest/lib/python3.9/site-packages/sphinx/application.py", line 352, in build
    self.builder.build_update()
  File "/home/docs/checkouts/readthedocs.org/user_builds/oggm-edu/conda/latest/lib/python3.9/site-packages/sphinx/builders/__init__.py", line 296, in build_update
    self.build(to_build,
  File "/home/docs/checkouts/readthedocs.org/user_builds/oggm-edu/conda/latest/lib/python3.9/site-packages/sphinx/builders/__init__.py", line 360, in build
    self.write(docnames, list(updated_docnames), method)
  File "/home/docs/checkouts/readthedocs.org/user_builds/oggm-edu/conda/latest/lib/python3.9/site-packages/sphinx/builders/__init__.py", line 534, in write
    self._write_serial(sorted(docnames))
  File "/home/docs/checkouts/readthedocs.org/user_builds/oggm-edu/conda/latest/lib/python3.9/site-packages/sphinx/builders/__init__.py", line 544, in _write_serial
    self.write_doc(docname, doctree)
  File "/home/docs/checkouts/readthedocs.org/user_builds/oggm-edu/conda/latest/lib/python3.9/site-packages/sphinx/builders/html/__init__.py", line 611, in write_doc
    self.handle_page(docname, ctx, event_arg=doctree)
  File "/home/docs/checkouts/readthedocs.org/user_builds/oggm-edu/conda/latest/lib/python3.9/site-packages/sphinx/builders/html/__init__.py", line 1061, in handle_page
    raise ThemeError(__("An error happened in rendering the page %s.\nReason: %r") %
sphinx.errors.ThemeError: An error happened in rendering the page activity_sheets/as_gallery.
Reason: TemplateNotFound('sidebar-search-bs.html')

Theme error:
An error happened in rendering the page activity_sheets/as_gallery.
Reason: TemplateNotFound('sidebar-search-bs.html')

@fmaussion
Copy link
Member

For the record, I pinned sphinx-book-theme to <0.1.0 (which pins to al older version of pydata-sphinx-theme) and it now builds properly. I think it's related to us using

html_sidebars = {
    "**": ["sidebar-search-bs.html", "sbt-sidebar-nav.html", "sbt-sidebar-footer.html"]
}

sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants