@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/README.md +21 -46
- package/cypress/support/mocks/helpers.js +25 -3
- package/package.json +3 -4
- package/src/Layout.vue +6 -3
- package/src/components/BlogList.vue +38 -25
- package/src/components/CTASection.vue +1 -1
- package/src/components/FeatureCard/Index.vue +16 -1
- package/src/components/FeatureSection.vue +3 -8
- package/src/components/FeaturesGallery.vue +5 -0
- package/src/components/Footer.cy.js +40 -2
- package/src/components/Footer.vue +5 -3
- package/src/components/HeroSection.vue +103 -15
- package/src/components/LogoSection.vue +1 -0
- package/src/components/MobileNavDropdown.vue +6 -3
- package/src/components/NavBar.vue +95 -15
- package/src/components/NavDropdown.vue +5 -2
- package/src/components/TagList.vue +16 -3
- package/src/components/TeamPage.vue +13 -3
- package/src/components/TestimonialsSection.vue +119 -16
- package/src/components/Tutorial.vue +3 -2
- package/src/helpers.js +13 -5
- package/src/helpers.test.js +28 -0
- package/src/pages/author/[author].md +1 -0
- package/src/pages/blog.md +1 -0
- package/src/pages/tag/[tag].md +1 -0
- package/src/pages/tag.md +1 -0
- package/src/pages/team.md +1 -0
- package/src/style.css +19 -8
- package/src/vitepressConfig.mjs +0 -6
- package/src/llms/index.js +0 -64
- package/src/llms/llms.test.js +0 -980
- package/src/llms/storiesPlugin.js +0 -771
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-
|
|
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
|
-
.
|
|
253
|
+
.hero-gradient-bg {
|
|
253
254
|
/*Fallback*/
|
|
254
|
-
background:
|
|
255
|
-
background:
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
var(--primary)
|
|
259
|
-
|
|
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
|
|
package/src/vitepressConfig.mjs
CHANGED
|
@@ -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
|
-
};
|