🔧 Show line numbers in docs during local development (#714)

🔧 Show line numbers during local development
This commit is contained in:
Sebastián Ramírez 2023-11-28 23:41:03 +01:00 committed by GitHub
parent 2b0dfb50c8
commit 33c5e5c98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -109,7 +109,8 @@ markdown_extensions:
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format ''
- pymdownx.betterem
- pymdownx.highlight
- pymdownx.highlight:
linenums: !ENV [LINENUMS, false]
- pymdownx.blocks.details
- pymdownx.blocks.admonition:
types:

View File

@ -4,4 +4,4 @@ set -e
export DYLD_FALLBACK_LIBRARY_PATH="/opt/homebrew/lib"
mkdocs serve --dev-addr 127.0.0.1:8008
LINENUMS="true" mkdocs serve --dev-addr 127.0.0.1:8008