Skip to content

Table of contents with external URL no longer works in 0.10+ #913

@djhoese

Description

@djhoese

The VisPy projects documentation is no longer building after upgrading to 0.10 of this theme. As far as I can tell the issue seems to be the external link to our Code of Conduct at the bottom of the index.rst page in our hidden TOC. You can find the file here:

https://raw.githubusercontent.com/vispy/vispy/main/doc/index.rst

but here is the snippet:

VisPy is a **high-performance interactive 2D/3D data visualization
library** leveraging the computational power of modern **Graphics
Processing Units (GPUs)** through the **OpenGL** library to display very
large datasets.

.. toctree::
  :caption: Getting VisPy
  :maxdepth: 1

  installation

.. toctree::
  :caption: Learning VisPy
  :maxdepth: 2

  getting_started/index

.. toctree::
  :caption: Additional Help
  :maxdepth: 2

  Documentation <overview>

.. toctree::
  :hidden:

  gallery/index
  API <api/modules>
  news
  Code of Conduct <https://github.com/vispy/vispy/blob/main/CODE_OF_CONDUCT.md>

The error I get:

Theme error:
An error happened in rendering the page api/modules.
Reason: KeyError('https://github.com/vispy/vispy/blob/main/CODE_OF_CONDUCT.md')
make: *** [Makefile:46: html_dev-pattern] Error 2

Note how it complains about rendering api/modules, but I'm pretty sure it is the Code of Conduct link in this file.

I was able to reproduce this error locally (normally we build in CI) just by updating from 0.9 to 0.10. FYI if anyone wants to try generating our docs themselves I suggest turning off sphinx-gallery:

cd doc
make html_dev-pattern PATTERN='asdfasdf'

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact: block-releaseShould block a release from happening. Only use if this is a critical problem we don't want to shipkind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions