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
Docs: Adds Myst to the getting started with sphinx #7938
Docs: Adds Myst to the getting started with sphinx #7938
Conversation
Myst is a more maintained and feature complete version of markdown for Sphinx. Updated `getting-started-with-sphinx.rst` and added Myst instalation guide under `using-markdown-with-sphinx` section. Closes readthedocs#7937
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.
Thanks! We should also link to the myst documentation.
|
||
Then in your ``conf.py``: | ||
|
||
.. code-block:: python | ||
|
||
extensions = ['recommonmark'] | ||
extensions = ['myst-parser'] | ||
|
||
.. warning:: Markdown doesn't support a lot of the features of Sphinx, |
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.
I think we can remove or update this warning, myst does support directives and roles.
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.
Let me remove the warning and update the PR.
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.
@stsewd on second thought, I think it's best to just update the warning. As the warning also mentioned to use reStructuredText instead of markdown with a blog post. So I think it would benefit anyone waiting to write documentation but is confused between markdown and reStructuredText
* Updated warning in Using Markdown with Sphinx section to remove markup and directive warning. * Adds Getting Started with MyST link to External resources.
@@ -120,7 +116,9 @@ Here are some external resources to help you learn more about Sphinx. | |||
|
|||
* `Sphinx documentation`_ | |||
* :doc:`RestructuredText primer <sphinx:usage/restructuredtext/basics>` | |||
* `Getting Started with MyST`_ |
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.
We could move this link to the Using Markdown with Sphinx
section so is easy to find. Something like You can use Markdown using MyST_
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.
Sure 👍🏾
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.
Thanks!
Myst is a more maintained and feature complete version of markdown for Sphinx. Updated `getting-started-with-sphinx.rst` and added Myst instalation guide under `using-markdown-with-sphinx` section. Closes #7937 Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
As a result of this PR, the docs now say:
However, trying to build a project that uses MyST on Read the Docs does not actually seem to work. Excerpts from my builds:
Read the Docs build numbers:
Also, the name of the package is
My documentation generates perfectly locally. |
@jivanpal in the rst file does mention to use |
@Pradhvan I am using |
Turns out that I needed to specify My project is now building successfully on Read the Docs. 😁 For anyone who comes across this comment in the same situation, I achieved this by creating a
|
Yeah, we should make that more clear, maybe remove that wording and put an example of the config/requirements file |
@stsewd I can draft a different PR for this weekend. 😄
|
Myst is a more maintained and feature complete version of markdown for Sphinx.
Updated
getting-started-with-sphinx.rst
and added Myst instalationguide under
using-markdown-with-sphinx
section.Closes #7937