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.