-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkdocs.yml
181 lines (174 loc) · 5.25 KB
/
mkdocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
site_name: DocString to PDF
site_url: "https://ningensei848.github.io/docstring2pdf"
site_description: This is Documentation for docstring2pdf
repo_url: https://github.com/ningensei848/docstring2pdf
repo_name: "ningensei848/docstring2pdf"
site_author: "Ningensei848"
copyright: "© 2023 Kiai de Nantoka"
# Build directories --------------------------------------------------------------------
# cf. https://www.mkdocs.org/user-guide/configuration/?#build-directories
theme:
name: "material"
custom_dir: overrides
favicon: https://ningensei848.github.io/img/favicon.ico
icon:
repo: fontawesome/brands/github
font:
text: BIZ UDPGothic
code: Noto Sans Mono
palette:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
- header.autohide
- navigation.expand
- navigation.top
- navigation.footer
- content.code.copy
- content.code.annotate
search:
lang: 'ja'
docs_dir: docs
site_dir: build
extra_css:
- stylesheets/base.css
- stylesheets/material.css
- stylesheets/mkdocstrings.css
# Preview controls ---------------------------------------------------------------------
# cf. https://www.mkdocs.org/user-guide/configuration/?#preview-controls
watch:
- docs
- scripts
# Formatting options -------------------------------------------------------------------
# cf. https://www.mkdocs.org/user-guide/configuration/?#formatting-options
plugins:
# 検索フォーム設置
- search:
# 検索インデックスの単語区切り文字設定
separator: '[\s\-\.]+'
- glightbox # cf. https://blueswen.github.io/mkdocs-glightbox/
- gen-files:
scripts:
- scripts/gen_ref_pages.py # 自動生成
- literate-nav:
nav_file: SUMMARY.md
- section-index
- social:
cards_font: Noto Sans JP
# docstring から自動生成
# cf. https://mkdocstrings.github.io/python/usage/
- mkdocstrings:
handlers:
python:
options:
docstring_style: google
docstring_options:
ignore_init_summary: yes
merge_init_into_class: yes
show_submodules: no
show_source: yes
# サイトではなく PDF として出力
- with-pdf: # cf. https://github.com/orzih/mkdocs-with-pdf
# author:
# copyright:
# 表紙の設定 ----------------------------
# cover: false
# back_cover: true
# cover_title: TITLE TEXT
cover_subtitle: via GitHub Actions # default is "None"
# custom_template_path: TEMPLATES PATH
# 目次の設定 ----------------------------
# toc_title: TOC TITLE TEXT
# heading_shift: false
# toc_level: 3
# ordered_chapter_level: 2
# excludes_children:
# - 'release-notes/:upgrading'
# - 'release-notes/:changelog'
# -------------------------------------
# exclude_pages:
# - 'bugs/'
# - 'appendix/contribute/'
# convert_iframe:
# - src: IFRAME SRC
# img: POSTER IMAGE URL
# text: ALTERNATE TEXT
# - src: ...
# two_columns_level: 3
#
# render_js: true
# headless_chrome_path: headless-chromium
#
output_path: document.pdf
enabled_if_env: ENABLE_PDF_EXPORT
#
# debug_html: true
# show_anchors: true
# verbose: true
# Markdown extensions ------------------------------------------------------------------
markdown_extensions:
- attr_list
- md_in_html
- admonition
- pymdownx.details
- pymdownx.emoji
- pymdownx.magiclink
- pymdownx.snippets:
check_paths: true
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist
- pymdownx.inlinehilite
- pymdownx.highlight:
anchor_linenums: true
use_pygments: true
pygments_lang_class: true
auto_title: true
linenums: true
linenums_style: pymdownx-inline
- pymdownx.superfences
- toc:
permalink: "¤"
# Documentation layout -----------------------------------------------------------------
# cf. https://www.mkdocs.org/user-guide/configuration/?#documentation-layout
nav:
- Home:
- Overview: index.md
- Getting Started: how-it-works.md
- Installation: how-to-install.md
- Export & Upload: how-to-use.md
# - Changelog: changelog.md
# - Credits: credits.md
# - Usage:
# - usage.md
# - Theming: theming.md
# - Troubleshooting: troubleshooting.md
# defer to gen-files + literate-nav
- Code Reference: reference/
- License: license.md
# - Development:
# - Contributing: contributing.md
# - Code of Conduct: code_of_conduct.md
# - Coverage report: coverage.md
# Extra --------------------------------------------------------------------------------
extra:
social:
- icon: fontawesome/brands/twitter
link: https://twitter.com/Ningensei848
name: Ningensei848 on Twitter
- icon: fontawesome/brands/github
link: https://github.com/Ningensei848/docstring2pdf
analytics:
provider: google
property: G-XXXXXXXXXX