-
Notifications
You must be signed in to change notification settings - Fork 319
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 our documentation to MyST Markdown #639
Comments
presentationLet me introduce myself, I’m the devil’s advocate 😈 I assume that you want to change everything that lives in the questionsIs there a precedent of people refusing to contribute to pydata-sphinx-theme documentation because of the Do we want this librairy to depend on myst ? there were already issues with just the Sphinx version, is using myst as well to transform I’m always a bit confused with people complaining about .rst. I’ve search on the web and of course fell on your article and I agree with the 6 points you are mentioning. Even though, <div class="admonition note">
<p>Paragraph 1</p>
<p>Paragraph 2</p>
</div> Which is, according to me, writing down pure html and not markdown anymore. On the other hand I have that: .. note::
Paragraph 1
Paragraph 2 Is it that complex ? I also agree that ``foo`` which is equivalent to :code:`foo` is kinda disturbing but once you get your head around it, roles are extremely powerful tools. I’m curious how they are included in a prioriIn short, I see why some people would prefer conclusionthat was my 2 cents, devil's advocate out 😈 |
Just some quick clarifications:
I'll admit to having a personal preference for Myst markdown. I find that it is easier to remember and work with than rst, and easier to teach to others who are familiar with markdown. For me it's something that makes my docs contributions more efficient and enjoyable, but I recognize that's a personal preference! |
thanks for the clarification. looking at the doc it's looking exactly like .rst to me ;-) (and that's a great thing because you can then use any custom directive). Which also mean that it's really a matter of taste 🫢 One remaining question though how does it behave with the following list: #. a first item
#. a second item wich will be replaced with a numbered list in .rst but not in normal .md. Is it also interpreted by myst ? |
I believe the way to do this in markdown is just to use 1 over and over. E.g.
Becomes
Here is a nifty demo page to see more Myst syntax and try it out live: https://executablebooks.github.io/mystjs/features/commonmark.html |
I like the general proposal written by @choldgraf at the top message. Regardless of the subjective/personal preferences, I think it is important to ponder:
The question is what is the strategic approach we want to take? Do we support people showing the usual/most common things or do we show them cutting edge stuff and try to push them forward (modulo you understand myst as a step forward, which I believe it is... but others could not agree). |
This comment was marked as resolved.
This comment was marked as resolved.
I don't think this issue would affect any downstream projects. This would only affect the documentation builds of this theme's docs alone. It wouldn't be a dependency of the theme itself |
I think this conversation needs to be settled as there is now a mix of both .md and .rst files in our documentation. I recently created a PR #894 where I was forced to go to myst documentation to understand how I should add options to a directive. As the main purpose of this suggestion was to help people dive in our documentation; note that it actually slowed me down as I'm now fluent in .rst and don't feel the need to move to myst. To give my own impression, even though I agree with
I'm pretty sure it does not apply to the people that use Sphinx and build documentations. My feeling is that it's too opinionated. |
Personally I am fine keeping a mix of both and generally following a strategy of:
Personally, I much prefer MyST given that it has the exact same functionality of rST, but shares most of its syntax with another language that I use every day (commonmark markdown). |
I like this "come as you are" approach, should we close this issue then? |
Context
This documentation is written in reStructuredText, the default for Sphinx documentation sites. However, the myst parser sphinx package allows you to write Sphinx documentation in Markdown with all of the same functionality.
Markdown is much more commonly-used and (arguably) more user-friendly than reStructuredText, and using it may make our documentation easier to maintain and for other non-rST users to contribute to it.
Moreover, there is an rst-to-myst package that makes it easy to do a one-time conversion of our documentation into MyST Markdown, so it should be quick to do this.
Proposal
I propose that we run
rst-to-myst
on all of our documentation except for the "kitchen sink" (since we copy that directly from other docs). From now on, we use MyST Markdown for our documentation rather than rST.The text was updated successfully, but these errors were encountered: