@hagicode/hagilight-starlight 0.1.2-dev.3.1.1c174fd → 0.1.2-dev.4.1.974ccd5

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ import PromotoBanner from '@hagicode/hagilight/PromotoBanner';
3
+ import Footer from './Footer.astro';
4
+ ---
5
+
6
+ <Footer />
7
+ <PromotoBanner />
package/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { fileURLToPath } from 'node:url';
2
2
 
3
- export default function hagilight() {
3
+ export default function hagilight(options = {}) {
4
+ const footer = options.promoto?.enabled === false ? 'Footer.astro' : 'PromotoFooter.astro';
4
5
  return {
5
6
  name: '@hagicode/hagilight-starlight',
6
7
  hooks: {
@@ -12,7 +13,7 @@ export default function hagilight() {
12
13
  updateConfig({
13
14
  components: {
14
15
  ...config.components,
15
- Footer: fileURLToPath(new URL('./Footer.astro', import.meta.url)),
16
+ Footer: fileURLToPath(new URL(`./${footer}`, import.meta.url)),
16
17
  },
17
18
  });
18
19
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hagicode/hagilight-starlight",
3
- "version": "0.1.2-dev.3.1.1c174fd",
3
+ "version": "0.1.2-dev.4.1.974ccd5",
4
4
  "type": "module",
5
5
  "description": "Starlight customizations for HagiCode documentation",
6
6
  "repository": {
@@ -14,14 +14,15 @@
14
14
  },
15
15
  "exports": {
16
16
  ".": "./index.mjs",
17
- "./Footer": "./Footer.astro"
17
+ "./Footer": "./Footer.astro",
18
+ "./PromotoFooter": "./PromotoFooter.astro"
18
19
  },
19
20
  "files": [
20
21
  "index.mjs",
21
22
  "*.astro"
22
23
  ],
23
24
  "dependencies": {
24
- "@hagicode/hagilight": "0.1.2-dev.3.1.1c174fd"
25
+ "@hagicode/hagilight": "0.1.2-dev.4.1.974ccd5"
25
26
  },
26
27
  "peerDependencies": {
27
28
  "@astrojs/starlight": "^0.42.4",