@edoxen/browser 0.1.0 → 0.1.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edoxen/browser",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Astro-based browser for edoxen YAML data — drop in your data and ship a resolutions archive site.",
5
5
  "type": "module",
6
6
  "license": "BSD-2-Clause",
@@ -59,7 +59,7 @@
59
59
  "astro": "^4.0.0 || ^5.0.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@edoxen/edoxen": "link:../../../edoxen-js/packages/edoxen",
62
+ "@edoxen/edoxen": "^0.2.0",
63
63
  "@types/node": "^22.10.0",
64
64
  "ajv": "^8.17.0",
65
65
  "astro": "^5.0.0",
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  import type { EdoxenConfig } from '../../config/index.js'
3
3
  import { generateCssTokens } from '../../config/index.js'
4
+ import baseCss from '../../../styles/base.css?raw'
4
5
 
5
6
  interface Props {
6
7
  config: EdoxenConfig
@@ -13,6 +14,7 @@ const { config, title, description, lang = config.site.locale } = Astro.props
13
14
  const pageTitle = title ?? config.site.title
14
15
  const pageDescription = description ?? config.site.description
15
16
  const tokens = generateCssTokens(config.theme)
17
+ const globalCss = `${baseCss}\n${tokens}`
16
18
  const canonical = new URL(Astro.url.pathname, config.site.url).toString()
17
19
  ---
18
20
 
@@ -33,7 +35,7 @@ const canonical = new URL(Astro.url.pathname, config.site.url).toString()
33
35
  <meta name="twitter:card" content="summary" />
34
36
  <meta name="twitter:title" content={pageTitle} />
35
37
  <meta name="twitter:description" content={pageDescription} />
36
- <style is:global set:html={tokens} />
38
+ <style is:global set:html={globalCss} />
37
39
  <slot name="head" />
38
40
  </head>
39
41
  <body>