Skip to content

Commit ebe0ba6

Browse files
Changelog adapted
- Ignore nightly tag on GitHub - Correct display of github alerts
1 parent aae45ea commit ebe0ba6

File tree

7 files changed

+28
-17
lines changed

7 files changed

+28
-17
lines changed

docs/.vitepress/theme/components/ChangelogList.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
<script setup lang="ts">
22
import MarkdownIt from 'markdown-it'
3+
import MarkdownItGitHubAlerts from 'markdown-it-github-alerts'
34
import { data as changelogs } from '../data/changelogs.data.mts'
45
import Contributors from './Contributors.vue'
56
7+
import 'markdown-it-github-alerts/styles/github-colors-light.css'
8+
import 'markdown-it-github-alerts/styles/github-colors-dark-media.css'
9+
import 'markdown-it-github-alerts/styles/github-base.css'
10+
611
const dateFormatter = new Intl.DateTimeFormat('en', {
712
dateStyle: 'medium',
813
})
914
</script>
1015

1116
<template>
1217
<div
13-
v-for="(release, index) of changelogs"
18+
v-for="(release, index) of changelogs.filter(release => release.tag_name !== 'nightly')"
1419
:key="release.tag_name"
1520
>
1621
<h2 :id="index === 0 ? 'latest' : release.tag_name">
@@ -29,7 +34,7 @@ const dateFormatter = new Intl.DateTimeFormat('en', {
2934
<time :datetime="release.published_at!">
3035
{{ dateFormatter.format(new Date(release.published_at!)) }}
3136
</time>
32-
<div v-html="MarkdownIt().render(release.body ?? 'No changelog provided.')" />
37+
<div v-html="MarkdownIt().use(MarkdownItGitHubAlerts).render(release.body ?? 'No changelog provided.')" />
3338
<Contributors
3439
:body="release.body!"
3540
:author="release.author.login"

docs/changelogs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ import ChangelogList from '@theme/components/ChangelogList.vue'
1313

1414
# Changelogs
1515

16-
Changelogs of all Hyperion releases, which are also available [on GitHub](https://github.com/hyperion-project/hyperion.ng/releases).
16+
Changelogs of all stable Hyperion releases, which are also available [on GitHub](https://github.com/hyperion-project/hyperion.ng/releases).
1717

1818
<ChangelogList />

docs/de/changelogs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ import ChangelogList from '@theme/components/ChangelogList.vue'
1313

1414
# Changelogs
1515

16-
Changelogs aller Hyperion-Versionen, die auch [auf GitHub](https://github.com/hyperion-project/hyperion.ng/releases) verfügbar sind.
16+
Changelogs aller stabilen Hyperion-Versionen, die auch [auf GitHub](https://github.com/hyperion-project/hyperion.ng/releases) verfügbar sind.
1717

1818
<ChangelogList />

docs/de/user/gettingstarted/Linux.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Wenn du schnell und einfach unter Linux loslegen möchtest, kannst du Hyperion m
1111
::: tip Stabile oder tägliche (Nightly) Version?
1212
Neben der stabilen Version gibt es auch tägliche Versionen sogenannte "Nightly release". Wenn du ein Nightly release installieren willst, wähle einfach die Registerkarte "Nightly release" aus.
1313
<p style="color: var(--vp-custom-block-warning-text);">Ein Nightly release kann neuere Funktionen, Fehlerbehebungen etc. enthalten und wird jede Nacht neu erstellt (wenn sich etwas geändert hat). Die Verwendung erfolgt auf eigene Gefahr.</p>
14-
1514
:::
1615

1716
Kopiere einfach den Befehl, füge ihn in deine Konsole ein und drücke die Eingabetaste, um den Installationsvorgang zu starten.
@@ -26,6 +25,10 @@ curl -sSL https://releases.hyperion-project.org/install | bash
2625
curl -sSL https://releases.hyperion-project.org/install | bash -s -- --nightly
2726
```
2827

28+
``` sh:no-line-numbers [ <div class="icon-text">Deinstallieren<div class="icon-color icon-16" v-html="uninstall"/></div> ]
29+
curl -sSL https://releases.hyperion-project.org/install | bash -s -- --remove
30+
```
31+
2932
:::
3033

3134
::: details Andere Distributionen basierend auf Ubuntu oder Debian
@@ -41,17 +44,13 @@ curl -sSL https://releases.hyperion-project.org/install | bash -s -- --ubuntu 'j
4144
```
4245
:::
4346

44-
::: details LibreELEC
47+
::: details <div class="icon-text">LibreELEC<div class="icon-color icon-16" v-html="libreelec"/></div>
4548

4649
Das gleiche einfache Installationsskript kann verwendet werden, aber besondere Aufmerksamkeit ist erforderlich, wenn eine Version aktualisiert werden soll.
4750

4851
Wenn Du ein Upgrade durchführen möchtest, sind die folgenden zwei Schritte erforderlich, da LibreELEC keine Pakete oder damit verbundene Upgrades unterstützt:
4952

50-
1. Entfernen die aktuelle Version mit dem folgenden Befehl:
51-
52-
``` sh:no-line-numbers
53-
curl -sSL https://releases.hyperion-project.org/install | bash -s -- --remove
54-
```
53+
1. Entfernen die aktuelle Version mit dem 'Deinstallieren' Befehl, siehe oben:
5554

5655
2. Installiere die neueste Version, siehe oben.
5756

@@ -197,8 +196,10 @@ sudo rm /etc/yum.repos.d/hyperion.repo
197196

198197
<script lang="ts" setup>
199198
import nightly from '/icons/svg/nightly.svg?raw'
199+
import uninstall from '/icons/svg/uninstall.svg?raw'
200200
import easy from '/icons/svg/easy.svg?raw'
201201
import advanced from '/icons/svg/advanced.svg?raw'
202+
import libreelec from '/icons/svg/libreelec.svg?raw'
202203
</script>
203204

204205
<style>
Lines changed: 3 additions & 0 deletions
Loading

docs/user/gettingstarted/Linux.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In addition to the standard stable releases, there are also nightly releases ava
1313
<p style="color: var(--vp-custom-block-warning-text);">The Nightly variant may contain newer features/bugfixes etc. and is rebuilt every night (if something has changed). Use at your own risk.</p>
1414
:::
1515

16-
To install, copy the command, paste it into your terminal, and hit Enter to begin the installation process.
16+
To install/uninstall, copy the command, paste it into your terminal, and hit Enter to begin the installation process.
1717

1818
::: code-group
1919

@@ -25,6 +25,10 @@ curl -sSL https://releases.hyperion-project.org/install | bash
2525
curl -sSL https://releases.hyperion-project.org/install | bash -s -- --nightly
2626
```
2727

28+
``` sh:no-line-numbers [ <div class="icon-text">Uninstall<div class="icon-color icon-16" v-html="uninstall"/></div> ]
29+
curl -sSL https://releases.hyperion-project.org/install | bash -s -- --remove
30+
```
31+
2832
:::
2933

3034
::: details Other distributions based on Ubuntu or Debian
@@ -47,11 +51,7 @@ The same easy installation script can be used, but special attention is required
4751

4852
If you wish to upgrade, the following two steps are required, as LibreELEC does not support packages or related upgrades:
4953

50-
1. Remove the current version using the following command:
51-
52-
``` sh:no-line-numbers
53-
curl -sSL https://releases.hyperion-project.org/install | bash -s -- --remove
54-
```
54+
1. Remove the current version using the 'Uninstall' command above.
5555

5656
2. Install the latest version, see above.
5757

@@ -197,6 +197,7 @@ sudo rm /etc/yum.repos.d/hyperion.repo
197197

198198
<script lang="ts" setup>
199199
import nightly from '/icons/svg/nightly.svg?raw'
200+
import uninstall from '/icons/svg/uninstall.svg?raw'
200201
import easy from '/icons/svg/easy.svg?raw'
201202
import advanced from '/icons/svg/advanced.svg?raw'
202203
import libreelec from '/icons/svg/libreelec.svg?raw'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@octokit/types": "latest",
2222
"floating-vue": "latest",
2323
"markdown-it": "^14.1.0",
24+
"markdown-it-github-alerts": "^1.0.0",
2425
"medium-zoom": "latest"
2526
}
2627
}

0 commit comments

Comments
 (0)