Skip to content

Commit 1c7bff1

Browse files
Mkdocs but it actually looks decent (#1421)
1 parent 0b125d6 commit 1c7bff1

1 file changed

Lines changed: 101 additions & 3 deletions

File tree

mkdocs.yml

Lines changed: 101 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,35 @@ site_name: openml-python
22
theme:
33
name: material
44
features:
5+
- content.code.annotate
56
- content.code.copy
7+
- navigation.footer
8+
- navigation.sections
9+
- toc.follow
10+
- toc.integrate
11+
- navigation.tabs
12+
- navigation.tabs.sticky
13+
- header.autohide
14+
- search.suggest
15+
- search.highlight
16+
- search.share
617
palette:
18+
- scheme: slate
19+
media: "(prefers-color-scheme: dark)"
20+
primary: indigo
21+
accent: deep purple
22+
toggle:
23+
icon: material/eye-outline
24+
name: Switch to light mode
25+
26+
# Palette toggle for light mode
727
- scheme: default
28+
media: "(prefers-color-scheme: light)"
29+
primary: indigo
30+
accent: deep purple
31+
toggle:
32+
icon: material/eye
33+
name: Switch to dark mode
834

935
extra_css:
1036
- stylesheets/extra.css
@@ -22,24 +48,96 @@ markdown_extensions:
2248
- pymdownx.highlight:
2349
anchor_linenums: true
2450
- pymdownx.superfences
25-
- pymdownx.snippets
2651
- attr_list
52+
- admonition
53+
- tables
54+
- attr_list
55+
- md_in_html
56+
- toc:
57+
permalink: "#"
58+
- pymdownx.highlight:
59+
anchor_linenums: true
60+
- pymdownx.magiclink:
61+
hide_protocol: true
62+
repo_url_shortener: true
63+
repo_url_shorthand: true
64+
user: openml
65+
repo: openml-python
66+
- pymdownx.highlight
67+
- pymdownx.inlinehilite
68+
- pymdownx.snippets
69+
- pymdownx.details
70+
- pymdownx.tabbed:
71+
alternate_style: true
72+
- pymdownx.superfences:
73+
custom_fences:
74+
- name: mermaid
75+
class: mermaid
76+
format: !!python/name:pymdownx.superfences.fence_code_format
77+
- pymdownx.emoji:
78+
emoji_index: !!python/name:material.extensions.emoji.twemoji
79+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
2780
- pymdownx.tabbed:
2881
alternate_style: true
2982

83+
extra:
84+
version:
85+
provider: mike
86+
social:
87+
- icon: fontawesome/brands/github
88+
link: https://github.com/openml
89+
- icon: fontawesome/brands/twitter
90+
link: https://x.com/open_ml
91+
3092
plugins:
3193
- search
3294
- autorefs
3395
- section-index
96+
# - mkdocstrings:
3497
- mkdocstrings:
98+
default_handler: python
99+
enable_inventory: true
35100
handlers:
36101
python:
37-
options:
38-
docstring_style: numpy
102+
# paths: [openml]
103+
options: # https://mkdocstrings.github.io/python/usage/
104+
docstring_section_style: spacy
105+
docstring_options:
106+
ignore_init_summary: true
107+
trim_doctest_flags: true
108+
returns_multiple_items: false
109+
show_docstring_attributes: true
110+
show_docstring_description: true
111+
show_root_heading: true
112+
show_root_toc_entry: true
113+
show_object_full_path: false
114+
show_root_members_full_path: false
115+
signature_crossrefs: true
116+
merge_init_into_class: true
117+
show_symbol_type_heading: true
118+
show_symbol_type_toc: true
119+
docstring_style: google
120+
inherited_members: true
121+
show_if_no_docstring: false
122+
show_bases: true
123+
show_source: true
124+
members_order: "alphabetical"
125+
group_by_category: true
126+
show_signature: true
127+
separate_signature: true
128+
show_signature_annotations: true
129+
filters:
130+
- "!^_[^_]"
131+
39132
- gen-files:
40133
scripts:
41134
- scripts/gen_ref_pages.py
42135
- literate-nav:
43136
nav_file: SUMMARY.md
44137
- mkdocs-jupyter:
45138
theme: light
139+
- mike:
140+
version_selector: true
141+
css_dir: css
142+
javascript_dir: js
143+
canonical_version: latest

0 commit comments

Comments
 (0)