Skip to content

Commit

Permalink
Documentation: replace m2r2 with myst-parser
Browse files Browse the repository at this point in the history
sphinx recommends myst-parser for markdown conversion:
https://www.sphinx-doc.org/en/master/usage/markdown.html

m2r2 is not supported for Python versions >= 3.12 so
we can't build Documentation for example on latest Arch Linux

by the way myst-parser detected a bad link to SECURITY.md that is now fixed
  • Loading branch information
raiden00pl authored and xiaoxiang781216 committed Aug 29, 2024
1 parent 23e0bf5 commit 55170d2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Documentation/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ verify_ssl = true

[packages]
docutils = "==0.18.1"
m2r2 = "==0.3.2"
myst-parser = "*"
sphinx_rtd_theme = "*"
Sphinx = "~=6.0"
sphinx-tabs = "*"
Expand Down
2 changes: 1 addition & 1 deletion Documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
# ones.
extensions = [
"sphinx_rtd_theme",
"m2r2",
"myst_parser",
"sphinx.ext.autosectionlabel",
"sphinx.ext.todo",
"sphinx_tabs.tabs",
Expand Down
3 changes: 2 additions & 1 deletion Documentation/introduction/inviolables.rst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.. mdinclude:: ../../INVIOLABLES.md
.. include:: ../../INVIOLABLES.md
:parser: myst_parser.sphinx_
3 changes: 2 additions & 1 deletion Documentation/introduction/resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ Here's a list of Apache NuttX resources that you might find helpful:
Legacy README
=============

.. mdinclude:: ../legacy_README.md
.. include:: ../legacy_README.md
:parser: myst_parser.sphinx_
3 changes: 2 additions & 1 deletion Documentation/legacy_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ Get help using NuttX or contribute to the project on our mailing lists:

## Reporting Security Issues

Found a vulnerability? See our security policy [here](.github/SECURITY.md).
Found a vulnerability? See our security policy
[here](https://github.com/apache/nuttx/blob/master/.github/SECURITY.md).

## Issue Tracker

Expand Down

0 comments on commit 55170d2

Please sign in to comment.