Skip to content

Commit 6cea17c

Browse files
authored
Merge pull request #87 from melissawm/document-options
Add comments on mkdocstrings options
2 parents 1277306 + 0e3296b commit 6cea17c

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
@@ -100,45 +100,27 @@ plugins:
100100
- https://docs.python.org/3/objects.inv
101101
options: # See https://mkdocstrings.github.io/python/usage/#globallocal-options
102102
# General options
103-
find_stubs_package: true
104-
allow_inspection: true
105-
show_bases: true
106-
show_source: false
107-
preload_modules: ""
103+
enable_inventory: true # Create an objects.inv file
104+
show_source: false # Do now show source code for objects
108105
# Heading options
109-
heading_level: 2
110-
parameter_headings: true
111-
show_root_heading: false
112-
annotations_path: source
113-
enable_inventory: true
114-
show_root_toc_entry: false
115-
show_root_full_path: true
116-
show_root_members_full_path: true
117-
show_object_full_path: false
118-
show_category_heading: false
119-
show_symbol_type_heading: true
120-
show_symbol_type_toc: false
106+
show_root_heading: false # Do now show module name as heading, default
107+
show_root_toc_entry: false # Do not create anchor for acquire module itself
108+
show_root_members_full_path: true # Show full path for members, i.e.
109+
# acquire.Camera instead of Camera
110+
show_symbol_type_heading: true # Show the symbol type in headings (i.e. `method`, `class`)
121111
# Members options
122-
inherited_members: false
123-
members: true
124-
members_order: "alphabetical"
125-
filters: ["!^_", "!dict"] # Remove private members
126-
group_by_category: true
127-
show_submodules: false
128-
summary: true
129-
show_labels: false
112+
members: true # An explicit list of members to render (true for all)
113+
inherited_members: false # Do not render any inherited members (for classes)
114+
members_order: "alphabetical" # Order members alphabetically, default
115+
filters: ["!^_", "!dict"] # Remove private and unwanted members
116+
summary: true # Whether to render summaries of objects. Insiders only for now
117+
show_labels: false # Whether to show labels of the members
130118
# Docstring options
131119
docstring_style: google
132-
# docstring_options: {}
133-
docstring_section_style: table
134-
merge_init_into_class: false
135-
show_if_no_docstring: false
120+
# docstring_options: {} # Can be customized, see https://mkdocstrings.github.io/python/usage/configuration/docstrings/#docstring_options
121+
docstring_section_style: table # The style used to render docstring sections, default
122+
show_if_no_docstring: false # Default
136123
# Signature/annotation options
137-
annotations_path: "brief"
138-
line_length: 60
139-
show_signature: true
140-
show_signature_annotations: true
141-
signature_crossrefs: true
142-
separate_signature: false
143-
unwrap_annotated: false
144-
modernize_annotations: false
124+
annotations_path: "brief" # The verbosity for annotations path, default
125+
show_signature_annotations: true # Show the type annotations in methods and functions signatures
126+
signature_crossrefs: true # Whether to render cross-references for type annotations in signatures

0 commit comments

Comments
 (0)