#15 🐛 BUG: numbered nested toctrees were unordered

Merged AakashGC AakashGfude
Coverage Reach
__init__.py

Flags

Flags have been temporarily removed from this view while the flagging feature is refactored for better performance and user experience.

You can still use flags when viewing individual files. Flag-level thresholds will also remain on pull and merge requests in your repository provider.

More information can be found in our documentation.


@@ -98,7 +98,13 @@
Loading
98 98
                if secnums != old_secnumbers.get(ref):
99 99
                    rewrite_needed.append(ref)
100 100
101 -
    for docname in env.numbered_toctrees:
101 +
    # rearrange it to respect ordering in toctree directives
102 +
    rearranged_numbered_toctrees = []
103 +
    for toc in env.tocs:
104 +
        if toc in env.numbered_toctrees:
105 +
            rearranged_numbered_toctrees.append(toc)
106 +
107 +
    for docname in rearranged_numbered_toctrees:
102 108
        assigned.add(docname)
103 109
        doctree = env.get_doctree(docname)
104 110
        for toctreenode in doctree.traverse(addnodes.toctree):

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
sphinx_multitoc_numbering/__init__.py 0.50% 90.91%
Project Totals (1 files) 90.91%
Loading