Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions myst_nb/sphinx_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ def sphinx_setup(app: Sphinx):
# note, for core events overview, see:
# https://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx-core-events

if "myst_parser" in app.extensions:
raise ValueError(
"Cannot load both myst_nb and myst_parser Sphinx extensions "
"-- load only myst_nb since it includes myst_parser"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rephrase to be more clear about the action item:

Suggested change
"-- load only myst_nb since it includes myst_parser"
"-- please only list only myst_nb as an extension in your configuration since it includes myst_parser."

)

# Add myst-parser configuration and transforms (but does not add the parser)
setup_myst_parser(app)

Expand Down