-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix figure numbering is overriden when use the extension
** Why is this change required? ** When numfig is set to true, figure directives are automatically numbered. However, before this fix, the caption of figures is overriden and the automatically numbering is gone. This commit fixed the issue (also listed on github #14). ** How does this change solve the issue? ** Instead of using nodes.caption directly (also with override when add_node, which causes bug), we create a subclass pseudocodeCaption and use it instead. ** Does this commit cause any expected behavior to change? If so, what? ** ** Issue: ** ** Design Docs: **
- Loading branch information
Showing
5 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
extensions = ['sphinxcontrib.pseudocode'] | ||
exclude_patterns = ['_build'] | ||
exclude_patterns = ['_build'] | ||
numfig = True | ||
html_static_path = ['_static'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters