Skip to content

Commit

Permalink
Merge pull request #85 from deel-ai/doc/improve_mkdocs
Browse files Browse the repository at this point in the history
Improve mkdocstrings configuration
  • Loading branch information
thib-s authored Nov 10, 2023
2 parents d8da411 + 3454bd6 commit 8f4635b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion docs/api/layers.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
::: deel.lip.layers
options:
show_root_toc_entry: True
inherited_members: True
show_submodules: True
12 changes: 9 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ theme:

plugins:
- search
- mkdocstrings
- mkdocstrings:
handlers:
python:
options:
merge_init_into_class: true
docstring_section_style: spacy
separate_signature: true
- mknotebooks

markdown_extensions:
Expand All @@ -62,8 +68,8 @@ markdown_extensions:
custom_checkbox: true
clickable_checkbox: true
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg

extra_css:
- css/custom.css
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"mkdocstrings-python",
"mknotebooks",
"ipython", # required for Pygments
"black", # required for mkdocs signature rendering
]

setuptools.setup(
Expand Down

0 comments on commit 8f4635b

Please sign in to comment.