Skip to content

Commit 2b8260f

Browse files
author
Serap Aydin
committed
-assests added to release notes, Blog layout added, Changed Powerpoint for FHIR followup, Changed Ping-pong with a higher resolution image, created gmds article, Added DSF 2.0 Announcement to Home page and under Operations v.2.0.0-M3
1 parent b060a4d commit 2b8260f

35 files changed

+597
-410
lines changed

docs/package-lock.json

Lines changed: 405 additions & 360 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@vuepress/plugin-markdown-tab": "2.0.0-rc.104",
1818
"@vuepress/plugin-slimsearch": "2.0.0-rc.104",
1919
"katex": "^0.16.22",
20+
"sass-embedded": "^1.89.2",
2021
"sass-loader": "16.0.5",
2122
"vue": "3.5.14",
2223
"vuepress": "2.0.0-rc.23",

docs/src/.vuepress/client.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,19 @@ import { Layout as ParentLayout } from "vuepress-theme-hope/client";
33

44
import Layout from './layouts/PageLayout.vue'
55
import NotFoundLayout from './layouts/NotFoundLayout.vue'
6+
import BlogLayout from './layouts/BlogLayout.vue';
7+
import NewsList from "./components/NewsList.vue"; // adjust if path differs
8+
69

710
export default defineClientConfig({
11+
enhance({ app }) {
12+
app.component("NewsList", NewsList);
13+
},
814
layouts: {
915
ParentLayout,
1016
Layout,
1117
NotFound: NotFoundLayout,
18+
Blog: BlogLayout,
19+
1220
},
1321
})
Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,8 @@
11
<script setup lang="ts">
2-
import { computed } from "vue";
3-
import { useArticles } from "vuepress-theme-hope/composables/blog/useArticles";
4-
5-
type ArticleInfo = {
6-
title: string;
7-
path: string;
8-
date?: Date;
9-
excerpt?: string;
10-
category?: string[];
11-
tag?: string[];
12-
sticky?: boolean;
13-
cover?: string;
14-
isEncrypted?: boolean;
15-
};
16-
17-
const props = defineProps<{ count?: number }>();
18-
const displayCount = computed(() => props.count ?? 5);
19-
20-
const articlesMap = useArticles();
21-
22-
23-
const sortedArticles = computed(() => {
24-
const allArticles: ArticleInfo[] = Object.values(articlesMap.value).flat();
25-
26-
return allArticles
27-
.filter((a) => a.date) // optional
28-
.sort((a, b) => new Date(b.date!).getTime() - new Date(a.date!).getTime());
29-
});
302
</script>
313

324
<template>
33-
<div class="news-list">
34-
<h2> Latest News</h2>
35-
<p v-if="sortedArticles.length === 0"> No articles found.</p>
36-
<ul>
37-
<li v-for="article in sortedArticles.slice(0, displayCount)" :key="article.path">
38-
<RouterLink :to="article.path">
39-
{{ article.title }} — {{ article.date?.toLocaleDateString?.() }}
40-
</RouterLink>
41-
</li>
42-
</ul>
43-
</div>
5+
<section>
6+
<h2>News List</h2>
7+
</section>
448
</template>
45-
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<script setup lang="ts">
2+
import { Blog } from "vuepress-theme-hope/blog";
3+
import { usePageFrontmatter } from "vuepress/client";
4+
import { computed } from "vue";
5+
6+
const frontmatter = usePageFrontmatter<{ cover?: string }>();
7+
const cover = computed(() => frontmatter.value.cover);
8+
</script>
9+
10+
<template>
11+
<Blog>
12+
<template #articleCover>
13+
<img v-if="cover" :src="cover" alt="Cover image" />
14+
</template>
15+
<template #infoAfter>
16+
<div style="text-align: center; font-size: 0.8em; color: #666; margin-top: 8px;">
17+
Banner image by <a href="https://unsplash.com/de/@fakurian" target="_blank" rel="noopener noreferrer">Milad Fakurian</a> on <a href="https://unsplash.com/" target="_blank" rel="noopener noreferrer">Unsplash</a>
18+
</div>
19+
</template>
20+
</Blog>
21+
</template>
551 KB
Loading
Binary file not shown.
551 KB
Loading

docs/src/.vuepress/sidebar/fetch-versioned-release-notes.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ EOF
6161
echo "### $RELEASE_NAME" >> "$OUTPUT_FILE"
6262
echo "$RELEASE_BODY" >> "$OUTPUT_FILE"
6363

64+
# Add source code asset links
65+
ZIP_LINK="https://github.com/$REPO_OWNER/$REPO_NAME/archive/refs/tags/$VERSION.zip"
66+
TAR_GZ_LINK="https://github.com/$REPO_OWNER/$REPO_NAME/archive/refs/tags/$VERSION.tar.gz"
67+
68+
echo "" >> "$OUTPUT_FILE"
69+
echo "**Assets:** " >> "$OUTPUT_FILE"
70+
echo "- [ZIP]($ZIP_LINK)" >> "$OUTPUT_FILE"
71+
echo "- [TAR.GZ]($TAR_GZ_LINK)" >> "$OUTPUT_FILE"
72+
echo "" >> "$OUTPUT_FILE"
73+
74+
6475
echo "" >> "$OUTPUT_FILE"
6576
done
6677

0 commit comments

Comments
 (0)