Skip to content

Commit

Permalink
Add ehrQL Pygments configuration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
StevenMaude committed Nov 7, 2023
1 parent ab8aa84 commit 289329c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 289329c

Please sign in to comment.