Skip to content

Commit

Permalink
Merge pull request NixOS#679 from NixOS/line-nos
Browse files Browse the repository at this point in the history
Add line numbers to Nix, Python code blocks
  • Loading branch information
infinisil authored Aug 21, 2023
2 parents 4a467d2 + cf754d4 commit 25bca67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
1 change: 1 addition & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25bca67

Please sign in to comment.