|
a |
|
b/mkdocs.yml |
|
|
1 |
# NOTE: This mkdocs.yml contains the minimum config required to run |
|
|
2 |
# ehrQL's docs locally. These docs do not run in isolation in production. |
|
|
3 |
# |
|
|
4 |
# In production, the ehrql docs are pulled into and built with the main docs at |
|
|
5 |
# https://github.com/opensafely/documentation |
|
|
6 |
# |
|
|
7 |
# The contents of this mkdocs.yml are ignore in the production build. |
|
|
8 |
# |
|
|
9 |
site_name: OpenSAFELY ehrQL documentation |
|
|
10 |
repo_url: https://github.com/opensafely-core/ehrql |
|
|
11 |
docs_dir: docs |
|
|
12 |
|
|
|
13 |
# Dotfiles/dotdirectories and the top-level templates directory |
|
|
14 |
# are implicit entries for exclude_docs. |
|
|
15 |
# https://www.mkdocs.org/user-guide/configuration/#exclude_docs |
|
|
16 |
exclude_docs: | |
|
|
17 |
/includes/ |
|
|
18 |
|
|
|
19 |
not_in_nav: | |
|
|
20 |
/reference/schemas/ |
|
|
21 |
|
|
|
22 |
validation: |
|
|
23 |
links: |
|
|
24 |
unrecognized_links: warn |
|
|
25 |
|
|
|
26 |
nav: |
|
|
27 |
- ehrQL: index.md |
|
|
28 |
- Tutorial: |
|
|
29 |
- Tutorial: tutorial/index.md |
|
|
30 |
- Setting up: tutorial/setting-up/index.md |
|
|
31 |
- Working with data with ehrQL: tutorial/working-with-data-with-ehrql/index.md |
|
|
32 |
- Simple transformations: tutorial/simple-transformations/index.md |
|
|
33 |
- More complex transformations: tutorial/more-complex-transformations/index.md |
|
|
34 |
- Building a dataset: tutorial/building-a-dataset/index.md |
|
|
35 |
- Using ehrQL as part of a study: tutorial/using-ehrql-as-part-of-a-study/index.md |
|
|
36 |
- Quiz: tutorial/quiz/index.md |
|
|
37 |
- How-to guides: |
|
|
38 |
- How-to guides: how-to/index.md |
|
|
39 |
- Using ehrQL to answer specific questions: how-to/examples.md |
|
|
40 |
- How to include and exclude patients from your study population: how-to/define-population.md |
|
|
41 |
- Resolving ehrQL errors: how-to/errors.md |
|
|
42 |
- How to use dummy data in an ehrQL dataset definition: how-to/dummy-data.md |
|
|
43 |
- How to use dummy data in an ehrQL measures definition: how-to/dummy-measures-data.md |
|
|
44 |
- How to assign multiple columns to a dataset programmatically: how-to/assign-multiple-columns.md |
|
|
45 |
- How to work with codelists: how-to/codelists.md |
|
|
46 |
- How to test your dataset definition: how-to/test-dataset-definition.md |
|
|
47 |
- Reference: |
|
|
48 |
- Reference: reference/index.md |
|
|
49 |
- Language reference: reference/language.md |
|
|
50 |
- Language features: reference/features.md |
|
|
51 |
- Backends: reference/backends.md |
|
|
52 |
- Table schemas: reference/schemas.md |
|
|
53 |
- Command line interface: reference/cli.md |
|
|
54 |
- Cheatsheet: reference/cheatsheet.md |
|
|
55 |
- Upgrading ehrQL from v0 to v1: reference/upgrading-ehrql-from-v0-to-v1.md |
|
|
56 |
- Explanations: |
|
|
57 |
- Explanations: explanation/index.md |
|
|
58 |
- ehrQL backend tables: explanation/backend-tables.md |
|
|
59 |
- ehrQL output formats: explanation/output-formats.md |
|
|
60 |
- Using ehrQL in OpenSAFELY projects: explanation/using-ehrql-in-opensafely-projects.md |
|
|
61 |
- Running ehrQL: explanation/running-ehrql.md |
|
|
62 |
- Using the measures framework: explanation/measures.md |
|
|
63 |
- Selecting populations for study: explanation/selecting-populations-for-study.md |
|
|
64 |
- The OpenSAFELY VS Code extension: explanation/vscode-extension.md |
|
|
65 |
|
|
|
66 |
theme: |
|
|
67 |
name: material |
|
|
68 |
features: |
|
|
69 |
- content.action.edit |
|
|
70 |
- content.code.copy |
|
|
71 |
- navigation.footer |
|
|
72 |
- navigation.indexes |
|
|
73 |
|
|
|
74 |
extra_css: |
|
|
75 |
- stylesheets/extra.css |
|
|
76 |
|
|
|
77 |
watch: |
|
|
78 |
- docs |
|
|
79 |
|
|
|
80 |
# WARNING! |
|
|
81 |
# This markdown_extensions config (with the exception of the snippets base_path) is duplicated |
|
|
82 |
# from the mkdocs.yml in the parent repo (https://github.com/opensafely/documentation) in order |
|
|
83 |
# to build local docs with similar styling. If any changes/additions are needed, ensure they are |
|
|
84 |
# made in the parent repo also. |
|
|
85 |
markdown_extensions: |
|
|
86 |
- pymdownx.details |
|
|
87 |
- pymdownx.snippets: |
|
|
88 |
check_paths: true |
|
|
89 |
base_path: docs |
|
|
90 |
- pymdownx.superfences: |
|
|
91 |
custom_fences: |
|
|
92 |
- name: mermaid |
|
|
93 |
class: mermaid |
|
|
94 |
format: !!python/name:pymdownx.superfences.fence_code_format |
|
|
95 |
- toc: |
|
|
96 |
permalink: "🔗" |
|
|
97 |
- pymdownx.highlight: |
|
|
98 |
extend_pygments_lang: |
|
|
99 |
- name: ehrql |
|
|
100 |
lang: python |
|
|
101 |
- pymdownx.tabbed: |
|
|
102 |
alternate_style: true |
|
|
103 |
- pymdownx.keys |
|
|
104 |
- admonition |
|
|
105 |
- footnotes |
|
|
106 |
- abbr |
|
|
107 |
- md_in_html |
|
|
108 |
- attr_list |
|
|
109 |
- pymdownx.emoji: |
|
|
110 |
emoji_index: !!python/name:material.extensions.emoji.twemoji |
|
|
111 |
emoji_generator: !!python/name:material.extensions.emoji.to_svg |
|
|
112 |
|
|
|
113 |
# This hook adds some clarifying studying around snippets that will be incorporated |
|
|
114 |
# from the parent repo, and is relevant for local development only. |
|
|
115 |
hooks: |
|
|
116 |
- hooks/parent_snippets.py |