-
Notifications
You must be signed in to change notification settings - Fork 150
/
mkdocs.yml
177 lines (165 loc) · 5.43 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
site_name: FastStream
# description to improve website indexing
site_description: FastStream Python messaging framework documentation
site_url: https://faststream.airt.ai/
site_author: airt
copyright: '© 2024 <a href="https://airt.ai/" target="_blank" rel="noopener">airt</a>'
docs_dir: docs
watch:
- docs
- docs_src
- includes
- overrides
repo_name: airtai/faststream
repo_url: https://github.com/airtai/faststream
edit_uri: https://github.com/airtai/faststream/tree/main/docs/docs
exclude_docs: |
navigation_template.txt
SUMMARY.md
theme:
name: material
custom_dir: overrides
logo: assets/img/logo.svg
favicon: assets/img/logo.svg
font:
text: Roboto
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: custom
toggle:
icon: material/brightness-4
name: Switch to light mode
icon:
repo: fontawesome/brands/github
edit: material/pencil-circle-outline
features:
- search.suggest
- search.highlight
- navigation.tabs # navbar navigation
- navigation.tabs.sticky # navbar always expanded
- navigation.indexes # attach index document direct to section
- navigation.tracking # show current TOC section in the page url
- navigation.prune # reduce render size
- navigation.top # back-to-top btn
- navigation.footer # show footer with next/prev btns
# - navigation.path # (insiders) breadcrumbs
- content.tabs.link # sync total page tabs
# - content.tooltips # (insiders) improved tooltips
- content.code.copy
- content.code.annotate # code annotations with # (1)
# - content.code.select # (insiders) highlight line under cursor
- content.action.edit # add edit btn at every page
extra_css:
- stylesheets/extra.css
extra_javascript:
- javascripts/extra.js
plugins:
- search:
separator: '[\s\-,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
# - meta # (insiders) use .meta.yml files
- glightbox: # image zoom
manual: true
- macros: # Jinja templates
include_dir: includes
include_yaml:
- people: ../docs/data/people.yml
- mkdocstrings: # Generate References
default_handler: python
handlers:
python:
import:
- https://docs.python.org/3/objects.inv
options:
preload_modules:
- httpx
- starlette
- fastapi
filters:
- '!^_'
show_root_heading: true
show_if_no_docstring: true
inherited_members: true
members_order: source
separate_signature: true
unwrap_annotated: true
merge_init_into_class: true
docstring_section_style: spacy
signature_crossrefs: true
show_symbol_type_heading: true
show_symbol_type_toc: true
# show_docstring_attributes: false
# show_signature_annotations: true
# load_external_modules: true
- i18n:
docs_structure: folder
reconfigure_material: true
reconfigure_search: true
languages:
- locale: en
default: true
name: en - English
build: true
- git-revision-date-localized: # show page edition date
enabled: !ENV [CI, false]
type: timeago
- literate-nav: # .md importable navigation
nav_file: SUMMARY.md
- minify:
minify_html: true
minify_js: true
minify_css: true
htmlmin_opts:
remove_comments: true
cache_safe: true
css_files:
- stylesheets/extra.css
- mike: # versioning
alias_type: copy
redirect_template: templates/redirect.html
canonical_version: latest
hooks:
- create_api_docs.py
markdown_extensions:
- toc:
permalink: "#" # replace TOC block symbol
toc_depth: 3
- mdx_include:
base_path: .
line_slice_separator: []
- extra
- admonition # !!! note blocks support
- pymdownx.details # admonition collapsible
- pymdownx.superfences # highlight code syntax
- pymdownx.highlight:
anchor_linenums: true # allows link to codeline
- pymdownx.inlinehilite # inline code highlighting `#!python <code>`
- pymdownx.tabbed:
alternate_style: true # create tabs group
- attr_list # specify html attrs in markdown
- md_in_html # render md wrapped to html tags
extra:
analytics:
provider: google
property: G-HDTMP5FFHP
social_image: https://opengraph.githubassets.com/1671805243.560327/airtai/faststream
social:
# Discord link should be first
- icon: fontawesome/brands/discord
link: https://discord.gg/qFm6aSqq59
- icon: fontawesome/brands/github-alt
link: https://github.com/airtai/faststream
- icon: fontawesome/brands/twitter
link: https://x.com/airt_AI
- icon: fontawesome/brands/facebook
link: https://www.facebook.com/airt.ai.api/
- icon: fontawesome/brands/linkedin
link: https://www.linkedin.com/company/airt-ai/
version:
provider: mike