@sp-days-framework/slidev-theme-sykehuspartner 1.1.0-beta2 → 1.1.0-beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,23 @@ All packages within `@sp-days-framework` use the same version number. In some ca
19
19
 
20
20
  ---
21
21
 
22
+ ## Version 1.1.0-beta3 ![Update](https://img.shields.io/badge/update-bug--fixes-green)
23
+
24
+ Bug fixes and improvements for theme stability across different project setups.
25
+
26
+ <details>
27
+ <summary><strong>Details</strong> (2025 December 12)</summary>
28
+
29
+ ### Bug Fixes
30
+
31
+ - **uno.config.ts**: Fixed codeblock icon scanning to work correctly when the theme is installed as a dependency in other projects
32
+ - **two-cols-header**: Fixed h2 and h3 heading margins to be consistent with other layouts
33
+ - **end layout**: Fixed text centering so content is properly horizontally centered
34
+
35
+ </details>
36
+
37
+ ---
38
+
22
39
  ## Version 1.1.0-beta2 ![Sync](https://img.shields.io/badge/sync-version--bump-lightgrey)
23
40
 
24
41
  Version bump to match other packages in the framework with minor documentation improvements
package/layouts/end.vue CHANGED
@@ -34,6 +34,7 @@ const showBanner = computed(() => {
34
34
  flex-direction: column;
35
35
  align-items: center;
36
36
  justify-content: center;
37
+ text-align: center;
37
38
  }
38
39
 
39
40
  .banner-container {
@@ -63,6 +63,12 @@ const contentAlignmentStyle = computed(() => {
63
63
  margin-bottom: 1rem;
64
64
  }
65
65
 
66
+ :deep(h1),
67
+ :deep(h2),
68
+ :deep(h3) {
69
+ margin-bottom: 0.5rem;
70
+ }
71
+
66
72
  .cols-container {
67
73
  display: flex;
68
74
  flex-grow: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sp-days-framework/slidev-theme-sykehuspartner",
3
- "version": "1.1.0-beta2",
3
+ "version": "1.1.0-beta3",
4
4
  "description": "A Slidev theme for Sykehuspartner presentations.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -6,7 +6,15 @@
6
6
  */
7
7
 
8
8
  module.exports = {
9
- id: 'sykehuspartner-theme-docs',
10
- path: require('path').join(__dirname, 'docs'),
11
- routeBasePath: 'package-docs/sykehuspartner-theme',
9
+ id: "sykehuspartner-theme-docs",
10
+ path: require("path").join(__dirname, "docs"),
11
+ editUrl: function (params) {
12
+ // Remove node_modules/@sp-days-framework/slidev-theme-sykehuspartner/docs from the path
13
+ const cleanPath = params.docPath.replace(
14
+ /^.*node_modules\/@sp-days-framework\/slidev-theme-sykehuspartner\/docs\//,
15
+ "",
16
+ );
17
+ return `https://github.com/helse-sorost/sp-days-framework/edit/main/slidev-theme-sykehuspartner/docs/${cleanPath}`;
18
+ },
19
+ routeBasePath: "package-docs/sykehuspartner-theme",
12
20
  };
package/uno.config.ts CHANGED
@@ -6,7 +6,8 @@ import { globSync } from 'glob'
6
6
  function scanFilesForIcons() {
7
7
  try {
8
8
  // Find all markdown files in the project directory and all subdirectories
9
- const slideFiles = globSync('**/*.md', { absolute: true })
9
+ // Use process.cwd() to scan from the actual project root, not the theme package location
10
+ const slideFiles = globSync('**/*.md', { absolute: true, cwd: process.cwd() })
10
11
 
11
12
  // Pattern to match icon references like ~i-vscode-icons:file-type-ansible~
12
13
  const iconPattern = /~(i-[a-zA-Z0-9-]+:[a-zA-Z0-9-]+)~/g