mkdocs-sumi 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mkdocs_sumi-0.1.0/.gitignore +7 -0
- mkdocs_sumi-0.1.0/LICENSE +202 -0
- mkdocs_sumi-0.1.0/NOTICE +23 -0
- mkdocs_sumi-0.1.0/PKG-INFO +76 -0
- mkdocs_sumi-0.1.0/README.md +51 -0
- mkdocs_sumi-0.1.0/docs/assets/sumi-mark.svg +1 -0
- mkdocs_sumi-0.1.0/docs/blog/.authors.yml +6 -0
- mkdocs_sumi-0.1.0/docs/blog/index.md +7 -0
- mkdocs_sumi-0.1.0/docs/blog/posts/2026-11-01-introducing-sumi.md +46 -0
- mkdocs_sumi-0.1.0/docs/docs/ai.md +63 -0
- mkdocs_sumi-0.1.0/docs/docs/customize/i18n.md +29 -0
- mkdocs_sumi-0.1.0/docs/docs/customize/navigation.md +78 -0
- mkdocs_sumi-0.1.0/docs/docs/customize/overrides.md +79 -0
- mkdocs_sumi-0.1.0/docs/docs/customize/plugin.md +49 -0
- mkdocs_sumi-0.1.0/docs/docs/customize/search.md +53 -0
- mkdocs_sumi-0.1.0/docs/docs/customize/theme.md +95 -0
- mkdocs_sumi-0.1.0/docs/docs/design.md +41 -0
- mkdocs_sumi-0.1.0/docs/docs/index.md +38 -0
- mkdocs_sumi-0.1.0/docs/docs/pages/blog.md +80 -0
- mkdocs_sumi-0.1.0/docs/docs/pages/landing.md +64 -0
- mkdocs_sumi-0.1.0/docs/docs/pages/print.md +28 -0
- mkdocs_sumi-0.1.0/docs/docs/pages/releases.md +52 -0
- mkdocs_sumi-0.1.0/docs/docs/start/first-site.md +67 -0
- mkdocs_sumi-0.1.0/docs/docs/start/install.md +56 -0
- mkdocs_sumi-0.1.0/docs/docs/start/migrate.md +40 -0
- mkdocs_sumi-0.1.0/docs/docs/write/callouts.md +94 -0
- mkdocs_sumi-0.1.0/docs/docs/write/cards.md +51 -0
- mkdocs_sumi-0.1.0/docs/docs/write/code.md +81 -0
- mkdocs_sumi-0.1.0/docs/docs/write/diagrams.md +64 -0
- mkdocs_sumi-0.1.0/docs/docs/write/fields.md +49 -0
- mkdocs_sumi-0.1.0/docs/docs/write/filetree.md +68 -0
- mkdocs_sumi-0.1.0/docs/docs/write/images.md +52 -0
- mkdocs_sumi-0.1.0/docs/docs/write/index.md +58 -0
- mkdocs_sumi-0.1.0/docs/docs/write/keys-icons.md +57 -0
- mkdocs_sumi-0.1.0/docs/docs/write/math.md +42 -0
- mkdocs_sumi-0.1.0/docs/docs/write/steps.md +58 -0
- mkdocs_sumi-0.1.0/docs/docs/write/tables.md +62 -0
- mkdocs_sumi-0.1.0/docs/docs/write/tabs.md +87 -0
- mkdocs_sumi-0.1.0/docs/index.md +107 -0
- mkdocs_sumi-0.1.0/docs/releases.md +17 -0
- mkdocs_sumi-0.1.0/docs/releases.yml +16 -0
- mkdocs_sumi-0.1.0/mkdocs.yml +71 -0
- mkdocs_sumi-0.1.0/pyproject.toml +54 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/__init__.py +3 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/i18n.py +192 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/icons.py +52 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/landing.py +84 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/markdown/__init__.py +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/markdown/attrs.py +47 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/markdown/extension.py +577 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/markdown/filetree.py +133 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/plugin.py +622 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/404.html +15 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/__init__.py +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/css/sumi.css +1001 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/fonts/LICENSE-Inter.txt +93 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/fonts/LICENSE-JetBrainsMono.txt +93 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/fonts/inter-latin-ext-wght-italic.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/fonts/inter-latin-wght-italic.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/fonts/inter-latin-wght-normal.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/fonts/jetbrains-mono-latin-wght-italic.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/images/favicon.svg +1 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/assets/js/sumi.js +607 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/base.html +150 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/blog-post.html +36 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/blog.html +63 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/landing.html +143 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/main.html +2 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/mkdocs_theme.yml +30 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/partials/analytics.html +8 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/partials/article-footer.html +18 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/partials/breadcrumbs.html +11 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/partials/footer.html +20 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/partials/header.html +49 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/partials/logo.html +1 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/partials/macros.html +77 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/partials/page-actions.html +23 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/partials/palette.html +29 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/partials/toc.html +13 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/print.html +27 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/theme/releases.html +45 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/icons/LICENSE-lucide +43 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/icons/LICENSE-simple-icons.md +30 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/icons/brands.json +1 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/icons/lucide.json +1 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/LICENSE +21 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/auto-render.min.js +1 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/katex.min.css +1 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/katex/katex.min.js +1 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/mermaid/LICENSE +21 -0
- mkdocs_sumi-0.1.0/src/mkdocs_sumi/vendor/mermaid/mermaid.min.js +4330 -0
- mkdocs_sumi-0.1.0/tests/conftest.py +24 -0
- mkdocs_sumi-0.1.0/tests/test_browser.py +128 -0
- mkdocs_sumi-0.1.0/tests/test_build.py +141 -0
- mkdocs_sumi-0.1.0/tests/test_extension.py +153 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
mkdocs_sumi-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Sumi
|
|
2
|
+
Copyright 2026 The MkDocs-ng contributors
|
|
3
|
+
|
|
4
|
+
This product includes software and assets developed by third parties,
|
|
5
|
+
distributed under their own licenses. The license texts are included next
|
|
6
|
+
to each component in the package.
|
|
7
|
+
|
|
8
|
+
- Inter (src/mkdocs_sumi/theme/assets/fonts) — SIL Open Font License 1.1,
|
|
9
|
+
Copyright 2016 The Inter Project Authors.
|
|
10
|
+
- JetBrains Mono (src/mkdocs_sumi/theme/assets/fonts) — SIL Open Font
|
|
11
|
+
License 1.1, Copyright 2020 The JetBrains Mono Project Authors.
|
|
12
|
+
- Lucide icons (src/mkdocs_sumi/vendor/icons/lucide.json) — ISC License,
|
|
13
|
+
Copyright Lucide Contributors; portions MIT, Copyright Cole Bemis (Feather).
|
|
14
|
+
- Simple Icons (src/mkdocs_sumi/vendor/icons/brands.json) — CC0 1.0.
|
|
15
|
+
Brand icons are trademarks of their respective owners.
|
|
16
|
+
- Mermaid (src/mkdocs_sumi/vendor/mermaid) — MIT License,
|
|
17
|
+
Copyright Knut Sveidqvist.
|
|
18
|
+
- KaTeX (src/mkdocs_sumi/vendor/katex) — MIT License,
|
|
19
|
+
Copyright Khan Academy and other contributors.
|
|
20
|
+
|
|
21
|
+
Sumi's design principles were inspired by Oink (https://github.com/pgsty/oink),
|
|
22
|
+
a documentation distribution for Hugo by Feng Ruohang. No code from Oink is
|
|
23
|
+
included.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: mkdocs-sumi
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Sumi: a modern, local-first documentation theme for MkDocs.
|
|
5
|
+
Project-URL: Documentation, https://mkdocs-ng.github.io/mkdocs-sumi/
|
|
6
|
+
Project-URL: Source, https://github.com/mkdocs-ng/mkdocs-sumi
|
|
7
|
+
Project-URL: Issues, https://github.com/mkdocs-ng/mkdocs-sumi/issues
|
|
8
|
+
Author-email: Xianpeng Shen <xianpeng.shen@gmail.com>
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
License-File: NOTICE
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Framework :: MkDocs
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Topic :: Documentation
|
|
17
|
+
Classifier: Topic :: Text Processing :: Markup :: Markdown
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Requires-Dist: markdown>=3.6
|
|
20
|
+
Requires-Dist: mkdocs-ng>=1.9
|
|
21
|
+
Requires-Dist: pygments>=2.16
|
|
22
|
+
Provides-Extra: test
|
|
23
|
+
Requires-Dist: pytest>=8; extra == 'test'
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# Sumi
|
|
27
|
+
|
|
28
|
+
**Markdown in. Beautiful docs out.**
|
|
29
|
+
|
|
30
|
+
Sumi is a documentation theme for [MkDocs-ng](https://github.com/mkdocs-ng/mkdocs). It turns a folder of plain Markdown into a complete project site — docs, landing page, blog, release downloads and a print edition — without Node.js, a CDN or a hosted service.
|
|
31
|
+
|
|
32
|
+
[Documentation](https://mkdocs-ng.github.io/mkdocs-sumi/) · [Components](https://mkdocs-ng.github.io/mkdocs-sumi/docs/write/) · [Releases](https://mkdocs-ng.github.io/mkdocs-sumi/releases/)
|
|
33
|
+
|
|
34
|
+
## Quick start
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
pip install mkdocs-sumi
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```yaml
|
|
41
|
+
# mkdocs.yml
|
|
42
|
+
theme:
|
|
43
|
+
name: sumi
|
|
44
|
+
|
|
45
|
+
plugins:
|
|
46
|
+
- search
|
|
47
|
+
- llms_txt # optional: llms.txt and a Markdown copy of every page
|
|
48
|
+
- sumi
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
mkdocs serve
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Highlights
|
|
56
|
+
|
|
57
|
+
- **Components in native Markdown.** Callouts are `> [!NOTE]`, steps are a numbered list with `{.steps}`, tabs are fences with `{tab="…"}`. Your source still reads well on GitHub.
|
|
58
|
+
- **Local-first.** Fonts, 2 000 icons, search, Mermaid and KaTeX ship with the theme. Mermaid and KaTeX load only on pages that use them.
|
|
59
|
+
- **Search as a command palette.** <kbd>⌘</kbd> <kbd>K</kbd> searches every heading, including Chinese and Japanese, and runs commands.
|
|
60
|
+
- **Written for agents too.** Every page has a Markdown twin announced in `<head>`, plus `llms.txt` and *Copy as Markdown*.
|
|
61
|
+
- **One design for the whole project site.** Data-driven landing pages, a blog with tags and an Atom feed, a releases page with checksums, and a whole-site print edition.
|
|
62
|
+
- **Keeps your MkDocs content.** Admonitions, `pymdownx` tabs and details, `mike` versions and Material's `extra` keys keep working.
|
|
63
|
+
|
|
64
|
+
## Development
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
pip install -e ".[test]"
|
|
68
|
+
pytest # unit and build tests
|
|
69
|
+
pip install playwright && playwright install chromium
|
|
70
|
+
pytest tests/test_browser.py # browser tests against the docs site
|
|
71
|
+
mkdocs serve # the docs site is the visual regression suite
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## License
|
|
75
|
+
|
|
76
|
+
Apache 2.0. See [NOTICE](NOTICE) for the licenses of bundled fonts, icons and libraries.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Sumi
|
|
2
|
+
|
|
3
|
+
**Markdown in. Beautiful docs out.**
|
|
4
|
+
|
|
5
|
+
Sumi is a documentation theme for [MkDocs-ng](https://github.com/mkdocs-ng/mkdocs). It turns a folder of plain Markdown into a complete project site — docs, landing page, blog, release downloads and a print edition — without Node.js, a CDN or a hosted service.
|
|
6
|
+
|
|
7
|
+
[Documentation](https://mkdocs-ng.github.io/mkdocs-sumi/) · [Components](https://mkdocs-ng.github.io/mkdocs-sumi/docs/write/) · [Releases](https://mkdocs-ng.github.io/mkdocs-sumi/releases/)
|
|
8
|
+
|
|
9
|
+
## Quick start
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pip install mkdocs-sumi
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```yaml
|
|
16
|
+
# mkdocs.yml
|
|
17
|
+
theme:
|
|
18
|
+
name: sumi
|
|
19
|
+
|
|
20
|
+
plugins:
|
|
21
|
+
- search
|
|
22
|
+
- llms_txt # optional: llms.txt and a Markdown copy of every page
|
|
23
|
+
- sumi
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
mkdocs serve
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Highlights
|
|
31
|
+
|
|
32
|
+
- **Components in native Markdown.** Callouts are `> [!NOTE]`, steps are a numbered list with `{.steps}`, tabs are fences with `{tab="…"}`. Your source still reads well on GitHub.
|
|
33
|
+
- **Local-first.** Fonts, 2 000 icons, search, Mermaid and KaTeX ship with the theme. Mermaid and KaTeX load only on pages that use them.
|
|
34
|
+
- **Search as a command palette.** <kbd>⌘</kbd> <kbd>K</kbd> searches every heading, including Chinese and Japanese, and runs commands.
|
|
35
|
+
- **Written for agents too.** Every page has a Markdown twin announced in `<head>`, plus `llms.txt` and *Copy as Markdown*.
|
|
36
|
+
- **One design for the whole project site.** Data-driven landing pages, a blog with tags and an Atom feed, a releases page with checksums, and a whole-site print edition.
|
|
37
|
+
- **Keeps your MkDocs content.** Admonitions, `pymdownx` tabs and details, `mike` versions and Material's `extra` keys keep working.
|
|
38
|
+
|
|
39
|
+
## Development
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
pip install -e ".[test]"
|
|
43
|
+
pytest # unit and build tests
|
|
44
|
+
pip install playwright && playwright install chromium
|
|
45
|
+
pytest tests/test_browser.py # browser tests against the docs site
|
|
46
|
+
mkdocs serve # the docs site is the visual regression suite
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
Apache 2.0. See [NOTICE](NOTICE) for the licenses of bundled fonts, icons and libraries.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect x="1" y="1" width="30" height="30" rx="8" fill="#c4432b"/><path d="M22.6 10.2a9 9 0 1 0 1.9 7.6" fill="none" stroke="#fff" stroke-width="3.1" stroke-linecap="round"/><circle cx="23.7" cy="13.2" r="1.7" fill="#fff"/></svg>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
date: 2026-11-01
|
|
3
|
+
authors: [xianpeng]
|
|
4
|
+
tags: [release, design]
|
|
5
|
+
description: Sumi 0.1 is a local-first documentation theme for MkDocs that keeps your content in plain Markdown and publishes it for people and agents alike.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Introducing Sumi
|
|
9
|
+
|
|
10
|
+
Today we are releasing Sumi 0.1, a documentation theme for MkDocs-ng. It is the first theme built by the MkDocs-ng project, and it is meant to be a complete answer to "how should our docs look?" for engineering teams.
|
|
11
|
+
|
|
12
|
+
<!-- more -->
|
|
13
|
+
|
|
14
|
+
## Why another theme
|
|
15
|
+
|
|
16
|
+
MkDocs made documentation easy: write Markdown, run one command, get a site. Over the years, good-looking MkDocs sites came to depend on a long list of extensions, each with its own syntax. Content written for one theme stopped making sense anywhere else.
|
|
17
|
+
|
|
18
|
+
Sumi goes back to the original promise. It adds twelve components, each written in plain Markdown — a callout is a blockquote, steps are a numbered list, tabs are labelled code fences. Your source still reads well on GitHub and in a terminal.
|
|
19
|
+
|
|
20
|
+
## What is in 0.1
|
|
21
|
+
|
|
22
|
+
- :lucide-book-open: **A full docs layout** with tabs, a sidebar, an on-page table of contents and previous / next links.
|
|
23
|
+
- :lucide-command: **Search as a command palette**, local and CJK-aware, opened with ++Cmd+K++.
|
|
24
|
+
- :lucide-layout-template: **Landing, blog, releases and print** page types sharing one design.
|
|
25
|
+
- :lucide-sparkles: **A Markdown copy of every page** and `llms.txt` links for AI agents.
|
|
26
|
+
- :lucide-hard-drive: **No CDN**: fonts, icons, Mermaid and KaTeX ship with the theme.
|
|
27
|
+
|
|
28
|
+
## Try it
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
pip install mkdocs-sumi
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```yaml title="mkdocs.yml"
|
|
35
|
+
theme:
|
|
36
|
+
name: sumi
|
|
37
|
+
plugins:
|
|
38
|
+
- search
|
|
39
|
+
- sumi
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Then read [the documentation](../../docs/index.md) — this site is built with Sumi, and every page doubles as an example. Feedback and bug reports are welcome on [GitHub](https://github.com/mkdocs-ng/mkdocs-sumi/issues).
|
|
43
|
+
|
|
44
|
+
## Thanks
|
|
45
|
+
|
|
46
|
+
Sumi's principles owe a lot to [Oink](https://github.com/pgsty/oink) by Feng Ruohang, which showed how much a documentation distribution can do with plain Markdown and no external services.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: How Sumi publishes every page for AI agents — Markdown copies, llms.txt, discovery links and one-click copying.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Docs for people and agents
|
|
6
|
+
|
|
7
|
+
More and more readers of documentation are not people. Coding agents, assistants and search tools read your pages to answer questions about your project, and they read HTML badly: navigation, scripts and styling are noise to them. Sumi publishes every page twice — as a page for people and as plain Markdown for programs.
|
|
8
|
+
|
|
9
|
+
## What Sumi publishes
|
|
10
|
+
|
|
11
|
+
| Output | Where | For |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| HTML page | `guide/install/` | People |
|
|
14
|
+
| Markdown copy | `guide/install.md` | Agents reading one page |
|
|
15
|
+
| `llms.txt` | site root | Agents discovering the site |
|
|
16
|
+
| `llms-full.txt` | site root | Agents loading everything at once (opt-in) |
|
|
17
|
+
| Atom feed | `blog/feed.xml` | Feed readers |
|
|
18
|
+
| Print edition | `print/` | Paper, PDF, offline reading |
|
|
19
|
+
{caption="Every output is a static file. None requires a server."}
|
|
20
|
+
|
|
21
|
+
The Markdown copy and `llms.txt` come from the `llms_txt` plugin that ships with [MkDocs-ng](https://github.com/mkdocs-ng/mkdocs). Enable it next to `sumi`:
|
|
22
|
+
|
|
23
|
+
```yaml title="mkdocs.yml"
|
|
24
|
+
site_url: https://example.com/docs/ # needed for absolute links in llms.txt
|
|
25
|
+
|
|
26
|
+
plugins:
|
|
27
|
+
- search
|
|
28
|
+
- llms_txt:
|
|
29
|
+
full_output: true # also write llms-full.txt
|
|
30
|
+
- sumi
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Try it on this site: open [llms.txt](https://mkdocs-ng.github.io/mkdocs-sumi/llms.txt), or choose **View as Markdown** in the menu at the top of this page.
|
|
34
|
+
|
|
35
|
+
## Discovery
|
|
36
|
+
|
|
37
|
+
Each HTML page announces its Markdown copy in `<head>`:
|
|
38
|
+
|
|
39
|
+
```html
|
|
40
|
+
<link rel="alternate" type="text/markdown" href="ai.md" title="Markdown">
|
|
41
|
+
<link rel="alternate" type="text/plain" href="../llms.txt" title="llms.txt">
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
An agent that lands on any page can find the clean version without guessing URLs.
|
|
45
|
+
|
|
46
|
+
## Copy as Markdown
|
|
47
|
+
|
|
48
|
+
The **Copy as Markdown** button at the top of each page copies the page source — the same text an agent reads — so you can paste it into a chat. The menu next to it can also open the Markdown copy, print the page and, if you enable it, open the page in an assistant:
|
|
49
|
+
|
|
50
|
+
```yaml title="mkdocs.yml"
|
|
51
|
+
plugins:
|
|
52
|
+
- sumi:
|
|
53
|
+
assistant_links: [claude, chatgpt]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
> [!NOTE]
|
|
57
|
+
> Assistant links are off by default: they send the page address to a third-party service when clicked.
|
|
58
|
+
|
|
59
|
+
## Why native Markdown matters here
|
|
60
|
+
|
|
61
|
+
Components written in a private syntax — MDX, shortcodes, HTML widgets — reach an agent either as raw markup it has to interpret or not at all. Sumi's components are ordinary Markdown with an attribute line, so the Markdown copy reads naturally: a callout is a quote, steps are a numbered list, tabs are consecutive code blocks with labels.
|
|
62
|
+
|
|
63
|
+
Landing pages are the one place where content lives in front matter. For those pages, Sumi writes a Markdown copy that lists the hero, features, steps and questions as headings and lists.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Interface languages, CJK typography and translating a site.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Languages
|
|
6
|
+
|
|
7
|
+
Sumi's interface — buttons, labels, the search palette, dates and default callout titles — is available in English, Simplified Chinese and Traditional Chinese.
|
|
8
|
+
|
|
9
|
+
```yaml title="mkdocs.yml"
|
|
10
|
+
theme:
|
|
11
|
+
name: sumi
|
|
12
|
+
locale: zh # en, zh (zh_CN), zh_TW
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## CJK typography
|
|
16
|
+
|
|
17
|
+
When the page language is Chinese, Japanese or Korean, Sumi uses a system font stack suited to the script, a slightly larger line height and no letter-spacing on headings. Search matches CJK text by substring (see [Search](search.md#chinese-japanese-and-korean)).
|
|
18
|
+
|
|
19
|
+
## Callout titles
|
|
20
|
+
|
|
21
|
+
Default callout titles follow the language: `> [!TIP]` is titled *Tip* in English and *提示* in Chinese. A custom title is always used as written.
|
|
22
|
+
|
|
23
|
+
## Multilingual sites
|
|
24
|
+
|
|
25
|
+
Build one MkDocs site per language and link them with `extra.alternate` — see [Navigation](navigation.md#languages). Each site has its own `locale`.
|
|
26
|
+
|
|
27
|
+
## Adding a language
|
|
28
|
+
|
|
29
|
+
Interface strings live in one Python file, `mkdocs_sumi/i18n.py`. A missing string falls back to English. Pull requests for new languages are welcome.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: How tabs, the sidebar, section index pages, breadcrumbs, versions and languages are built.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Navigation
|
|
6
|
+
|
|
7
|
+
Sumi builds its navigation from MkDocs' `nav`, or from your folders when there is no `nav`.
|
|
8
|
+
|
|
9
|
+
```yaml title="mkdocs.yml"
|
|
10
|
+
nav:
|
|
11
|
+
- Home: index.md
|
|
12
|
+
- Guide:
|
|
13
|
+
- guide/index.md # section landing page
|
|
14
|
+
- Install: guide/install.md
|
|
15
|
+
- Configure: guide/configure.md
|
|
16
|
+
- Reference:
|
|
17
|
+
- reference/index.md
|
|
18
|
+
- CLI: reference/cli.md
|
|
19
|
+
- Blog: blog/index.md
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Tabs and sidebar
|
|
23
|
+
|
|
24
|
+
- Each **top-level section** is a tab in the header. The sidebar shows the pages of the active tab only.
|
|
25
|
+
- **Top-level pages**, such as *Home* and *Blog* above, are tabs as well.
|
|
26
|
+
- A section whose first entry is an `index.md` without a title uses that page as its landing: the tab, the sidebar heading and the section name all link to it.
|
|
27
|
+
- Nested sections are collapsible. The section containing the current page is open.
|
|
28
|
+
|
|
29
|
+
On small screens, the tabs and the sidebar move into a drawer opened from the menu button.
|
|
30
|
+
|
|
31
|
+
With `navigation_tabs: false`, the whole navigation is shown in the sidebar.
|
|
32
|
+
|
|
33
|
+
## Table of contents
|
|
34
|
+
|
|
35
|
+
Headings up to `toc_depth` (level 3 by default) are listed on the right, with the current section highlighted as you scroll. On narrow screens the list is folded at the top of the page.
|
|
36
|
+
|
|
37
|
+
## Previous and next
|
|
38
|
+
|
|
39
|
+
Links to the previous and next page follow the navigation order. <kbd>[</kbd> and <kbd>]</kbd> move between pages; <kbd>j</kbd> and <kbd>k</kbd> move between headings.
|
|
40
|
+
|
|
41
|
+
## Versions
|
|
42
|
+
|
|
43
|
+
Sumi reads the `versions.json` file that [mike](https://github.com/jimporter/mike) writes, shows a version menu in the header and a notice on old versions.
|
|
44
|
+
|
|
45
|
+
```yaml title="mkdocs.yml"
|
|
46
|
+
theme:
|
|
47
|
+
name: sumi
|
|
48
|
+
version_provider: mike
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
mike deploy --push --update-aliases 0.2 latest
|
|
53
|
+
mike set-default --push latest
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Languages
|
|
57
|
+
|
|
58
|
+
For a site published in several languages, list them under `extra.alternate`. A language menu appears in the header and in the command palette.
|
|
59
|
+
|
|
60
|
+
```yaml title="mkdocs.yml"
|
|
61
|
+
extra:
|
|
62
|
+
alternate:
|
|
63
|
+
- name: English
|
|
64
|
+
link: /en/
|
|
65
|
+
lang: en
|
|
66
|
+
- name: 简体中文
|
|
67
|
+
link: /zh/
|
|
68
|
+
lang: zh
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Edit links
|
|
72
|
+
|
|
73
|
+
With `repo_url` and `edit_uri`, each page shows **Edit this page** at the bottom and in the page menu.
|
|
74
|
+
|
|
75
|
+
```yaml title="mkdocs.yml"
|
|
76
|
+
repo_url: https://github.com/me/project
|
|
77
|
+
edit_uri: edit/main/docs/
|
|
78
|
+
```
|