Skip to content

Commit 7eeb133

Browse files
committed
link for all documentation
1 parent b5ae95f commit 7eeb133

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docs/docusaurus.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ const config: Config = {
145145
className: 'header-forums-link',
146146
'aria-label': 'SparkFun Community Forums',
147147
},
148+
{
149+
href: 'https://docs.sparkfun.com',
150+
position: 'right',
151+
className: 'header-all-docs-link',
152+
'aria-label': 'SparkFun Documentation',
153+
},
148154
],
149155
},
150156
footer: {

docs/src/css/custom.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,21 @@ html[data-theme='dark'] footer {
128128
}
129129

130130

131+
.header-all-docs-link::before {
132+
content: '';
133+
width: 24px;
134+
height: 24px;
135+
display: flex;
136+
background-color: var(--ifm-navbar-link-color);
137+
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 2 20 L 2 18.33325 L 22 18.33325 L 22 20 L 2 20 Z M 4.15 16 L 4.15 8.06675 L 5.81675 8.06675 L 5.81675 16 L 4.15 16 Z M 8.133249 16 L 8.133249 4 L 9.8 4 L 9.8 16 L 8.133249 16 Z M 12.116751 16 L 12.116751 4 L 13.783251 4 L 13.783251 16 L 12.116751 16 Z M 19.033251 16 L 14.95 9 L 16.43325 8.16675 L 20.466749 15.16675 L 19.033251 16 Z'/%3E%3C/svg%3E");
138+
transition: background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
139+
}
140+
141+
.header-all-docs-link:hover::before {
142+
background-color: var(--ifm-navbar-link-hover-color);
143+
}
144+
145+
131146
.header-forums-link::before {
132147
content: '';
133148
width: 24px;

0 commit comments

Comments
 (0)