Skip to content

Commit 4422a24

Browse files
committed
Adding overrides
Adding overrides folder.
1 parent 238fbc0 commit 4422a24

File tree

5 files changed

+158
-0
lines changed

5 files changed

+158
-0
lines changed
Lines changed: 1 addition & 0 deletions
Loading

overrides/.icons/sfe-logo.svg

Lines changed: 1 addition & 0 deletions
Loading

overrides/main.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% extends "base.html" %}
2+
3+
{% block content %}
4+
5+
<!-- Adds file-eye icon to view hookup guide as a single page -->
6+
{% if "single_page.md" %}
7+
<a href="/SparkFun_Red_Vision_Kit_for_XRP/single_page" title="View as Single-Page" class="md-content__button md-icon">
8+
{% include ".icons/material/file-eye-outline.svg" %}
9+
</a>
10+
{% endif %}
11+
12+
{{ super() }}
13+
{% endblock content %}

overrides/partials/nav.html

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<!--
2+
Copyright (c) 2016-2023 Martin Donath <[email protected]>
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to
6+
deal in the Software without restriction, including without limitation the
7+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8+
sell copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20+
IN THE SOFTWARE.
21+
-->
22+
23+
{% import "partials/nav-item.html" as item with context %}
24+
25+
<!-- Determine base classes -->
26+
{% set class = "md-nav md-nav--primary" %}
27+
{% if "navigation.tabs" in features %}
28+
{% set class = class ~ " md-nav--lifted" %}
29+
{% endif %}
30+
{% if "toc.integrate" in features %}
31+
{% set class = class ~ " md-nav--integrated" %}
32+
{% endif %}
33+
34+
<!-- Navigation -->
35+
<nav
36+
class="{{ class }}"
37+
aria-label="{{ lang.t('nav') }}"
38+
data-md-level="0"
39+
>
40+
41+
<!-- Site title -->
42+
<!-- <label class="md-nav__title" for="__drawer">
43+
<a
44+
href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
45+
title="{{ config.site_name | e }}"
46+
class="md-nav__button md-logo"
47+
aria-label="{{ config.site_name }}"
48+
data-md-component="logo"
49+
>
50+
{% include "partials/logo.html" %}
51+
</a>
52+
{{ config.site_name }}
53+
</label> -->
54+
<label class="md-nav__title" for="__drawer">
55+
<a
56+
href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
57+
title="sparkfun.com"
58+
class="md-nav__button md-logo"
59+
aria-label="SparkFun"
60+
data-md-component="logo"
61+
>
62+
{% include "partials/logo.html" %}
63+
</a>
64+
{{ config.site_name }}
65+
</label>
66+
67+
<!-- Repository information -->
68+
{% if config.repo_url %}
69+
<div class="md-nav__source">
70+
{% include "partials/source.html" %}
71+
</div>
72+
{% endif %}
73+
74+
<!-- Navigation list -->
75+
<ul class="md-nav__list" data-md-scrollfix>
76+
{% for nav_item in nav %}
77+
{% set path = "__nav_" ~ loop.index %}
78+
{{ item.render(nav_item, path, 1) }}
79+
{% endfor %}
80+
81+
<!-- Add Hard Copies to NAV menu -->
82+
<li class="md-nav__item">
83+
<a href="/SparkFun_Thing_Plus_RP2350/hard_copy/" class="md-nav__link">
84+
<span class="md-ellipsis">
85+
Hard Copies 🖨️
86+
<!-- Hard Copies&nbsp;{% include ".icons/material/book-open-variant.svg" %} -->
87+
</span>
88+
</a>
89+
</li>
90+
</ul>
91+
</nav>

overrides/partials/tabs.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!--
2+
Copyright (c) 2016-2023 Martin Donath <[email protected]>
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to
6+
deal in the Software without restriction, including without limitation the
7+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8+
sell copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20+
IN THE SOFTWARE.
21+
-->
22+
23+
{% import "partials/tabs-item.html" as item with context %}
24+
25+
<!-- Navigation tabs -->
26+
<nav
27+
class="md-tabs"
28+
aria-label="{{ lang.t('tabs') }}"
29+
data-md-component="tabs"
30+
>
31+
<div class="md-tabs__inner md-grid">
32+
33+
<!-- Adds tab on right side of header -->
34+
{% if "hard_copy.md" %}
35+
<ul class="md-tabs__list" style="float: right;">
36+
<li class="md-tabs__item">
37+
<a href="/SparkFun_Thing_Plus_RP2350/hard_copy/" class="md-tabs__link">
38+
Hard Copies 🖨️
39+
<!-- &nbsp;{% include ".icons/material/book-open-variant.svg" %} -->
40+
</a>
41+
</li>
42+
</ul>
43+
{% endif %}
44+
45+
<!-- Original tabbed sections -->
46+
<ul class="md-tabs__list">
47+
{% for nav_item in nav %}
48+
{{ item.render(nav_item) }}
49+
{% endfor %}
50+
</ul>
51+
</div>
52+
</nav>

0 commit comments

Comments
 (0)