Skip to content

Commit 8f71882

Browse files
committed
Add ehrQL Pygments configuration
We now use `ehrql` syntax labels for complete dataset definitions in the ehrQL documentation. This documentation repository needs to know about this configuration too. This duplication is a little bit irritating, but it is because our multi-repository configuration doesn't have any kind of configuration inheritance or reuse. See opensafely-core/ehrql#1126 A future improvement might be to use the Material for MkDocs projects plugin once it's available in the free version which might also fix this duplication: #1317.
1 parent ab8aa84 commit 8f71882

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mkdocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ markdown_extensions:
167167
format: !!python/name:pymdownx.superfences.fence_code_format
168168
- toc:
169169
permalink: "🔗"
170-
- pymdownx.highlight
170+
- pymdownx.highlight:
171+
extend_pygments_lang:
172+
- name: ehrql
173+
lang: python
171174
- pymdownx.superfences
172175
- pymdownx.tabbed:
173176
alternate_style: true

0 commit comments

Comments
 (0)