-
-
Notifications
You must be signed in to change notification settings - Fork 65
Patch MyST to keep the context needed to translate Markdown files #370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
(fixing the rtd build): |
|
(had patched MyST's |
mr-c
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow! Thank you for this @kinow !
I'm seeing lots of warnings that the default make html makes into errors (but readthedocs does not)
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/expressions.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/file-formats.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/index.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/inputs.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/metadata-and-authorship.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/operations.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/outputs.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/parameter-references.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/requirements-and-hints.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/specifying-software-requirements.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/specifying-software-requirements.md:41: WARNING: Duplicate reference definition: SCICRUNCH [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/staging-input-files.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/staging-input-files.md:41: WARNING: Duplicate reference definition: SCICRUNCH [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/troubleshooting.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/troubleshooting.md:41: WARNING: Duplicate reference definition: SCICRUNCH [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/using-containers.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/using-containers.md:41: WARNING: Duplicate reference definition: SCICRUNCH [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/workflows.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/workflows.md:41: WARNING: Duplicate reference definition: SCICRUNCH [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/yaml-guide.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/topics/yaml-guide.md:41: WARNING: Duplicate reference definition: SCICRUNCH [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/tutorials.md:114: WARNING: Duplicate reference definition: FILE-PROP [myst.ref]
/home/docs/checkouts/readthedocs.org/user_builds/common-workflow-languageuser-guide/checkouts/370/src/tutorials.md:41: WARNING: Duplicate reference definition: SCICRUNCH [myst.ref]
https://readthedocs.org/projects/common-workflow-languageuser-guide/builds/19289547/
|
@kinow I added commits to revert the LICENSE |
Ah, without debugging or looking at the code, my guess is that it could be the code merging two |
mr-c
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, we can fix the warnings later
Fixes #368
This fixes the build and produces the expected Markdown.
The diff applied to MyST (created on the MyST parser git clone, posting here to show how much I had to change - bugs of few lines are always the ones that take longer to be solved):
I will share in their issue and see if they can come up with a better solution. Not sure whether we should use this patched version or start moving things to reST. On one hand this works but has the risk of getting out of sync with MyST (even though the diff is minimal), while on the other migrating everything to reST is a major effort.
Anyway, now at least we know what's wrong in MyST and I can stop thinking about this (interesting!) bug 🐛 🐞
Cheers
-Bruno
p.s.: I believe MyST will fix this issue soon-ish, as it's used in PyData and other Jupyter projects, but if there's haste in translating, at least we have a possible workaround....