[ submitted as PR just for future reference for my first attempt to
solve the problem, this should not be merged]
Previous fix didn't work, it resulted in
The core problem is that, before all the internal links are
resolved, they are sphinx.addnodes.pending_xref nodes. These are
used to record "this will be an internal reference", and are
resolved later, once all the pages are read in (since clearly, some
can't be resolved if the other pages are not yet read in)
I wasn't able to call the references resolver properly (and also, it
seems that MyST needs some special casing)
The core problem seems to be the Sphinx hooks which I have connected
to here - I am in an awkward place where I copy information into the
exercise list, which has already has its references resolved, from
another page which does not yet have its references resolved.
Review:
General check (though I'm probably the only one in CR that can
check this). I will merge when ready, I am trying another option.
[ submitted as PR just for future reference for my first attempt to solve the problem, this should not be merged]
Previous fix didn't work, it resulted in
The core problem is that, before all the internal links are resolved, they are sphinx.addnodes.pending_xref nodes. These are used to record "this will be an internal reference", and are resolved later, once all the pages are read in (since clearly, some can't be resolved if the other pages are not yet read in)
I wasn't able to call the references resolver properly (and also, it seems that MyST needs some special casing)
The core problem seems to be the Sphinx hooks which I have connected to here - I am in an awkward place where I copy information into the exercise list, which has already has its references resolved, from another page which does not yet have its references resolved.
Review: