Skip to content

Commit e87ffe0

Browse files
committed
Updated pages.
Signed-off-by: Zelin Cai <[email protected]>
1 parent 8833a72 commit e87ffe0

File tree

20 files changed

+848
-310
lines changed

20 files changed

+848
-310
lines changed

.github/workflows/documentation.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,10 @@ jobs:
4747
with:
4848
python-version: ${{ env.PYTHON_VERSION }}
4949

50-
- name: Set the date environmental variable
51-
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
52-
53-
- uses: actions/cache@v4
50+
- name: Set up build cache
51+
uses: actions/cache/restore@v4
5452
with:
55-
key: mkdocs-material-${{ env.cache_id }}
53+
key: mkdocs-material-${{ hashfiles('.cache/**') }}
5654
path: .cache
5755
restore-keys: |
5856
mkdocs-material-

docs/.overrides/blog.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@
102102
{% for post in posts %}
103103
<li>
104104
{% set cover = "/" ~ post.url ~ post.meta.cover %}
105-
<img src="{{ cover }}" alt="{{ post.meta.title | e }}" loading="lazy">
105+
<a href="{{ post.url | url }}">
106+
<img src="{{ cover }}" alt="{{ post.meta.title | e }}" loading="lazy">
107+
</a>
106108
<h2><a href="{{ post.url | url }}" class="toclink">{{ post.meta.title }}</a></h2>
107109
<p>{{ post.meta.description }}</p>
108110
<div class="md-post__meta md-meta">

docs/.overrides/collection.html

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

docs/.overrides/home.html

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -214,48 +214,6 @@ <h1>{{ config.theme.home.hero.title }}</h1>
214214
<header class="md-typeset">
215215
{{ page.content }}
216216
</header>
217-
{% if config.theme.home.news %}
218-
<div class="md-post__grid md-post__cards">
219-
<ul>
220-
{% for post in config.theme.home.news.posts %}
221-
{% if loop.index < 4 %}
222-
<li>
223-
<img src="{{ post.cover | url }}" alt="{{ post.title | e }}" loading="lazy">
224-
<h2><a href="{{ post.url | url }}" class="toclink">{{ post.title }}</a></h2>
225-
<p>{{ post.excerpt }}</p>
226-
<div class="md-post__meta md-meta">
227-
<div class="md-meta__list">
228-
<!-- Post Date-->
229-
<div class="md-meta__item">
230-
<span class="twemoji">{% include ".icons/octicons/calendar-24.svg" %}</span>
231-
<time datetime="{{ post.date }}">
232-
{{- post.date | date -}}
233-
</time>
234-
{#- Collapse whitespace -#}
235-
</div>
236-
<!-- Post readtime -->
237-
{% if post.readtime %}
238-
{% set time = post.readtime %}
239-
<div class="md-meta__item">
240-
<span class="twemoji">{% include ".icons/octicons/clock-24.svg" %}</span>
241-
{% if time == 1 %}
242-
{{ lang.t("readtime.one") }}
243-
{% else %}
244-
{{ lang.t("readtime.other") | replace("#", time) }}
245-
{% endif %}
246-
</div>
247-
{% endif %}
248-
</div>
249-
</div>
250-
</li>
251-
{% endif %}
252-
{% endfor %}
253-
</ul>
254-
</div>
255-
<div class="md-typeset mdx-updates__viewall">
256-
<a href="{{ config.theme.home.news.viewall | url }}" class="md-button md-button--primary"> View all </a>
257-
</div>
258-
{% endif %}
259217
</div>
260218
</div>
261219
{% endblock %}

docs/assets/stylesheets/extra.css

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,65 @@
4343
color: #02a6f2;
4444
}
4545

46+
.md-typeset .blog-cards,
47+
.md-typeset .product-cards {
48+
grid-gap: 1.5rem;
49+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
50+
margin: 2rem 0 1rem 0;
51+
}
52+
53+
.md-typeset .product-cards li > p:nth-child(2) {
54+
height: 1.8rem;
55+
line-height: 1.8rem;
56+
overflow: hidden;
57+
margin: 0.5rem 0 1rem 0;
58+
}
59+
60+
.md-typeset .product-cards li > p:nth-child(2) > a {
61+
font-size: 0.8rem;
62+
font-weight: 500;
63+
color: var(--md-default-fg-color--light);
64+
display: inline-block;
65+
vertical-align: top;
66+
line-height: normal;
67+
}
68+
69+
.md-typeset .product-cards li > p:nth-child(2) > a:hover {
70+
color: var(--md-primary-fg-color);
71+
}
72+
73+
.md-typeset .product-cards li:last-child {
74+
max-width: 30rem;
75+
}
76+
77+
.md-typeset .product-cards .md-button {
78+
width: 100%;
79+
}
80+
81+
.md-typeset .product-cards p {
82+
text-align: center;
83+
}
84+
85+
.md-typeset .blog-cards a {
86+
color: var(--md-default-fg-color);
87+
}
88+
89+
.md-typeset .blog-cards a:hover {
90+
color: var(--md-primary-fg-color);
91+
}
92+
93+
.md-typeset .blog-cards p:last-child {
94+
color: var(--md-default-fg-color--light);
95+
font-size: .7rem;
96+
line-height: 1.3;
97+
margin: 0.5rem 0 !important;
98+
}
99+
100+
.md-typeset .view-all-btn {
101+
text-align: center;
102+
margin-bottom: 2rem;
103+
}
104+
46105
/*
47106
.md-typeset table:not([class]) {
48107
border: unset;

docs/index.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,44 @@ hide:
66
- toc
77
---
88

9-
# What's New
9+
# What's New
10+
11+
<div class="grid cards blog-cards" markdown>
12+
13+
- [![](./updates/posts/introducing-nrf-cloud/cover.png)][introducing-nrf-cloud]
14+
15+
__[Introducing nRF Cloud][introducing-nrf-cloud]__
16+
17+
nRF Cloud offers a suite of services optimized for Nordic ultra-low power wireless devices that supports your IoT deployment throughout its entire lifecycle.
18+
19+
:octicons-calendar-24: Mar 11, 2025 ・ :octicons-clock-24: 4 min read
20+
21+
[introducing-nrf-cloud]: ./updates/posts/introducing-nrf-cloud/index.md
22+
23+
- [![](./updates/posts/introducing-interface-mcu/cover.png)][introducing-interface-mcu]
24+
25+
__[Introducing Interface MCU][introducing-interface-mcu]__
26+
27+
The Interface MCU simplifies debugging and programming of the nRF9151 SiP without external tools and provides access to board-specific features.
28+
29+
:octicons-calendar-24: Mar 10, 2025 ・ :octicons-clock-24: 3 min read
30+
31+
[introducing-interface-mcu]: ./updates/posts/introducing-interface-mcu/index.md
32+
33+
- [![](./updates/posts/nrf9151-connect-kit-is-here/cover.png)][nrf9151-connect-kit-is-here]
34+
35+
__[nRF9151 Connect Kit is Here!][nrf9151-connect-kit-is-here]__
36+
37+
Today we are excited to launch our latest IoT prototyping kit, the nRF9151 Connect Kit, for LTE-M, NB-IoT, DECT NR+, and GNSS applications.
38+
39+
:octicons-calendar-24: Mar 07, 2025 ・ :octicons-clock-24: 4 min read
40+
41+
[nrf9151-connect-kit-is-here]: ./updates/posts/nrf9151-connect-kit-is-here/index.md
42+
43+
</div>
44+
45+
<div class = "view-all-btn" markdown>
46+
47+
[View all](./updates/index.md){ .md-button .md-button--primary }
48+
49+
</div>

docs/products/accessories.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
template: main.html
3+
title: Accessories
4+
hide:
5+
- toc
6+
---
7+
8+
# Accessories
9+
10+
> Essential add-ons for open-source hardware, from sensors to expansion boards, to power your projects and fuel innovation.
11+
12+
<div class="grid cards product-cards" markdown>
13+
14+
- [![](../assets/images/m60plate-cover.png)][m60plate-product]
15+
16+
[M60 Mechanical Keyboard Plate][m60plate-product]
17+
18+
[Buy now][m60plate-product]{ .md-button .md-button--primary }
19+
20+
[Documentation][m60plate-docs]{ .md-button }
21+
22+
[m60plate-product]: https://makerdiary.com/products/m60-mechanical-keyboard-plate
23+
[m60plate-docs]: https://wiki.makerdiary.com/m60
24+
25+
- [![](../assets/images/pitayalink-cover.png)][pitayalink-product]
26+
27+
[Pitaya-Link CMSIS-DAP Debug Probe][pitayalink-product]
28+
29+
[Buy now][pitayalink-product]{ .md-button .md-button--primary }
30+
31+
[Documentation][pitayalink-docs]{ .md-button }
32+
33+
[pitayalink-product]: https://makerdiary.com/products/pitaya-link
34+
[pitayalink-docs]: https://wiki.makerdiary.com/pitaya-link
35+
36+
- [![](../assets/images/base-dock-cover.png)][base-dock-product]
37+
38+
[Base Dock (Grove Compatible)][base-dock-product]
39+
40+
[Buy now][base-dock-product]{ .md-button .md-button--primary }
41+
42+
[Documentation][base-dock-docs]{ .md-button }
43+
44+
[base-dock-product]: https://makerdiary.com/products/base-dock
45+
[base-dock-docs]: https://wiki.makerdiary.com/base-dock
46+
47+
</div>

docs/products/index.md

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

docs/products/modules.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
template: main.html
3+
title: Modules
4+
hide:
5+
- toc
6+
---
7+
8+
# Modules
9+
10+
> Our modules seamlessly integrate into processes of any scale, delivering tailored efficiency and innovation for your unique industry needs.
11+
12+
<div class="grid cards product-cards" markdown>
13+
14+
- [![](../assets/images/nrf52840-m2-module-cover.png)][nrf52840-m2-product]
15+
16+
[nRF52840 M.2 Module][nrf52840-m2-product]
17+
18+
[Buy now][nrf52840-m2-product]{ .md-button .md-button--primary }
19+
20+
[Documentation][nrf52840-m2-docs]{ .md-button }
21+
22+
[nrf52840-m2-product]: https://makerdiary.com/products/nrf52840-m2-module
23+
[nrf52840-m2-docs]: https://wiki.makerdiary.com/nrf52840-m2
24+
25+
</div>

0 commit comments

Comments
 (0)