Closed sneakers-the-rat closed 1 week ago
Do you have a small public repo of these examples? Have not seen anything like this before!
amazingly, when i go to reproduce one hour later, i can no longer do it where an hour ago i couldn't get it to not happen both in CI and locally. i swear i did not just make up a weird issue for no reason
this is literally what i was doing, no venv funny business (as in i am running the same binaries with the same python interpreter, same node, etc): repo:https://github.com/sneakers-the-rat/mystmd-1641-example site: https://jon-e.net/mystmd-1641-example/
so i know this is not helpful as an issue... i can close this and reopen it if it starts happening again........ truly a "computer mystery behavior" hour for me.
edit: my initial guess was the use of a Set
somewhere instead of an Array
, which would explain the intermittence of the problem? but i truly don't know.
Description
When I do this:
myst.yml
I get this:
but also when I do this
i get this
which is correct.
and in my real document which is like this
i get this
which has the first entry in place but the rest reversed for each group.
but if i use a jupyter book ToC the ordering is correct
src/_toc.yml
if i add logger commands at the start and end of this function for
entries
andpages
they are both in the correct order when loaded here: https://github.com/jupyter-book/mystmd/blob/16a5e5869e10faf069f1fe2b288ffdea858d4345/packages/myst-cli/src/project/fromTOC.ts#L240and i don't know the best way to trace through to see when it gets reversed, and i'm not sure why the alphabetical example is in the correct order but the
section_one
, etc. example isnt?Proposed solution
ideally it would be in the order it's specified in!
Additional notes
v1.3.18
for all