8000 sphinx-gallery doesn't play nice with sphinx's ability to detect new files... · Issue #449 · sphinx-gallery/sphinx-gallery · GitHub
[go: up one dir, main page]

Skip to content
sphinx-gallery doesn't play nice with sphinx's ability to detect new files... #449
Closed
@jklymak

Description

@jklymak

As pointed out by @larsoner (#448 (comment)_):

I think I have narrowed it down to these to conf.py entries:

    'subsection_order': gallery_order.sectionorder,
    'within_subsection_order': gallery_order.subsectionorder,

I'm guessing that it's because Sphinx can't tell if these config values have changed or not, so decides to re-write everything. With those two lines as they are in mpl master:

... what we could do is allow these entries to be strings and do some importlib magic with them, rather than allowing them to be classes directly. That should allow sphinx to treat them as static, rather than unknowns. In this case making changes to your classes will not be reflected in the build, but this should be (much) rarer than the case of changing a 4D99 single example, and also can be worked around with a simple make clean (or removing the quotes from the name) when you want to do this.

Originally posted by @larsoner in #448 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0