From 49cf3bf82295cb77e0cdf98d4266b81235228931 Mon Sep 17 00:00:00 2001 From: Lorenzo Manacorda Date: Fri, 18 Aug 2023 14:59:52 +0200 Subject: [PATCH 1/2] README: mention MyST format --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 04a533fd0..1b7fa7a51 100644 --- a/README.md +++ b/README.md @@ -17,4 +17,4 @@ As you make changes your browser should auto-reload within a few seconds. For contents and style see [contribution guide](CONTRIBUTING.md). -For syntax see [RST/Sphinx Cheatsheet](https://sphinx-tutorial.readthedocs.io/cheatsheet/). +Content is written in MyST, a superset of CommonMark. For its syntax, see the [MyST docs](https://myst-parser.readthedocs.io/en/latest/syntax/typography.html#syntax-core). From cf754d4f27ad58bc55cb940e2ed333a1240dc3ae Mon Sep 17 00:00:00 2001 From: Lorenzo Manacorda Date: Fri, 18 Aug 2023 15:00:27 +0200 Subject: [PATCH 2/2] conf.py: enable line numbes for nix, python code --- source/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/source/conf.py b/source/conf.py index b6507c03c..e303f9ba2 100644 --- a/source/conf.py +++ b/source/conf.py @@ -57,6 +57,7 @@ # GitHub-style automatic anchors for headings myst_heading_anchors = 3 +myst_number_code_blocks = [ "nix", "python" ] copybutton_prompt_text = r"# |\$ " copybutton_prompt_is_regexp = True