Skip to content

Commit 9bf0282

Browse files
committed
Migrate docs to zensical
1 parent dfd17ce commit 9bf0282

90 files changed

Lines changed: 2462 additions & 2778 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22

3-
sphinx:
4-
configuration: docs/source/conf.py
3+
mkdocs:
4+
configuration: mkdocs.yml
55
fail_on_warning: true
66

77
build:

docs/Makefile

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/make.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/source/_static/css/custom.css

Lines changed: 202 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,218 @@
11
/* Classes for the index page. */
2-
.index-card-image {
3-
padding-top: 1rem;
4-
height: 68px;
2+
.home-tiles {
3+
display: grid;
4+
grid-template-columns: repeat(2, minmax(0, 1fr));
5+
gap: 1rem;
6+
margin: 1.25rem 0 1rem;
7+
}
8+
9+
.home-tile {
10+
display: flex;
11+
flex-direction: column;
12+
align-items: center;
13+
gap: 0.55rem;
14+
padding: 1rem 1.1rem;
15+
border: 1px solid rgba(15, 23, 42, 0.14);
16+
border-radius: 14px;
17+
background: #ffffff;
18+
color: inherit;
19+
text-decoration: none;
520
text-align: center;
21+
box-shadow: 0 3px 10px rgba(15, 23, 42, 0.11);
22+
transition:
23+
transform 120ms ease-in-out,
24+
box-shadow 120ms ease-in-out,
25+
border-color 120ms ease-in-out;
26+
}
27+
28+
.home-tile,
29+
.home-tile:hover,
30+
.home-tile:focus,
31+
.home-tile:focus-visible,
32+
.home-tile * {
33+
text-decoration: none;
34+
}
35+
36+
.home-tile:hover {
37+
transform: translateY(-2px);
38+
box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
39+
border-color: #91a9ca;
40+
}
41+
42+
.md-typeset a.home-tile,
43+
.md-typeset a.home-tile:hover,
44+
.md-typeset a.home-tile:focus,
45+
.md-typeset a.home-tile:focus-visible,
46+
.md-typeset a.home-tile:active,
47+
.md-typeset a.home-tile:visited {
48+
text-decoration: none !important;
49+
border-bottom: 0 !important;
50+
background-image: none !important;
51+
color: inherit !important;
52+
}
53+
54+
.md-typeset a.home-tile *,
55+
.md-typeset a.home-tile:hover *,
56+
.md-typeset a.home-tile:focus *,
57+
.md-typeset a.home-tile:focus-visible *,
58+
.md-typeset a.home-tile:active *,
59+
.md-typeset a.home-tile:visited * {
60+
text-decoration: none !important;
61+
border-bottom: 0 !important;
62+
background-image: none !important;
663
}
764

8-
.index-card-link {
9-
color: var(--sd-color-card-text);
10-
font-weight: bold;
65+
.home-tile h3 {
66+
margin: 0;
67+
font-size: 1.05rem;
1168
}
1269

13-
pre {
14-
padding-left: 20px
70+
.home-tile p {
71+
margin: 0;
72+
color: #4b5563;
73+
line-height: 1.45;
1574
}
1675

76+
.home-tile img {
77+
width: 44px;
78+
height: 44px;
79+
object-fit: contain;
80+
}
81+
82+
@media (max-width: 760px) {
83+
.home-tiles {
84+
grid-template-columns: 1fr;
85+
}
86+
}
87+
88+
pre,
1789
li pre {
18-
padding-left: 20px
90+
padding-left: 0;
91+
}
92+
93+
.page-hint-nav {
94+
display: flex;
95+
justify-content: space-between;
96+
gap: 1rem;
97+
margin-top: 2rem;
98+
padding-top: 1rem;
99+
border-top: 1px solid rgba(15, 23, 42, 0.13);
100+
}
101+
102+
.page-hint {
103+
display: flex;
104+
flex-direction: column;
105+
position: relative;
106+
gap: 0.02rem;
107+
text-decoration: none !important;
108+
box-shadow: none !important;
109+
border-bottom: 0 !important;
110+
}
111+
112+
.page-hint,
113+
.page-hint:hover,
114+
.page-hint:focus,
115+
.page-hint:focus-visible,
116+
.page-hint * {
117+
text-decoration: none !important;
118+
box-shadow: none !important;
119+
border-bottom: 0 !important;
19120
}
20121

21-
.highlight {
22-
background: #f5f5f5
122+
.page-hint--next {
123+
text-align: right;
124+
margin-left: auto;
125+
padding-right: 1rem;
23126
}
24127

25-
.highlight button.copybtn{
26-
background-color: #f5f5f5;
128+
.page-hint--prev {
129+
padding-left: 1rem;
27130
}
28131

29-
.highlight button.copybtn:hover {
30-
background-color: #f5f5f5;
132+
.page-hint__label {
133+
color: #8c96a6;
134+
font-size: 0.62rem;
135+
font-weight: 500;
136+
letter-spacing: 0.01em;
137+
line-height: 1.2;
138+
}
139+
140+
.page-hint__title {
141+
color: #1d4ed8;
142+
font-size: 0.68rem;
143+
font-weight: 500;
144+
line-height: 1.2;
145+
}
146+
147+
.page-hint__caret {
148+
position: absolute;
149+
top: 50%;
150+
transform: translateY(-50%);
151+
color: #9ca3af;
152+
font-size: 1.35rem;
153+
line-height: 1;
154+
pointer-events: none;
155+
}
156+
157+
.page-hint--next .page-hint__caret {
158+
right: 0;
159+
}
160+
161+
.page-hint--prev .page-hint__caret {
162+
left: 0;
163+
}
164+
165+
@media (max-width: 760px) {
166+
.page-hint-nav {
167+
flex-direction: column;
168+
}
169+
170+
.page-hint--next {
171+
margin-left: 0;
172+
text-align: left;
173+
padding-right: 0;
174+
padding-left: 1rem;
175+
}
176+
177+
.page-hint--next .page-hint__caret {
178+
right: auto;
179+
left: 0;
180+
}
181+
}
182+
183+
@media (prefers-color-scheme: dark) {
184+
.home-tile {
185+
border-color: rgba(203, 213, 225, 0.24);
186+
background: rgba(15, 23, 42, 0.38);
187+
box-shadow: 0 4px 12px rgba(2, 6, 23, 0.38);
188+
}
189+
190+
.home-tile:hover {
191+
border-color: rgba(147, 197, 253, 0.55);
192+
box-shadow: 0 12px 26px rgba(2, 6, 23, 0.46);
193+
}
194+
195+
.home-tile p {
196+
color: #cbd5e1;
197+
}
198+
199+
.home-tile img {
200+
filter: brightness(1.2) invert(0.9);
201+
}
202+
203+
.page-hint-nav {
204+
border-top-color: rgba(203, 213, 225, 0.24);
205+
}
206+
207+
.page-hint__label {
208+
color: #94a3b8;
209+
}
210+
211+
.page-hint__title {
212+
color: #93c5fd;
213+
}
214+
215+
.page-hint__caret {
216+
color: #94a3b8;
217+
}
31218
}

0 commit comments

Comments
 (0)