GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
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
Add the option to have other elements (added by an extension) numbered as figure, table or code block, by specifying the attribute "figtype".
Allow numbering custom elements as figure/table/block
Merge remote-tracking branch 'upstream/master' into figtype
Fix #1858: Support numbering custom nodes
Now, we introduce new API Sphinx.add_enumerated_node to support this.
More details, please refer #2317.
Anyway, your pull request has become of the wake of the feature.
Thank you for great proposal.
Coming back here, I see add_enumerable_node was merged in 1.4; how is it supposed to be used? It is not documented at all from the user perspective.