Skip to content

Commit f0d69dc

Browse files
committed
Update navigation order and add new user manual sections
1 parent 2f884b2 commit f0d69dc

File tree

16 files changed

+188
-70
lines changed

16 files changed

+188
-70
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Changelog
33
layout: default
4-
nav_order: 5
4+
nav_order: 3
55
---
66

77
# Changelog

_config.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,29 @@ defaults:
1717
values:
1818
layout: "default"
1919
nav_exclude: false
20-
20+
2121
aux_links:
22-
"github.com/os2display":
23-
- "//github.com/os2display"
24-
"os2.eu/os2display":
22+
"OS2Display på os2.eu":
2523
- "//www.os2.eu/os2display"
2624

25+
nav_external_links:
26+
- title: OS2Display på GitHub
27+
url: //github.com/os2display/display-api-service
28+
hide_icon: false # set to true to hide the external link icon - defaults to false
29+
opens_in_new_tab: true # set to true to open this link in a new tab - defaults to false
30+
2731
mermaid:
2832
# Version of mermaid library
2933
# Pick an available version from https://cdn.jsdelivr.net/npm/mermaid/
3034
version: "9.1.3"
35+
36+
collections:
37+
news:
38+
output: true
39+
40+
just_the_docs:
41+
collections:
42+
news:
43+
name: Nyheder
44+
search_exclude: false
45+

_includes/footer_custom.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{% if page.parent and page.nav_order %}
2+
{% assign parent_pages = site.html_pages | where: "parent", page.parent | where_exp: "item", "item.nav_order != nil" | sort: "nav_order" %}
3+
{% assign current_index = -1 %}
4+
{% for p in parent_pages %}
5+
{% if p.url == page.url %}
6+
{% assign current_index = forloop.index0 %}
7+
{% break %}
8+
{% endif %}
9+
{% endfor %}
10+
11+
{% if current_index >= 0 %}
12+
{% assign prev_index = current_index | minus: 1 %}
13+
{% assign next_index = current_index | plus: 1 %}
14+
15+
<nav aria-label="Page navigation" class="d-flex flex-justify-between mb-4">
16+
<div>
17+
{% if prev_index >= 0 %}
18+
{% assign prev_page = parent_pages[prev_index] %}
19+
<a href="{{ prev_page.url | relative_url }}" class="btn btn-outline">
20+
<svg viewBox="0 0 24 24" class="icon" style="width: 16px; height: 16px; vertical-align: middle;"><use xlink:href="#svg-arrow-right" transform="rotate(180 12 12)"></use></svg>
21+
{{ prev_page.title }}
22+
</a>
23+
{% endif %}
24+
</div>
25+
<div class="text-right">
26+
{% if next_index < parent_pages.size %}
27+
{% assign next_page = parent_pages[next_index] %}
28+
<a href="{{ next_page.url | relative_url }}" class="btn btn-outline">
29+
{{ next_page.title }}
30+
<svg viewBox="0 0 24 24" class="icon" style="width: 16px; height: 16px; vertical-align: middle;"><use xlink:href="#svg-arrow-right"></use></svg>
31+
</a>
32+
{% endif %}
33+
</div>
34+
</nav>
35+
{% endif %}
36+
{% endif %}

_includes/nav_footer_custom.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

_layouts/frontpage.html

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
layout: default
3+
---
4+
5+
{{ content }}
6+
7+
{% capture page_bottom %}
8+
<div class="d-block d-md-flex mb-8">
9+
<!-- News column (2/3 width) -->
10+
<div class="flex-grow-1 pr-md-6 mb-6 mb-md-0" style="flex: 0 0 66.666%;">
11+
<h2 class="fs-7 fw-500 text-grey-dk-200 mb-4 mt-4">Nyheder</h2>
12+
{% for news_item in site.news %}
13+
<div class="p-4 mb-4 bg-grey-lt-000 d-block">
14+
<h3 class="fs-5 fw-500 mb-2 mt-3"><a href="{{ news_item.url }}" class="text-blue-200 fw-700">{{ news_item.title }}</a></h3>
15+
<p class="fs-3 text-grey-dk-100 mb-2 fw-300">{{ news_item.date | date: "%B %d, %Y" }}</p>
16+
<p class="fs-4 text-grey-dk-200 lh-default">{{ news_item.summary }}</p>
17+
</div>
18+
{% endfor %}
19+
</div>
20+
21+
<!-- Second column (1/3 width) -->
22+
<div class="flex-grow-1" style="flex: 0 0 33.333%;">
23+
<h2 class="fs-7 fw-500 text-grey-dk-200 mb-4 mt-4">System status</h2>
24+
<div class="p-4 bg-grey-lt-100">
25+
<h3 class="fs-5 fw-700 text-grey-dk-300 mb-3 mt-3">Åbne sager</h3>
26+
<a href="https://github.com/os2display/display-api-service/issues?q=is%3Aissue+is%3Aopen+label%3Abug" class="d-block mb-2">
27+
<img src="https://img.shields.io/github/issues/os2display/display-api-service/bug" alt="Open bug issues">
28+
</a>
29+
<a href="https://github.com/os2display/display-api-service/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement" class="d-block mb-2">
30+
<img src="https://img.shields.io/github/issues/os2display/display-api-service/enhancement" alt="Open enhancement issues">
31+
</a>
32+
<a href="https://github.com/os2display/display-api-service/issues?q=is%3Aissue+is%3Aopen+label%3A%22crowdfunding+needed%22" class="d-block mb-1">
33+
<img src="https://img.shields.io/github/issues/os2display/display-api-service/crowdfunding%20needed" alt="Open crowdfunding needed issues">
34+
</a>
35+
<p class="fs-4 text-grey-dk-200 mb-5">Se alle sager i <a href="issue_tracker.html">issue trackeren</a>.</p>
36+
<h3 class="fs-5 fw-700 text-grey-dk-300 mb-3">Seneste release</h3>
37+
<a href="https://github.com/os2display/display-api-service/releases/latest" class="d-block mb-2">
38+
<img src="https://img.shields.io/github/v/release/os2display/display-api-service?label=display-api-service" alt="display-api-service release">
39+
</a>
40+
<a href="https://github.com/os2display/display-admin-client/releases/latest" class="d-block mb-2">
41+
<img src="https://img.shields.io/github/v/release/os2display/display-admin-client?label=display-admin-client" alt="display-admin-client release">
42+
</a>
43+
<a href="https://github.com/os2display/display-client/releases/latest" class="d-block mb-2">
44+
<img src="https://img.shields.io/github/v/release/os2display/display-client?label=display-client" alt="display-client release">
45+
</a>
46+
<a href="https://github.com/os2display/display-templates/releases/latest" class="d-block mb-3">
47+
<img src="https://img.shields.io/github/v/release/os2display/display-templates?label=display-templates" alt="display-templates release">
48+
</a>
49+
<p class="fs-4 text-grey-dk-200">Se <a href="CHANGELOG.html">changelog</a> for detaljer om releases.</p>
50+
</div>
51+
<h2 class="fs-7 fw-500 text-grey-dk-200 mb-4 mt-6">Kontakt</h2>
52+
<div class="p-4 bg-grey-lt-100">
53+
<p class="fs-4 text-grey-dk-200">Har du spørgsmål, idéer eller kommentarer til OS2Display så skriv til <a href="mailto:os2display@os2.eu">os2display@os2.eu</a>. Vi hører gerne fra dig!</p>
54+
</div>
55+
</div>
56+
</div>
57+
{% endcapture %}
58+
59+
{{ page_bottom }}

assets/log-in-page.png

45.9 KB
Loading

assets/main-menu.png

573 KB
Loading

community/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Om produktfællesskabet
3+
layout: default
4+
nav_order: 4
5+
has_children: true
6+
---

development/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
title: Udvikling
33
layout: default
44
nav_order: 4
5+
redirect_to: development/development.html
56
has_children: true
67
---

hosting/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
title: Installation og drift
33
layout: default
44
nav_order: 3
5+
redirect_to: hosting/hosting.html
56
has_children: true
67
---

0 commit comments

Comments
 (0)