Allow numbering custom elements as figure/table/block#1858
Allow numbering custom elements as figure/table/block#1858Jellby wants to merge 5 commits intosphinx-doc:masterfrom
Conversation
Conflicts: sphinx/writers/latex.py
|
Now, we introduce new API Anyway, your pull request has become of the wake of the feature. |
|
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. |
@eudoxos: I managed to use it in sphinxcontrib-proof. You can see it in action there. Creating a dummy extension to show how to use |
|
I wrote such a dummy extension. I offered to the sphinx team to adopt it as a part of @sphinx-contrib (see #5567). |
Add the option to have other elements (added by an extension) numbered as figure, table or code block, by specifying the attribute "figtype".