Skip to content

Commit a9c378b

Browse files
committed
fix pymdownx.snippets include path for scripts
1 parent 9be3631 commit a9c378b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

docs/posts/2025/2025-02-01-python-type-hints.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -585,14 +585,14 @@ And test on a single [Generics](https://mypy.readthedocs.io/en/stable/generics.h
585585
Test code:
586586

587587
```python title="mypy_demo.py" linenums="1"
588-
--8<-- "scripts/2025/mypy_demo.py"
588+
--8<-- "posts/2025/scripts/mypy_demo.py"
589589
```
590590

591591
Test results:
592592

593-
=== "ty output" linenums="1"
593+
=== "ty output"
594594

595-
```bash
595+
```bash linenums="1"
596596
$ ty --version
597597
ty 0.0.1-alpha.14
598598

@@ -649,9 +649,9 @@ Test results:
649649
Found 3 diagnostics
650650
```
651651

652-
=== "pyrefly output" linenums="1"
652+
=== "pyrefly output"
653653

654-
```bash
654+
```bash linenums="1"
655655
$ pyrefly --version
656656
pyrefly 0.23.1
657657

File renamed without changes.

mkdocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ markdown_extensions:
4949
- pymdownx.inlinehilite
5050
- pymdownx.magiclink
5151
- pymdownx.mark
52-
- pymdownx.snippets
52+
- pymdownx.snippets:
53+
base_path: docs
54+
check_paths: true
5355
- pymdownx.superfences:
5456
custom_fences:
5557
- class: mermaid

0 commit comments

Comments
 (0)