Skip to content

Commit

Permalink
Enable sphinx-like behavior through mkdocstrings-python extension
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmarwitz committed Nov 5, 2024
1 parent 8daf954 commit e02c269
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 95 deletions.
6 changes: 5 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ plugins:
- search
- mkdocs-jupyter:
ignore_h1_titles: False # Heading H1 -> Site title
execute: false
execute: false # TODO: Discuss whether this should be turned back on later
allow_errors: false
show_input: True
include_source: True
Expand All @@ -54,13 +54,17 @@ plugins:
python:
paths: [metalearners]
options:
extensions:
- griffe_inherited_docstrings:
merge: True
unwrap_annotated: true
show_symbol_type_heading: true
docstring_style: numpy
docstring_section_style: spacy
separate_signature: true
merge_init_into_class: true
show_submodules: true # show *all* code docu
inherited_members: true

nav:
# Demonstrate notebook inclusion
Expand Down
Loading

0 comments on commit e02c269

Please sign in to comment.