mkdocs 2.0.dev2__py3-none-any.whl → 2.0.dev3__py3-none-any.whl
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/__init__.py +3 -3
- mkdocs/__version__.py +1 -1
- mkdocs/extensions/relative_urls.py +2 -2
- mkdocs/mkdocs.py +35 -18
- mkdocs/theme/base.html +56 -7
- {mkdocs-2.0.dev2.dist-info → mkdocs-2.0.dev3.dist-info}/METADATA +1 -1
- mkdocs-2.0.dev3.dist-info/RECORD +12 -0
- mkdocs/default/base.html +0 -17
- mkdocs/default/favicon.html +0 -1
- mkdocs/default/highlight.css +0 -86
- mkdocs/default/style.css +0 -148
- mkdocs-2.0.dev2.dist-info/RECORD +0 -16
- {mkdocs-2.0.dev2.dist-info → mkdocs-2.0.dev3.dist-info}/WHEEL +0 -0
- {mkdocs-2.0.dev2.dist-info → mkdocs-2.0.dev3.dist-info}/entry_points.txt +0 -0
mkdocs/__init__.py
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
from .__version__ import __title__, __version__
|
|
2
|
-
from .mkdocs import get_current_page,
|
|
2
|
+
from .mkdocs import get_current_page, get_site, Page, Static, Site, MkDocs, cli
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
__all__ = [
|
|
6
6
|
'__title__',
|
|
7
7
|
'__version__',
|
|
8
8
|
'get_current_page',
|
|
9
|
-
'
|
|
9
|
+
'get_site',
|
|
10
10
|
'Page',
|
|
11
11
|
'Static',
|
|
12
|
-
'
|
|
12
|
+
'Site',
|
|
13
13
|
'MkDocs',
|
|
14
14
|
'cli',
|
|
15
15
|
]
|
mkdocs/__version__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__title__ = "mkdocs"
|
|
2
|
-
__version__ = "2.0.
|
|
2
|
+
__version__ = "2.0.dev3"
|
|
@@ -8,7 +8,7 @@ import httpx
|
|
|
8
8
|
class URLProcessor(markdown.treeprocessors.Treeprocessor):
|
|
9
9
|
def run(self, root):
|
|
10
10
|
page = mkdocs.get_current_page()
|
|
11
|
-
|
|
11
|
+
site = mkdocs.get_site()
|
|
12
12
|
key = ''
|
|
13
13
|
link = ''
|
|
14
14
|
|
|
@@ -34,7 +34,7 @@ class URLProcessor(markdown.treeprocessors.Treeprocessor):
|
|
|
34
34
|
path_from = page.path
|
|
35
35
|
path_to = os.path.normpath(path_from.parent.joinpath(url.path))
|
|
36
36
|
|
|
37
|
-
target =
|
|
37
|
+
target = site.lookup.get(path_to)
|
|
38
38
|
if target is None:
|
|
39
39
|
continue # Broken link!
|
|
40
40
|
|
mkdocs/mkdocs.py
CHANGED
|
@@ -30,7 +30,7 @@ def get_current_page():
|
|
|
30
30
|
return ctx
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
def
|
|
33
|
+
def get_site():
|
|
34
34
|
ctx = _site_index.get()
|
|
35
35
|
if ctx is None:
|
|
36
36
|
raise RuntimeError("No current context")
|
|
@@ -52,14 +52,6 @@ class Page:
|
|
|
52
52
|
self.url = str(url).removesuffix('index.html')
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
class PageAsHTML:
|
|
56
|
-
def __init__(self, page, title, html):
|
|
57
|
-
self.path = page.path
|
|
58
|
-
self.url = page.url
|
|
59
|
-
self.title = title
|
|
60
|
-
self.html = html
|
|
61
|
-
|
|
62
|
-
|
|
63
55
|
class Static:
|
|
64
56
|
def __init__(self, path):
|
|
65
57
|
self.path = path
|
|
@@ -67,7 +59,7 @@ class Static:
|
|
|
67
59
|
self.url = str(url).removesuffix('index.html')
|
|
68
60
|
|
|
69
61
|
|
|
70
|
-
class
|
|
62
|
+
class Site:
|
|
71
63
|
def __init__(self, pages, statics):
|
|
72
64
|
self._pages = pages
|
|
73
65
|
self._statics = statics
|
|
@@ -91,6 +83,31 @@ class SiteIndex:
|
|
|
91
83
|
return len(self.pages) + len(self.statics)
|
|
92
84
|
|
|
93
85
|
|
|
86
|
+
class TableOfContents:
|
|
87
|
+
def __init__(self, md):
|
|
88
|
+
self.html = md.toc
|
|
89
|
+
self.title = md.toc_tokens[0]['name'] if md.toc_tokens else ''
|
|
90
|
+
self._items = list(md.toc_tokens)
|
|
91
|
+
|
|
92
|
+
def __bool__(self):
|
|
93
|
+
return bool(self._items)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
class PageContext:
|
|
97
|
+
def __init__(self, page, text, html, toc):
|
|
98
|
+
self.path = page.path
|
|
99
|
+
self.url = page.url
|
|
100
|
+
self.text = text
|
|
101
|
+
self.html = html
|
|
102
|
+
self.toc = toc
|
|
103
|
+
|
|
104
|
+
# Leaving this here for compatability with... `{{ page.title }}`
|
|
105
|
+
# TODO.... probably deprecate, but follow through with toc design discussion.
|
|
106
|
+
@property
|
|
107
|
+
def title(self):
|
|
108
|
+
return self.toc.title
|
|
109
|
+
|
|
110
|
+
|
|
94
111
|
class MkDocs:
|
|
95
112
|
def __init__(self, input_dir):
|
|
96
113
|
self.site_index = self.load_site(input_dir)
|
|
@@ -121,7 +138,7 @@ class MkDocs:
|
|
|
121
138
|
|
|
122
139
|
pages = sorted(pages, key=lambda x: x.url)
|
|
123
140
|
statics = sorted(statics, key=lambda x: x.url)
|
|
124
|
-
return
|
|
141
|
+
return Site(pages, statics)
|
|
125
142
|
|
|
126
143
|
def init_env(self, input_dir) -> jinja2.Environment:
|
|
127
144
|
@jinja2.pass_context
|
|
@@ -154,7 +171,7 @@ class MkDocs:
|
|
|
154
171
|
],
|
|
155
172
|
extension_configs={
|
|
156
173
|
'footnotes': {'BACKLINK_TITLE': ''},
|
|
157
|
-
'toc': {'anchorlink': True, 'marker': ''}
|
|
174
|
+
'toc': {'anchorlink': True, 'marker': '', 'toc_class': ''}
|
|
158
175
|
}
|
|
159
176
|
)
|
|
160
177
|
|
|
@@ -181,9 +198,9 @@ class MkDocs:
|
|
|
181
198
|
with self.set_context(page):
|
|
182
199
|
text = input_path.read_text()
|
|
183
200
|
html = self.md.reset().convert(text)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
output = self.base.render(page=
|
|
201
|
+
toc = TableOfContents(self.md)
|
|
202
|
+
page_ctx = PageContext(page=page, text=text, html=html, toc=toc)
|
|
203
|
+
output = self.base.render(page=page_ctx)
|
|
187
204
|
|
|
188
205
|
output_path.parent.mkdir(parents=True, exist_ok=True)
|
|
189
206
|
output_path.write_text(output)
|
|
@@ -214,9 +231,9 @@ class MkDocs:
|
|
|
214
231
|
with self.set_context(resource):
|
|
215
232
|
text = input_path.read_text()
|
|
216
233
|
html = self.md.reset().convert(text)
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
output = self.base.render(page=
|
|
234
|
+
toc = TableOfContents(self.md)
|
|
235
|
+
page_ctx = PageContext(page=resource, text=text, html=html, toc=toc)
|
|
236
|
+
output = self.base.render(page=page_ctx)
|
|
220
237
|
return httpx.Response(200, content=httpx.HTML(output))
|
|
221
238
|
elif isinstance(resource, Static):
|
|
222
239
|
input_path = input_dir.joinpath(resource.path)
|
mkdocs/theme/base.html
CHANGED
|
@@ -35,24 +35,26 @@
|
|
|
35
35
|
/* Layout... */
|
|
36
36
|
|
|
37
37
|
main {
|
|
38
|
-
margin
|
|
38
|
+
margin: 0 auto;
|
|
39
|
+
max-width: 700px;
|
|
39
40
|
width: 60%;
|
|
40
|
-
padding: 1rem;
|
|
41
|
+
padding: 1rem 0;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
@media (max-width: 1000px) {
|
|
44
45
|
main {
|
|
45
|
-
padding: 1.5rem 1rem;
|
|
46
46
|
width: 75%;
|
|
47
|
-
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
nav.toc {
|
|
50
|
+
display: none;
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
|
|
51
|
-
@media (max-width:
|
|
54
|
+
@media (max-width: 600px) {
|
|
52
55
|
main {
|
|
53
|
-
padding: 1.5rem 1rem;
|
|
54
56
|
width: 100%;
|
|
55
|
-
|
|
57
|
+
padding: 1rem 1.5rem;
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
|
|
@@ -163,9 +165,56 @@ a.toclink:hover::after {
|
|
|
163
165
|
margin: 0 0.8rem;
|
|
164
166
|
color: var(--neutral-color);
|
|
165
167
|
}
|
|
168
|
+
|
|
169
|
+
/* Table of contents styling */
|
|
170
|
+
|
|
171
|
+
nav.toc {
|
|
172
|
+
position: fixed;
|
|
173
|
+
margin-left: 80%;
|
|
174
|
+
width : 20%;
|
|
175
|
+
padding: 2rem;
|
|
176
|
+
height: 100%;
|
|
177
|
+
overflow-y: scroll;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Navigation styling */
|
|
181
|
+
|
|
182
|
+
nav.toc ul {
|
|
183
|
+
padding: 0;
|
|
184
|
+
margin: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
nav.toc li {
|
|
188
|
+
padding: 0;
|
|
189
|
+
margin: 0.5rem 0;
|
|
190
|
+
display: block;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
nav.toc li a.active {
|
|
194
|
+
color: var(--link-color);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
nav.toc li a:hover {
|
|
198
|
+
color: var(--link-color);
|
|
199
|
+
text-decoration: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
nav.toc li a {
|
|
203
|
+
color: var(--muted-fg-color);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
nav.toc li a:hover {
|
|
207
|
+
color: var(--fg-color);
|
|
208
|
+
text-decoration: none;
|
|
209
|
+
}
|
|
166
210
|
</style>
|
|
167
211
|
</head>
|
|
168
212
|
<body>
|
|
213
|
+
{% if page.toc %}
|
|
214
|
+
<nav class="toc">
|
|
215
|
+
{{ page.toc.html }}
|
|
216
|
+
</nav>
|
|
217
|
+
{% endif %}
|
|
169
218
|
<main>
|
|
170
219
|
{{ page.html }}
|
|
171
220
|
</main>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
mkdocs/__init__.py,sha256=NwNA-Nxju0I4e1-Msqo_ewJLRcjJjEMiVs2bbfzoMCg,283
|
|
2
|
+
mkdocs/__version__.py,sha256=y7OAtBTvz302kS_lnppuG9xWGpwIuMUpU4-ayC_CP8A,46
|
|
3
|
+
mkdocs/mkdocs.py,sha256=RnJ8wj2vzozAEqD-X5JMxRoP2wi-uWBC8NH7_DF1Slg,8677
|
|
4
|
+
mkdocs/extensions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
mkdocs/extensions/relative_urls.py,sha256=woA0EUuCXa10wt6C0VCjYnY7jO-fj-wd9uOVU20D96U,1950
|
|
6
|
+
mkdocs/extensions/short_codes.py,sha256=I2SwGMcG9OT_vpkJwPI8cHBTkwQAjSPZmoQKfctsHn4,950
|
|
7
|
+
mkdocs/extensions/strike_thru.py,sha256=GrCbfMrHz_2Vlh3E572EQYOSDzEGym34pkHElzF2HZY,577
|
|
8
|
+
mkdocs/theme/base.html,sha256=xB9VAAgy6zwucGedwTfdhigwNu_lhY3OKiY4aSsN6ZQ,3471
|
|
9
|
+
mkdocs-2.0.dev3.dist-info/METADATA,sha256=KerzpRlQfNrRd1Ocu8w5tpEkXPdEyPNgGWyYJwpfzdU,729
|
|
10
|
+
mkdocs-2.0.dev3.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
11
|
+
mkdocs-2.0.dev3.dist-info/entry_points.txt,sha256=5PqBrzYJLZ9-yQ0djvENWOQ-0x6Xj30JYNSzM_m70ZU,38
|
|
12
|
+
mkdocs-2.0.dev3.dist-info/RECORD,,
|
mkdocs/default/base.html
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
5
|
-
<title>...</title>
|
|
6
|
-
{% with favicon='📘' %}{% include 'favicon.html' %}{% endwith %}
|
|
7
|
-
<style>
|
|
8
|
-
{% include 'style.css' %}
|
|
9
|
-
{% include 'highlight.css' %}
|
|
10
|
-
</style>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<main>
|
|
14
|
-
{{ html }}
|
|
15
|
-
</main>
|
|
16
|
-
</body>
|
|
17
|
-
</html>
|
mkdocs/default/favicon.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<link rel="icon" href="data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">{{ favicon }}</text></svg>">
|
mkdocs/default/highlight.css
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
pre { line-height: 125%; }
|
|
2
|
-
td.linenos .normal { color: #6e7681; background-color: #0d1117; padding-left: 5px; padding-right: 5px; }
|
|
3
|
-
span.linenos { color: #6e7681; background-color: #0d1117; padding-left: 5px; padding-right: 5px; }
|
|
4
|
-
td.linenos .special { color: #e6edf3; background-color: #6e7681; padding-left: 5px; padding-right: 5px; }
|
|
5
|
-
span.linenos.special { color: #e6edf3; background-color: #6e7681; padding-left: 5px; padding-right: 5px; }
|
|
6
|
-
.codehilite .hll { background-color: #6e7681 }
|
|
7
|
-
.codehilite { background: #0d1117; color: #E6EDF3 }
|
|
8
|
-
.codehilite .c { color: #8B949E; font-style: italic } /* Comment */
|
|
9
|
-
.codehilite .err { color: #F85149 } /* Error */
|
|
10
|
-
.codehilite .esc { color: #E6EDF3 } /* Escape */
|
|
11
|
-
.codehilite .g { color: #E6EDF3 } /* Generic */
|
|
12
|
-
.codehilite .k { color: #FF7B72 } /* Keyword */
|
|
13
|
-
.codehilite .l { color: #A5D6FF } /* Literal */
|
|
14
|
-
.codehilite .n { color: #E6EDF3 } /* Name */
|
|
15
|
-
.codehilite .o { color: #FF7B72; font-weight: bold } /* Operator */
|
|
16
|
-
.codehilite .x { color: #E6EDF3 } /* Other */
|
|
17
|
-
.codehilite .p { color: #E6EDF3 } /* Punctuation */
|
|
18
|
-
.codehilite .ch { color: #8B949E; font-style: italic } /* Comment.Hashbang */
|
|
19
|
-
.codehilite .cm { color: #8B949E; font-style: italic } /* Comment.Multiline */
|
|
20
|
-
.codehilite .cp { color: #8B949E; font-weight: bold; font-style: italic } /* Comment.Preproc */
|
|
21
|
-
.codehilite .cpf { color: #8B949E; font-style: italic } /* Comment.PreprocFile */
|
|
22
|
-
.codehilite .c1 { color: #8B949E; font-style: italic } /* Comment.Single */
|
|
23
|
-
.codehilite .cs { color: #8B949E; font-weight: bold; font-style: italic } /* Comment.Special */
|
|
24
|
-
.codehilite .gd { color: #FFA198; background-color: #490202 } /* Generic.Deleted */
|
|
25
|
-
.codehilite .ge { color: #E6EDF3; font-style: italic } /* Generic.Emph */
|
|
26
|
-
.codehilite .ges { color: #E6EDF3; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
|
|
27
|
-
.codehilite .gr { color: #FFA198 } /* Generic.Error */
|
|
28
|
-
.codehilite .gh { color: #79C0FF; font-weight: bold } /* Generic.Heading */
|
|
29
|
-
.codehilite .gi { color: #56D364; background-color: #0F5323 } /* Generic.Inserted */
|
|
30
|
-
.codehilite .go { color: #8B949E } /* Generic.Output */
|
|
31
|
-
.codehilite .gp { color: #8B949E } /* Generic.Prompt */
|
|
32
|
-
.codehilite .gs { color: #E6EDF3; font-weight: bold } /* Generic.Strong */
|
|
33
|
-
.codehilite .gu { color: #79C0FF } /* Generic.Subheading */
|
|
34
|
-
.codehilite .gt { color: #FF7B72 } /* Generic.Traceback */
|
|
35
|
-
.codehilite .g-Underline { color: #E6EDF3; text-decoration: underline } /* Generic.Underline */
|
|
36
|
-
.codehilite .kc { color: #79C0FF } /* Keyword.Constant */
|
|
37
|
-
.codehilite .kd { color: #FF7B72 } /* Keyword.Declaration */
|
|
38
|
-
.codehilite .kn { color: #FF7B72 } /* Keyword.Namespace */
|
|
39
|
-
.codehilite .kp { color: #79C0FF } /* Keyword.Pseudo */
|
|
40
|
-
.codehilite .kr { color: #FF7B72 } /* Keyword.Reserved */
|
|
41
|
-
.codehilite .kt { color: #FF7B72 } /* Keyword.Type */
|
|
42
|
-
.codehilite .ld { color: #79C0FF } /* Literal.Date */
|
|
43
|
-
.codehilite .m { color: #A5D6FF } /* Literal.Number */
|
|
44
|
-
.codehilite .s { color: #A5D6FF } /* Literal.String */
|
|
45
|
-
.codehilite .na { color: #E6EDF3 } /* Name.Attribute */
|
|
46
|
-
.codehilite .nb { color: #E6EDF3 } /* Name.Builtin */
|
|
47
|
-
.codehilite .nc { color: #F0883E; font-weight: bold } /* Name.Class */
|
|
48
|
-
.codehilite .no { color: #79C0FF; font-weight: bold } /* Name.Constant */
|
|
49
|
-
.codehilite .nd { color: #D2A8FF; font-weight: bold } /* Name.Decorator */
|
|
50
|
-
.codehilite .ni { color: #FFA657 } /* Name.Entity */
|
|
51
|
-
.codehilite .ne { color: #F0883E; font-weight: bold } /* Name.Exception */
|
|
52
|
-
.codehilite .nf { color: #D2A8FF; font-weight: bold } /* Name.Function */
|
|
53
|
-
.codehilite .nl { color: #79C0FF; font-weight: bold } /* Name.Label */
|
|
54
|
-
.codehilite .nn { color: #FF7B72 } /* Name.Namespace */
|
|
55
|
-
.codehilite .nx { color: #E6EDF3 } /* Name.Other */
|
|
56
|
-
.codehilite .py { color: #79C0FF } /* Name.Property */
|
|
57
|
-
.codehilite .nt { color: #7EE787 } /* Name.Tag */
|
|
58
|
-
.codehilite .nv { color: #79C0FF } /* Name.Variable */
|
|
59
|
-
.codehilite .ow { color: #FF7B72; font-weight: bold } /* Operator.Word */
|
|
60
|
-
.codehilite .pm { color: #E6EDF3 } /* Punctuation.Marker */
|
|
61
|
-
.codehilite .w { color: #6E7681 } /* Text.Whitespace */
|
|
62
|
-
.codehilite .mb { color: #A5D6FF } /* Literal.Number.Bin */
|
|
63
|
-
.codehilite .mf { color: #A5D6FF } /* Literal.Number.Float */
|
|
64
|
-
.codehilite .mh { color: #A5D6FF } /* Literal.Number.Hex */
|
|
65
|
-
.codehilite .mi { color: #A5D6FF } /* Literal.Number.Integer */
|
|
66
|
-
.codehilite .mo { color: #A5D6FF } /* Literal.Number.Oct */
|
|
67
|
-
.codehilite .sa { color: #79C0FF } /* Literal.String.Affix */
|
|
68
|
-
.codehilite .sb { color: #A5D6FF } /* Literal.String.Backtick */
|
|
69
|
-
.codehilite .sc { color: #A5D6FF } /* Literal.String.Char */
|
|
70
|
-
.codehilite .dl { color: #79C0FF } /* Literal.String.Delimiter */
|
|
71
|
-
.codehilite .sd { color: #A5D6FF } /* Literal.String.Doc */
|
|
72
|
-
.codehilite .s2 { color: #A5D6FF } /* Literal.String.Double */
|
|
73
|
-
.codehilite .se { color: #79C0FF } /* Literal.String.Escape */
|
|
74
|
-
.codehilite .sh { color: #79C0FF } /* Literal.String.Heredoc */
|
|
75
|
-
.codehilite .si { color: #A5D6FF } /* Literal.String.Interpol */
|
|
76
|
-
.codehilite .sx { color: #A5D6FF } /* Literal.String.Other */
|
|
77
|
-
.codehilite .sr { color: #79C0FF } /* Literal.String.Regex */
|
|
78
|
-
.codehilite .s1 { color: #A5D6FF } /* Literal.String.Single */
|
|
79
|
-
.codehilite .ss { color: #A5D6FF } /* Literal.String.Symbol */
|
|
80
|
-
.codehilite .bp { color: #E6EDF3 } /* Name.Builtin.Pseudo */
|
|
81
|
-
.codehilite .fm { color: #D2A8FF; font-weight: bold } /* Name.Function.Magic */
|
|
82
|
-
.codehilite .vc { color: #79C0FF } /* Name.Variable.Class */
|
|
83
|
-
.codehilite .vg { color: #79C0FF } /* Name.Variable.Global */
|
|
84
|
-
.codehilite .vi { color: #79C0FF } /* Name.Variable.Instance */
|
|
85
|
-
.codehilite .vm { color: #79C0FF } /* Name.Variable.Magic */
|
|
86
|
-
.codehilite .il { color: #A5D6FF } /* Literal.Number.Integer.Long */
|
mkdocs/default/style.css
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
/* Color scheme */
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--fg-color: #f0f6fc;
|
|
5
|
-
--muted-fg-color: #9198a1;
|
|
6
|
-
--neutral-color: #3d444d;
|
|
7
|
-
--bg-color: #151b23;
|
|
8
|
-
|
|
9
|
-
--link-color: #4493f8;
|
|
10
|
-
--code-bg-color: #0d1117;
|
|
11
|
-
|
|
12
|
-
--accent-note: #0969da;
|
|
13
|
-
--accent-tip: #1a7f37;
|
|
14
|
-
--accent-important:#8250df;
|
|
15
|
-
--accent-warning: #9a6700;
|
|
16
|
-
--accent-caution: #d1242f;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* Basic reset */
|
|
20
|
-
|
|
21
|
-
* {
|
|
22
|
-
margin: 0;
|
|
23
|
-
padding: 0;
|
|
24
|
-
box-sizing: border-box;
|
|
25
|
-
font-weight: 300;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Layout... */
|
|
29
|
-
|
|
30
|
-
main {
|
|
31
|
-
margin-left: 20%;
|
|
32
|
-
width: 60%;
|
|
33
|
-
padding: 1rem;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@media (max-width: 1000px) {
|
|
37
|
-
main {
|
|
38
|
-
padding: 1.5rem 1rem;
|
|
39
|
-
width: 75%;
|
|
40
|
-
margin-left: 25%;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@media (max-width: 800px) {
|
|
45
|
-
main {
|
|
46
|
-
padding: 1.5rem 1rem;
|
|
47
|
-
width: 100%;
|
|
48
|
-
margin-left: 0;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Typography & spacing */
|
|
53
|
-
|
|
54
|
-
html {
|
|
55
|
-
scroll-behavior: smooth;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
body {
|
|
59
|
-
line-height: 1.6;
|
|
60
|
-
color: var(--fg-color);
|
|
61
|
-
background-color: var(--bg-color);
|
|
62
|
-
font-family: Helvetica, sans-serif;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
h1, h2, h3, h4, h5 {
|
|
66
|
-
margin-top: 1.5rem;
|
|
67
|
-
margin-bottom: 1.5rem;
|
|
68
|
-
line-height: 1.3;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
h1 {
|
|
72
|
-
border-bottom: 1px solid var(--neutral-color);
|
|
73
|
-
}
|
|
74
|
-
h2 {
|
|
75
|
-
border-bottom: 1px solid var(--neutral-color);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
p {
|
|
79
|
-
margin: 1rem 0;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
strong {
|
|
83
|
-
font-weight: 600;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
ul, ol {
|
|
87
|
-
padding-left: 2rem;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
li {
|
|
91
|
-
margin: 0.5rem 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
hr {
|
|
95
|
-
margin-top: 1rem;
|
|
96
|
-
margin-bottom: 1rem;
|
|
97
|
-
border: none;
|
|
98
|
-
border-top: 4px solid;
|
|
99
|
-
color: var(--neutral-color);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
blockquote {
|
|
103
|
-
border-left: 0.25rem solid var(--neutral-color);
|
|
104
|
-
padding: 0 1rem;
|
|
105
|
-
color: var(--muted-fg-color);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
pre {
|
|
109
|
-
padding: 1rem;
|
|
110
|
-
overflow-x: scroll;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
img {
|
|
114
|
-
max-width: 100%
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
a {
|
|
118
|
-
color: var(--link-color);
|
|
119
|
-
text-decoration: none;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
a:hover {
|
|
123
|
-
text-decoration: underline;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/* Tables */
|
|
127
|
-
|
|
128
|
-
table {
|
|
129
|
-
border-collapse: collapse;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
th, td {
|
|
133
|
-
padding: 6px 13px;
|
|
134
|
-
border: 1px solid var(--neutral-color);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/* Header anchor links */
|
|
138
|
-
|
|
139
|
-
a.toclink {
|
|
140
|
-
color: inherit;
|
|
141
|
-
text-decoration: none;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
a.toclink:hover::after {
|
|
145
|
-
content: "#";
|
|
146
|
-
margin: 0 0.8rem;
|
|
147
|
-
color: var(--neutral-color);
|
|
148
|
-
}
|
mkdocs-2.0.dev2.dist-info/RECORD
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
mkdocs/__init__.py,sha256=bpMsoVf4vXq24u68lQIJ4ZObI95LoIPRSOUq-NBw1_c,305
|
|
2
|
-
mkdocs/__version__.py,sha256=EqRxpiV6Ug87HD5Jo_az1A4j2AMDx6hbktEUBq5_1dM,46
|
|
3
|
-
mkdocs/mkdocs.py,sha256=c4MSgt6diWYLVzvfredr4hbLUCObeGbPXZ_B8bkEQKk,8256
|
|
4
|
-
mkdocs/default/base.html,sha256=lrJDGMMkQq-iWkdjPwRDUWp-sBGZMMtqyvustu1dx9A,440
|
|
5
|
-
mkdocs/default/favicon.html,sha256=6-o5g6-nIJRTp83ZzABUaaV0_JNcm-1HxdTKeLbLsxg,227
|
|
6
|
-
mkdocs/default/highlight.css,sha256=2N7xpE1RkMFjJSnFOjQX3x0Mj6yKf6pM8-B08rE2n-o,5600
|
|
7
|
-
mkdocs/default/style.css,sha256=97Ja4pF93L-13enfKF2vyzfRIULkyH15VMeX85FC9Pc,2107
|
|
8
|
-
mkdocs/extensions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
mkdocs/extensions/relative_urls.py,sha256=LbcM00LtwlMjAoflVuPklbe_KJyDroOcNVO1SuksnvE,1968
|
|
10
|
-
mkdocs/extensions/short_codes.py,sha256=I2SwGMcG9OT_vpkJwPI8cHBTkwQAjSPZmoQKfctsHn4,950
|
|
11
|
-
mkdocs/extensions/strike_thru.py,sha256=GrCbfMrHz_2Vlh3E572EQYOSDzEGym34pkHElzF2HZY,577
|
|
12
|
-
mkdocs/theme/base.html,sha256=IMq7rrAb97Hg3lKAxPtCufuwe3zNfRlWBGjvvT6kzSc,2785
|
|
13
|
-
mkdocs-2.0.dev2.dist-info/METADATA,sha256=Bez3eQjRzfDD_tdUZggcw8fxArFF36zCRezU9ppAQug,729
|
|
14
|
-
mkdocs-2.0.dev2.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
15
|
-
mkdocs-2.0.dev2.dist-info/entry_points.txt,sha256=5PqBrzYJLZ9-yQ0djvENWOQ-0x6Xj30JYNSzM_m70ZU,38
|
|
16
|
-
mkdocs-2.0.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|