-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Convert Docs from recommonmark to MyST-Parser #2111
Comments
As an aside, if I may inquire: why markdown in the first place? Is it simply for the (debatably) better plain text readability or some historical reason? |
I prefer the markdown syntax and it’s simplicity. I didn’t make the choice here, but do for other projects I maintain. I’m pretty sure black just using Markdown was due to GitHub’s MD love. Why the format question? Do you feel there is some advantage converting docs to another format? If so, what? |
Out of genuine curiosity! I've heard arguments both ways, but for some reason I've thought that RST is preferred in the Python community - a claim that I realised has no real basis 😅 I'd imagine that the banger argument for RST is roles which Sphinx of course extends, but I'm guessing any MD->RST tools also provide something for that. Most likely nothing so valuable that would warrant converting the whole documentation over. But aside from not recognising Sphinx roles I've not had any issues in, say, having a readme as RST. Hmm, let me figure out MyST a bit before causing any more chaos to this very well-defined, technical issue 😄 Thank you for the reply though! |
@cooperlees if you need a MyST compatible replacement for Prettier, then AFAIK mdformat is the only option. A - repo: https://github.com/executablebooks/mdformat
rev: 0.7.4
hooks:
- id: mdformat
args: [--number, --wrap=88]
additional_dependencies:
- mdformat-gfm
- mdformat-myst disclaimer: I'm the author |
FYI, @cooperlees isn't best person to ping for this... as a *the* documentation person I am usually the best option. Cooper opened this issue since they were the one to notice this deprecation first. Also, thanks for the suggestion, I definitely want to use MyST syntax and I forgot that Prettier obviously wouldn't support it, so I'll look into it (one day). |
While there's a significant chance I'll end up being the BDDFL (Benevolent. Documentation. Dictator. For. Life) for this project and end up pushing many changes without consultation or feedback (to be clear I don't want that!), let's see if I can get some feedback. So with this deprecation there's three options worth considering:
terminology-note:
I personally prefer option 1 since I like MyST over RST and I don't mind paying the up-front cost of porting our docs. Option 2 is a middle of the road approach, and it's fine, but the mix is annoying without much benefit. And for option 3, I mean, it's pretty much the "do nothing" approach which is nice and all, but like, if we have to switch to MyST-Parser anyway, let's use its handy benefits while at it. Thoughts? |
I also prefer "Option 1". If there's a way to avoid documenting in two different markup languages it should be the way to go IMO. Regarding
Hmm, are you sure that prettier supports RST? Or maybe you don't even imply that and I misunderstand? At least Prettier docs don't mention RST support anywhere. |
Btw https://github.com/executablebooks/rst-to-myst exists for RST -> MyST conversion, which might be helpful. It's still in development though and according to its author "just about ready" |
Nope, I was wrong :-). Thanks for correcting me! |
@hukkinj1 question about the MyST support of |
The support is currently only for syntax that is enabled by default in myst-parser, so unfortunately no colon_fence yet. Edit: All currently supported syntax extensions are listed here https://github.com/hukkinj1/mdformat-myst/#description |
@hukkinj1 thanks for the clarification. If my desire grows enough I might consider adding support myself if you'd welcome it :) |
👍 PRs are always welcome 😄 Note that I think it's good that there's a way to enable only the default extensions, so support for this would likely mean another plugin. Maybe better to plan and discuss this in another issue (and issue tracker) first. |
@hukkinj1 another question (I'm sorry but I'm been actively using mdformat and been hitting some road blocks), are |
No problem, I'm glad to be able to help.
For a comment, MyST provides the |
Cool, I'm learning something new everyday! Yeah, I just used the myst alternative since github readability is already thrown out the window :) I should probably read the CommonMark standard. |
@ichard26 can this be closed now? |
Read the docs is moving to MyST-Parser. So I guess we need to. (Haven't done homework yet)
readthedocs issue: readthedocs/recommonmark#221
cc: @ichard26
The text was updated successfully, but these errors were encountered: