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

Tweak configuration to support partial rebuilds with Sphinx cache #385

Open
JasperCraeghs opened this issue Aug 12, 2024 · 0 comments
Open
Assignees

Comments

@JasperCraeghs
Copy link
Member

Sphinx==7.3.0 reports a new warning when, for example, a function is stored in the configuration dict for the Sphinx application, which breaks the cache functionality of sphinx-build and results in full rebuilds.

WARNING: cannot cache unpickable configuration value: 'traceability_attributes_sort' (because it contains a function, class, or module object)

Instead of supporting a function, the configuration could work with a string too. 'effort': 'natsort.natsorted', FYI https://stackoverflow.com/a/4605 If someone uses a function, we should report our own warning (on top of Sphinx'), informing the user to use a string instead.

FYI @Letme @JokeWaumans

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

No branches or pull requests

1 participant