forked from tektronix/tm_devices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkdocs.yml
187 lines (187 loc) · 5.46 KB
/
mkdocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
---
site_name: tm_devices
repo_url: https://github.com/tektronix/tm_devices
edit_uri: ''
site_author: Tektronix
site_description: Manage connections and interactions with Test & Measurement devices.
copyright: © Copyright 2022, Tektronix
strict: true
site_url: !ENV [READTHEDOCS_CANONICAL_URL, null]
use_directory_urls: true
exclude_docs: |
*.py
*.txt
_templates/
includes/
__*/
validation:
omitted_files: warn
absolute_links: warn
unrecognized_links: warn
not_found: warn
anchors: warn
theme:
name: readthedocs
analytics:
gtag: G-SDPEX4WBKJ
highlightjs: false
custom_dir: docs/_templates/readthedocs
include_homepage_in_sidebar: false
titles_only: false
navigation_depth: 20
collapse_navigation: true
sticky_navigation: true
features: [content.tooltips]
extra_css:
- _static/css/api_labels.css
- _static/css/api_symbols.css
- _static/css/code_styles.css
- _static/css/theme_overrides.css
- _static/css/copybutton.css
extra_javascript:
- _static/js/insert-hr.js
- _static/js/clipboard.min.js
- _static/js/copybutton.js
markdown_extensions:
- meta
- toc:
permalink: true
- tables
- fenced_code
- abbr
- smarty
- admonition
- footnotes
- md_in_html
- sane_lists
- attr_list
- def_list
- pymdownx.snippets:
check_paths: true
- pymdownx.highlight:
use_pygments: true
pygments_style: default
pygments_lang_class: true
code_attr_on_pre: true
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:mermaid2.fence_mermaid
- pymdownx.inlinehilite
plugins:
- search:
prebuild_index: true
- include-markdown
- section-index
- autorefs
- macros:
module_name: docs/macros
on_error_fail: true
on_undefined: strict
- gen-files:
# noinspection YAMLIncompatibleTypes
enabled: !ENV [TM_DEVICES_API_GENERATION, true]
scripts: [docs/generate_api_pages.py]
- literate-nav
- ezglossary:
tooltip: full
strict: true
use_default: true
inline_refs: none
markdown_links: true
- mermaid2:
version: 11.3.0
- mkdocstrings: # additional customization takes place in docs/generate_api_pages.py
# noinspection YAMLIncompatibleTypes
enabled: !ENV [TM_DEVICES_API_GENERATION, true]
enable_inventory: true
custom_templates: docs/_templates/mkdocstrings
handlers:
python: # see https://mkdocstrings.github.io/python/usage/
paths: [src]
options:
# General options
extensions: [docs/griffe_custom_decorator_labels.py]
show_inheritance_diagram: true
show_source: false # a link is included at the top of each page
# Headings options
heading_level: 1
show_root_heading: true
show_root_full_path: false
show_category_heading: false
show_symbol_type_heading: true
show_symbol_type_toc: false
# Members options
inherited_members: true
members_order: alphabetical
filters: ['!^_', ^__init__]
summary: false # Currently implemented with custom templates
show_labels: true
# Docstrings options
docstring_options:
ignore_init_summary: true
trim_doctest_flags: true
docstring_section_style: list
merge_init_into_class: true
# Signature options
line_length: 100
show_signature_annotations: true
signature_crossrefs: true
separate_signature: true
import:
- url: https://docs.python.org/3/objects.inv
domains: [std, py]
- url: https://typing-extensions.readthedocs.io/en/stable/objects.inv
domains: [std, py]
- url: https://pyvisa.readthedocs.io/en/stable/objects.inv
domains: [std, py]
- url: https://packaging.pypa.io/en/stable/objects.inv
domains: [std, py]
- url: https://docs.python-requests.org/en/stable/objects.inv
domains: [std, py]
- spellcheck:
known_words: known_words.txt
skip_files: [CHANGELOG.md, reference/*]
backends:
- symspellpy
- codespell:
dictionaries:
- clear
- rare
- informal
- usage
- code
- names
- en-GB_to_en-US
ignore_code: true
min_length: 2
max_capital: 1
allow_unicode: true
strict_only: true
not_in_nav: |
includes/*
nav: # The first entry in each section needs a hard-coded title to avoid being folded in as the section index
- index.md
- The Basics:
- Key Features: key_features.md
- basic_usage.md
- configuration.md
- glossary.md
- CHANGELOG.md
- Advanced Topics:
- Architectural Overview: advanced/architecture.md
- advanced/advanced_usage.md
- advanced/signal_generators.md
- Troubleshooting:
- Troubleshooting Usage: troubleshooting/usage.md
- Troubleshooting Contributions: troubleshooting/contributions.md
- Contributing:
- Contributing Guidelines: CONTRIBUTING.md
- contributing/add_driver_methods.md
- contributing/add_new_device_type.md
- contributing/add_new_driver.md
- contributing/unit_tests.md
- CODE_OF_CONDUCT.md
- LICENSE.md
- API Reference: reference/