From 289329c72a52f5b8af829ddf7bc16c8de916dcb7 Mon Sep 17 00:00:00 2001 From: Steven Maude Date: Tue, 7 Nov 2023 14:27:29 +0000 Subject: [PATCH] Add ehrQL Pygments configuration We now use `ehrql` syntax labels for complete dataset definitions in the ehrQL documentation: opensafely-core/ehrql#1648. 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. --- mkdocs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mkdocs.yml b/mkdocs.yml index 2e807e10b..94cb01c0f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -167,7 +167,10 @@ markdown_extensions: format: !!python/name:pymdownx.superfences.fence_code_format - toc: permalink: "🔗" - - pymdownx.highlight + - pymdownx.highlight: + extend_pygments_lang: + - name: ehrql + lang: python - pymdownx.superfences - pymdownx.tabbed: alternate_style: true