Skip to content

Commit 0e3296b

Browse files
committed
Add comments on mkdocstrings options
Most options using default values are not included, they can be seen at https://mkdocstrings.github.io/python/usage/
1 parent cf77383 commit 0e3296b

File tree

1 file changed

+19
-37
lines changed

1 file changed

+19
-37
lines changed

mkdocs.yml

Lines changed: 19 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -92,45 +92,27 @@ plugins:
9292
- https://docs.python.org/3/objects.inv
9393
options: # See https://mkdocstrings.github.io/python/usage/#globallocal-options
9494
# General options
95-
find_stubs_package: true
96-
allow_inspection: true
97-
show_bases: true
98-
show_source: false
99-
preload_modules: ""
95+
enable_inventory: true # Create an objects.inv file
96+
show_source: false # Do now show source code for objects
10097
# Heading options
101-
heading_level: 2
102-
parameter_headings: true
103-
show_root_heading: false
104-
annotations_path: source
105-
enable_inventory: true
106-
show_root_toc_entry: false
107-
show_root_full_path: true
108-
show_root_members_full_path: true
109-
show_object_full_path: false
110-
show_category_heading: false
111-
show_symbol_type_heading: true
112-
show_symbol_type_toc: false
98+
show_root_heading: false # Do now show module name as heading, default
99+
show_root_toc_entry: false # Do not create anchor for acquire module itself
100+
show_root_members_full_path: true # Show full path for members, i.e.
101+
# acquire.Camera instead of Camera
102+
show_symbol_type_heading: true # Show the symbol type in headings (i.e. `method`, `class`)
113103
# Members options
114-
inherited_members: false
115-
members: true
116-
members_order: "alphabetical"
117-
filters: ["!^_", "!dict"] # Remove private members
118-
group_by_category: true
119-
show_submodules: false
120-
summary: true
121-
show_labels: false
104+
members: true # An explicit list of members to render (true for all)
105+
inherited_members: false # Do not render any inherited members (for classes)
106+
members_order: "alphabetical" # Order members alphabetically, default
107+
filters: ["!^_", "!dict"] # Remove private and unwanted members
108+
summary: true # Whether to render summaries of objects. Insiders only for now
109+
show_labels: false # Whether to show labels of the members
122110
# Docstring options
123111
docstring_style: google
124-
# docstring_options: {}
125-
docstring_section_style: table
126-
merge_init_into_class: false
127-
show_if_no_docstring: false
112+
# docstring_options: {} # Can be customized, see https://mkdocstrings.github.io/python/usage/configuration/docstrings/#docstring_options
113+
docstring_section_style: table # The style used to render docstring sections, default
114+
show_if_no_docstring: false # Default
128115
# Signature/annotation options
129-
annotations_path: "brief"
130-
line_length: 60
131-
show_signature: true
132-
show_signature_annotations: true
133-
signature_crossrefs: true
134-
separate_signature: false
135-
unwrap_annotated: false
136-
modernize_annotations: false
116+
annotations_path: "brief" # The verbosity for annotations path, default
117+
show_signature_annotations: true # Show the type annotations in methods and functions signatures
118+
signature_crossrefs: true # Whether to render cross-references for type annotations in signatures

0 commit comments

Comments
 (0)