Skip to content

Commit

Permalink
🔧 Show line numbers during local development
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Nov 28, 2023
1 parent 2b0dfb5 commit e658b93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs-live.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e658b93

Please sign in to comment.