Skip to content

Commit 74eb834

Browse files
authored
Add GitHub link to site header (#18)
1 parent 6a15590 commit 74eb834

2 files changed

Lines changed: 42 additions & 2 deletions

File tree

docs/stylesheets/dev-notes.css

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,41 @@ body {
135135
}
136136

137137
.md-header__source {
138-
display: none !important;
138+
display: flex !important;
139+
align-items: center;
140+
width: auto;
141+
max-width: none;
142+
margin: 0 0 0 0.2rem;
143+
}
144+
145+
.md-header__source .md-source {
146+
display: inline-flex;
147+
align-items: center;
148+
color: var(--openshell-ink);
149+
}
150+
151+
.md-header__source .md-source:hover,
152+
.md-header__source .md-source:focus-visible {
153+
color: var(--openshell-accent);
154+
opacity: 1;
155+
}
156+
157+
.md-header__source .md-source__icon {
158+
display: inline-flex;
159+
align-items: center;
160+
justify-content: center;
161+
width: 1.8rem;
162+
height: 1.8rem;
163+
}
164+
165+
.md-header__source .md-source__icon svg {
166+
width: 1.1rem;
167+
height: 1.1rem;
168+
margin: 0;
169+
}
170+
171+
.md-header__source .md-source__repository {
172+
display: none;
139173
}
140174

141175
.md-overlay {
@@ -331,6 +365,10 @@ body {
331365
color: var(--openshell-muted);
332366
}
333367

368+
.md-copyright__highlight > a:last-child {
369+
margin-left: auto;
370+
}
371+
334372
.md-copyright__highlight a:hover,
335373
.md-copyright__highlight a:focus-visible {
336374
color: var(--openshell-accent);

zensical.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
site_name = "OpenShell Research"
33
site_description = "Research engineering Dev Notes and software documentation from the OpenShell team."
44
site_author = "OpenShell Research Engineering"
5+
repo_url = "https://github.com/NVIDIA/OpenShell-Research"
6+
repo_name = "OpenShell Research on GitHub"
57
copyright = """
6-
<span><span class="openshell-footer-prompt" aria-hidden="true">&gt;_</span> OpenShell Research</span>
78
<a href="https://github.com/NVIDIA/OpenShell">OpenShell on GitHub <span aria-hidden="true">↗</span></a>
89
"""
910
docs_dir = "docs"
@@ -32,6 +33,7 @@ generator = false
3233
custom_dir = "overrides"
3334
favicon = "assets/brand/favicon.svg"
3435
logo = "assets/brand/openshell-mark.svg"
36+
icon.repo = "fontawesome/brands/github"
3537
features = [
3638
"navigation.sections",
3739
"navigation.indexes",

0 commit comments

Comments
 (0)