@zabaca/lattice 1.3.8 → 1.3.9

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/dist/main.js CHANGED
@@ -440,7 +440,19 @@ var SITE_TEMPLATE_FILES = [
440
440
  "src/collections/authors.ts",
441
441
  "src/collections/documents.ts",
442
442
  "src/collections/tags.ts",
443
- "src/plugins/rehype-strip-md-extension.ts"
443
+ "src/plugins/rehype-strip-md-extension.ts",
444
+ "src/pages/index.astro",
445
+ "src/pages/404.astro",
446
+ "src/pages/[...slug].astro",
447
+ "src/pages/tags/[...tag].astro",
448
+ "src/styles/global.css",
449
+ "src/styles/landing.css",
450
+ "src/assets/stars.png",
451
+ "src/assets/twinkling.png",
452
+ "src/assets/clouds.png",
453
+ "src/assets/texture-dark.png",
454
+ "src/assets/texture-light.png",
455
+ "src/assets/logo.png"
444
456
  ];
445
457
 
446
458
  class InitCommand extends CommandRunner2 {
@@ -528,6 +540,15 @@ OBSIDIAN_VAULT_DIR=docs
528
540
  await fs.mkdir(path.join(latticeHome, "src", "plugins"), {
529
541
  recursive: true
530
542
  });
543
+ await fs.mkdir(path.join(latticeHome, "src", "pages", "tags"), {
544
+ recursive: true
545
+ });
546
+ await fs.mkdir(path.join(latticeHome, "src", "styles"), {
547
+ recursive: true
548
+ });
549
+ await fs.mkdir(path.join(latticeHome, "src", "assets"), {
550
+ recursive: true
551
+ });
531
552
  let copied = 0;
532
553
  let skipped = 0;
533
554
  for (const file of SITE_TEMPLATE_FILES) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zabaca/lattice",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "Human-initiated, AI-powered knowledge graph for markdown documentation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,15 @@
1
+ ---
2
+ import { getStaticPathsFactory } from "astro-spaceship/components/404/utils/get-static-paths.ts";
3
+ import Page from "astro-spaceship/components/404/Page.astro";
4
+
5
+ import "@/styles/global.css";
6
+ import config from "astro-spaceship/config";
7
+
8
+ const getStaticPaths = getStaticPathsFactory({
9
+ config
10
+ })
11
+
12
+ const { props } = (await getStaticPaths())[0]
13
+ ---
14
+
15
+ <Page {...props} />
@@ -0,0 +1,17 @@
1
+ ---
2
+ import { getStaticPathsFactory, type Props } from "astro-spaceship/components/Article/utils/get-static-paths.ts";
3
+ import Page from 'astro-spaceship/components/Article/Page.astro';
4
+
5
+ import '@/styles/global.css';
6
+ import config from 'astro-spaceship/config';
7
+
8
+
9
+ export type { Props };
10
+
11
+ export const getStaticPaths = getStaticPathsFactory({
12
+ config,
13
+ });
14
+
15
+ ---
16
+
17
+ <Page {...Astro.props} />
@@ -0,0 +1,6 @@
1
+ ---
2
+ import "@/styles/landing.css";
3
+
4
+ import LandingPage from "astro-spaceship/components/LandingPage/Spaceship.astro";
5
+ ---
6
+ <LandingPage />
@@ -0,0 +1,15 @@
1
+ ---
2
+ import { getStaticPathsFactory, type Props } from "astro-spaceship/components/Tag/utils/get-static-paths.ts";
3
+ import Page from 'astro-spaceship/components/Tag/Page.astro';
4
+
5
+ import '@/styles/global.css';
6
+ import config from 'astro-spaceship/config'
7
+
8
+ export type { Props };
9
+
10
+ export const getStaticPaths = getStaticPathsFactory({
11
+ config,
12
+ });
13
+ ---
14
+
15
+ <Page {...Astro.props} />
@@ -0,0 +1 @@
1
+ @import "spaceship-monolith/theme";
@@ -0,0 +1,7 @@
1
+ @import "spaceship-monolith/landings/spaceship/theme";
2
+
3
+ :root {
4
+ --assets-stars: url('../assets/stars.png');
5
+ --assets-twinkling: url('../assets/twinkling.png');
6
+ --assets-clouds: url('../assets/clouds.png');
7
+ }