add the changelog to the app

This commit is contained in:
Yanick Champoux 2023-05-11 12:32:39 -04:00
parent 2ef72888f5
commit c562dd49db
6 changed files with 79 additions and 6 deletions

View File

@ -36,6 +36,7 @@ tasks:
build:
cmds:
- changelord print --no-next > src/routes/\(about\)/about/changelog/changelog.svx
- vite build
integrate:
@ -56,14 +57,10 @@ tasks:
release:
cmds:
- standard-version -a
changelog:
sources: [CHANGELOG.md]
generates: [src/lib/components/Changelog.svelte]
cmds:
- pnpx showdown makehtml -i CHANGELOG.md -o src/lib/components/Changelog.svelte
- git add src/lib/components/Changelog.svelte
default:
cmds:
- echo "{{.GREETING}}"
silent: true

View File

@ -50,6 +50,7 @@
"histoire": "^0.16.1",
"jsdom": "^21.1.1",
"lodash": "^4.17.21",
"mdsvex": "^0.10.6",
"memoize-one": "^6.0.0",
"redux": "^4.2.1",
"remeda": "^1.14.0",

View File

@ -3,6 +3,10 @@
<i>Question_Mark</i>
<span>About</span>
</a>
<a href="/about/changelog">
<i>Format_List_Bulleted</i>
<span>Changelog</span>
</a>
<a href="/about/see-also">
<i>Read_more</i>
<span>Other resources</span>

View File

@ -0,0 +1,25 @@
<div class="changelog">
<Changelog />
</div>
<script>
import Changelog from "./changelog.svx";
</script>
<style>
.changelog {
font-size: var(--font-scale-11);
}
.changelog :global(ul) {
margin-left: 2em;
}
.changelog :global(a) {
margin-left: 0.2em;
}
.changelog :global(h2) {
font-size: var(--font-scale-13);
}
.changelog :global(h2) {
font-size: var(--font-scale-12);
}
</style>

View File

@ -0,0 +1,44 @@
# Changelog for [AotDS: The Docks][homepage]
## 3.0.0 2023-05-09
* major rewrite.
## 2.3.0 2022-04-17
### Features
* add 'reset ship' button
* add changelog to app
* add version to About component
## 2.2.0 2022-04-11
### Features
* allow to edit the print layout
## 2.1.0 (2022-04-07)
### Features
* add localStorage memory
* can move main system comps in the print output
* add standard-version
[homepage]: https://git.babyl.ca/yanick/aotds-docks

View File

@ -1,9 +1,11 @@
import preprocess from "svelte-preprocess";
import adapter from "@sveltejs/adapter-static";
import { mdsvex } from "mdsvex";
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: preprocess(),
extensions: [".svelte", ".svx"],
preprocess: [mdsvex(), preprocess()],
kit: {
adapter: adapter({
fallback: "index.html",