Skip to content

Commit 33c5e5c

Browse files
authored
🔧 Show line numbers in docs during local development (#714)
🔧 Show line numbers during local development
1 parent 2b0dfb5 commit 33c5e5c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: mkdocs.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ markdown_extensions:
109109
class: mermaid
110110
format: !!python/name:pymdownx.superfences.fence_code_format ''
111111
- pymdownx.betterem
112-
- pymdownx.highlight
112+
- pymdownx.highlight:
113+
linenums: !ENV [LINENUMS, false]
113114
- pymdownx.blocks.details
114115
- pymdownx.blocks.admonition:
115116
types:

Diff for: scripts/docs-live.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -e
44

55
export DYLD_FALLBACK_LIBRARY_PATH="/opt/homebrew/lib"
66

7-
mkdocs serve --dev-addr 127.0.0.1:8008
7+
LINENUMS="true" mkdocs serve --dev-addr 127.0.0.1:8008

0 commit comments

Comments
 (0)