@eox/pages-theme-eox 2.0.0-alpha.7 → 2.0.0-alpha.8

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/src/style.css CHANGED
@@ -224,7 +224,8 @@ footer {
224
224
  margin-top: 0 !important;
225
225
  position: relative;
226
226
  z-index: var(--vp-z-index-footer);
227
- background: var(--surface-container-low);
227
+ background: var(--surface-container-lowest);
228
+ border-top: 1px solid var(--vp-c-divider, rgba(0, 0, 0, 0.08));
228
229
  }
229
230
 
230
231
  /**/
@@ -249,14 +250,24 @@ button.text:hover,
249
250
  }
250
251
  }
251
252
 
252
- .primary-gradient-bg {
253
+ .hero-gradient-bg {
253
254
  /*Fallback*/
254
- background: var(--primary);
255
- background: radial-gradient(
256
- 74.48% 130.95% at 50% -12.27%,
257
- hsl(from var(--primary) h s calc(l + 7)) 0%,
258
- var(--primary) 45%,
259
- hsl(from var(--primary) h s calc(l - 20)) 100%
255
+ background: #000c14;
256
+ background: linear-gradient(
257
+ 180deg,
258
+ #000c14 0%,
259
+ var(--primary, #004170) 100%
260
+ ) !important;
261
+ }
262
+
263
+ .primary-gradient-bg,
264
+ .dark-section-gradient-bg {
265
+ /*Fallback*/
266
+ background: #000c14;
267
+ background: linear-gradient(
268
+ 180deg,
269
+ var(--primary, #004170) 0%,
270
+ #000c14 100%
260
271
  ) !important;
261
272
  }
262
273
 
@@ -1,6 +1,5 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { resolveLlms } from "./llms/index.js";
4
3
 
5
4
  function copyThemePages() {
6
5
  try {
@@ -94,7 +93,6 @@ function getBlogRewrites() {
94
93
  */
95
94
  export const generate = (brandConfig) => {
96
95
  copyThemePages();
97
- const llmsResult = resolveLlms(brandConfig.llms, brandConfig);
98
96
  const config = {
99
97
  appearance: false,
100
98
  cleanUrls: true,
@@ -193,9 +191,6 @@ export const generate = (brandConfig) => {
193
191
  themeConfig: {
194
192
  outline: "deep",
195
193
  siteTitle: false,
196
- llms: {
197
- copyButtons: llmsResult.copyButtons,
198
- },
199
194
  theme: {
200
195
  primaryColor: brandConfig.theme?.primary_color,
201
196
  secondaryColor:
@@ -228,7 +223,6 @@ export const generate = (brandConfig) => {
228
223
  optimizeDeps: {
229
224
  exclude: ["@eox/pages-theme-eox"],
230
225
  },
231
- plugins: [...llmsResult.plugins],
232
226
  },
233
227
  vue: {
234
228
  template: {
package/src/llms/index.js DELETED
@@ -1,64 +0,0 @@
1
- import llmstxt from "vitepress-plugin-llms";
2
- import { createStoriesPlugin } from "./storiesPlugin.js";
3
-
4
- const LLMS_DEFAULTS = {};
5
-
6
- /**
7
- * Normalizes a URL by stripping trailing slashes.
8
- * @param {string | undefined | null} url
9
- * @returns {string | null}
10
- */
11
- export const normalizeDomain = (url) => {
12
- if (!url || typeof url !== "string") return null;
13
- return url.replace(/\/+$/, "");
14
- };
15
-
16
- /**
17
- * Resolve the llms option into Vite plugins and package-owned flags.
18
- * @param {boolean | Record<string, any>} [option] The `llms` option
19
- * @param {Record<string, any>} [brandConfig] Brand configuration object
20
- * @returns {{ plugins: any[], copyButtons: boolean, stories: any, domain: string | null }}
21
- */
22
- export const resolveLlms = (option, brandConfig = {}) => {
23
- if (option === false) {
24
- return {
25
- plugins: [],
26
- copyButtons: false,
27
- stories: null,
28
- domain: null,
29
- };
30
- }
31
-
32
- const {
33
- copyButtons = false,
34
- stories = null,
35
- ...settings
36
- } = option === true || option === undefined ? {} : option;
37
-
38
- const rawDomain = settings.domain;
39
- const domain = normalizeDomain(rawDomain);
40
-
41
- const upstreamPlugins = llmstxt({
42
- ...LLMS_DEFAULTS,
43
- ...settings,
44
- ...(domain ? { domain } : {}),
45
- });
46
-
47
- const plugins = [...upstreamPlugins];
48
- if (stories !== false) {
49
- plugins.push(
50
- createStoriesPlugin({
51
- storiesOption: stories,
52
- brandConfig,
53
- domain,
54
- }),
55
- );
56
- }
57
-
58
- return {
59
- plugins,
60
- copyButtons: Boolean(copyButtons),
61
- stories,
62
- domain,
63
- };
64
- };