-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
enhancementNew feature or requestNew feature or request
Description
These are notes from converting the documentation of the https://github.com/jupyterhub/zero-to-jupyterhub-k8s project. I just wrote that came to mind along as I used it for the first time with no prior knowledge other than its a cli to help me transform rst to myst.
-
roles listcommand output line separated roles instead of a big string for better human readability. -
roles showhelp string sais the same as list. -
directives list/showsame as above -
--helpcould perhaps say something more relevant than CLI for rst-to-myst, such as the focus of its purpose.Usage: rst2myst [OPTIONS] COMMAND [ARGS]... CLI for rst-to-myst -
parse --helpor the help of theparse --conversionflag could perhaps provide some reference or be a bit more verbal about it maybe. -
parse --extensionshelp text doesn't describe how to specify the extensions, comma separated list to load? - `parse --sphinx/--no-sphinx doesn't make it clear what is the default
- Trailing blank lines.
- The conversion of a .rst file with only
hello worldfollowed by a blank line leads to a .md output ofhello worldwith 3 blank lines - The conversion of the following
Led to a blank new line in the image directive
.. image:: ../_static/images/architecture.png :align: center```{image} ../_static/images/architecture.png :align: center ```
- The conversion of a .rst file with only
- I noted that my generated myst directives was using colon-syntax for directives like
note, andimportant, but not forcode-block. I ended up with a mix of colon-syntax and backtick syntax for my myst directives. I had not enabled colon-syntax manually in any way or by configuration. - It would be nice to have a --validate flag or similar for a parsing, giving hints about the transform rather than just outputting the output without warnings etc.
- I found myself using
rst2myst parse -f myfile.rst > myfile.mda lot, it could be nice to have some flag to modify the file in place or similar perhaps.-i, --in-placefor example. - I learned that it wasn't possible to do
rst2myst parse -f test.md > test.mdfor some reason I don't get. I would guess this would be reasonable to have working in general though, for examplecat test.md | sed replacesomething > test.md. Perhaps its because we started printing content before we had finished reading it? - Having used some double ticks in rst translated to doubleticks in md where I expected to have only one
- I'm surprised to see this conversion of links...
# rst `Google <https://cloud.google.com/>`_) # myst - why is there a <> remaining? It seems fine though. [Google](<https://cloud.google.com/>) - I failed to transform the
glossarydirective to myst, but the automated generated MyST content containing a eval-rst block worked. - Converting a
.. toctree::directive with a:titlesonly:argument worked in a way, but the generated MyST content was invalid. It became:titlesonly: Nonewhich made a difference to the toctree where nothing was shown instead of only the titles.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request