Skip to content

consider using sphinx-tags #11367

Open

Description

@drammock

Proposed documentation enhancement

https://sphinx-tags.readthedocs.io/en/latest/quickstart.html

we could add .. tags:: BEM, inverse to tutorials/examples, these become links in the rendered docs that go to an auto-generated page saying all pages with tag "BEM" or whatever. There is also an auto-generated "all the tags" page that does what it says on the tin.

Activity

  1. Aniketsy commented on Mar 14, 2026

    @Aniketsy
    Contributor

    Hi @drammock I'm working on this issue. Should tags be assigned by reading each file individually, or is there a faster way to classify them? Just want to confirm before proceeding, so that it does not increase work for review. Thanks!

  2. drammock commented on Mar 14, 2026

    @drammock
    MemberAuthor

    Knowing the content of each tutorial is probably the only way to do this. The categories (folder names) will help but aren't enough by themselves

  3. Aniketsy commented on Mar 14, 2026

    @Aniketsy
    Contributor

    Thanks! While going through each tutorial, should I note down key points for the PR description to make it easier for you to review the tag choices?

  4. drammock commented on Mar 14, 2026

    @drammock
    MemberAuthor

    Not necessary

  5. Aniketsy commented on Mar 27, 2026

    @Aniketsy
    Contributor

    MNE-Python doesn't have many Examples sections in our docstrings, so something like a "try it in your browser" button for our tutorials/examples makes sense. SciPy has I think a global "on" switch with a list of pages to exclude (see https://scipy.github.io/devdocs/dev/core-dev/index.html#interactive-examples-in-docstrings), but I think we would probably want the opposite (a single allowlist of examples/tutorials to enable it for, at least at first).

    as a small suggestion, we can also have tag like(# jupyter_lite: true), for those we want to have allowlist . As we're already adding tags on tutorials/examples.

    I'd like to know your thoughts on this, if this sounds useful, maybe we can decide for which we can have interactive tutorials. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions