Skip to content

Commit bee6ada

Browse files
committed
docs: Add Github link
1 parent 15cde06 commit bee6ada

3 files changed

Lines changed: 34 additions & 7 deletions

File tree

docs/config.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ i-lucide-flask-conical = """
4747
<path d="M8.5 2h7" />
4848
</svg>
4949
"""
50+
i-lucide-github = """
51+
<svg class="icon i-lucide-github" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
52+
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
53+
<path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5c.08-1.25-.27-2.48-1-3.5c.28-1.15.28-2.35 0-3.5c0 0-1 0-3 1.5c-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.4 5.4 0 0 0 4 9c0 3.5 3 5.5 6 5.5c-.39.49-.68 1.05-.85 1.65S8.93 17.38 9 18v4"/>
54+
<path d="M9 18c-4.51 2-5-2-7-2"/>
55+
</g>
56+
</svg>
57+
"""
5058
i-lucide-info = """
5159
<svg class="icon i-lucide-info" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
5260
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">

docs/static/styles.css

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,14 @@ img {
141141
flex-grow: 1;
142142
}
143143

144-
.nav-bar .theme-button {
144+
.nav-bar .right-buttons {
145+
display: flex;
146+
align-items: center;
147+
gap: calc(2 * var(--spacing));
148+
}
149+
150+
.nav-bar .theme-button,
151+
.nav-bar .github-button {
145152
background-color: oklch(from var(--color-neutral) l c h / 50%);
146153
color: oklch(from var(--color-base-content) l c h / 50%);
147154
padding: calc(2 * var(--spacing));
@@ -151,10 +158,12 @@ img {
151158
display: flex;
152159
cursor: pointer;
153160
}
154-
.nav-bar .theme-button:hover {
161+
.nav-bar .theme-button:hover,
162+
.nav-bar .github-button:hover {
155163
background-color: var(--color-neutral);
156164
}
157-
.nav-bar .theme-button > * {
165+
.nav-bar .theme-button > *,
166+
.nav-bar .github-button > * {
158167
width: calc(5 * var(--spacing));
159168
}
160169
*[data-theme="dark"] .nav-bar .i-lucide-sun {

docs/templates/base.html

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,20 @@
2828
<span>Ctrl K</span>
2929
</button>
3030

31-
<button class="theme-button">
32-
{{ macros::icon(name="i-lucide-moon") }} {{
33-
macros::icon(name="i-lucide-sun") }}
34-
</button>
31+
<div class="right-buttons">
32+
<button class="theme-button">
33+
{{ macros::icon(name="i-lucide-moon") }} {{
34+
macros::icon(name="i-lucide-sun") }}
35+
</button>
36+
37+
<a
38+
class="github-button"
39+
href="https://github.com/aklinker1/zeta"
40+
target="_blank"
41+
>
42+
{{ macros::icon(name="i-lucide-github") }}
43+
</a>
44+
</div>
3545
</div>
3646
<div class="bottom">
3747
<a href="/server" data-active-target>

0 commit comments

Comments
 (0)