@theholocron/docs-theme 1.10.5-alpha.1 → 1.11.0-alpha.3

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.
@@ -1,3 +1,4 @@
1
+ /** The `docs` content collection for `src/content.config.ts`: Starlight's docs loader and schema. Exported from `@theholocron/docs-theme/content`. */
1
2
  export declare function createDocsCollections(): {
2
3
  docs: any;
3
4
  };
package/dist/content.mjs CHANGED
@@ -2,6 +2,7 @@ import { docsLoader } from "@astrojs/starlight/loaders";
2
2
  import { docsSchema } from "@astrojs/starlight/schema";
3
3
  import { defineCollection } from "astro:content";
4
4
  // src/content.ts
5
+ /** The `docs` content collection for `src/content.config.ts`: Starlight's docs loader and schema. Exported from `@theholocron/docs-theme/content`. */
5
6
  function createDocsCollections() {
6
7
  return { docs: defineCollection({
7
8
  loader: docsLoader(),
package/dist/index.d.mts CHANGED
@@ -13,5 +13,6 @@ interface StarlightPlugin {
13
13
  setup(options: SetupOptions): void | Promise<void>;
14
14
  };
15
15
  }
16
+ /** A Starlight plugin that puts the theme's stylesheet ahead of the site's own custom CSS. */
16
17
  export declare function docsTheme(): StarlightPlugin;
17
18
  export {};
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { fileURLToPath } from "node:url";
2
2
  // src/index.ts
3
3
  const styles = fileURLToPath(new URL("./styles.css", import.meta.url));
4
+ /** A Starlight plugin that puts the theme's stylesheet ahead of the site's own custom CSS. */
4
5
  function docsTheme() {
5
6
  return {
6
7
  name: "@theholocron/docs-theme",
package/dist/loader.d.mts CHANGED
@@ -1,4 +1,8 @@
1
1
  import { Loader } from "astro/loaders";
2
+ /**
3
+ * Where a docs collection reads its pages from: a directory in the repo, or the docs of a package, under a URL
4
+ * `slug`.
5
+ */
2
6
  export type DocsSource = {
3
7
  dir: string;
4
8
  slug: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/docs-theme",
3
- "version": "1.10.5-alpha.1",
3
+ "version": "1.11.0-alpha.3",
4
4
  "description": "Starlight plugin providing the shared docs theme.",
5
5
  "keywords": [
6
6
  "astro",
@@ -49,21 +49,21 @@
49
49
  "gray-matter": "^4.0.3"
50
50
  },
51
51
  "devDependencies": {
52
- "@astrojs/starlight": "^0.41.7",
53
- "@theholocron/eslint-config": "^8.8.2",
54
- "@theholocron/tsdown-config": "^8.8.2",
55
- "@theholocron/vitest-config": "^8.8.2",
52
+ "@astrojs/starlight": "^0.42.11",
56
53
  "@tsconfig/node-lts": "^24.0.1",
57
54
  "@types/node": "^26",
58
- "@vitest/coverage-v8": "^5.0.5",
59
- "@vitest/eslint-plugin": "^1.6.27",
60
- "astro": "^7.2.2",
61
- "eslint": "^10.8.1",
62
- "eslint-plugin-n": "^18.3.0",
63
- "globals": "^17.11.0",
64
- "tsdown": "^0.23.3",
55
+ "@vitest/coverage-v8": "^5.1.0",
56
+ "@vitest/eslint-plugin": "^1.6.28",
57
+ "astro": "^7.4.7",
58
+ "eslint": "^10.14.0",
59
+ "eslint-plugin-n": "^18.5.0",
60
+ "globals": "^17.14.0",
61
+ "tsdown": "^0.23.7",
65
62
  "typescript": "^5.9.3",
66
- "vitest": "^5.0.5"
63
+ "vitest": "^5.1.0",
64
+ "@theholocron/eslint-config": "^8.9.0-alpha.20",
65
+ "@theholocron/vitest-config": "^8.9.0-alpha.20",
66
+ "@theholocron/tsdown-config": "^8.9.0-alpha.20"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@astrojs/starlight": ">=0.30.0",
@@ -76,10 +76,10 @@
76
76
  "access": "public"
77
77
  },
78
78
  "scripts": {
79
- "delivery.build": "tsdown && cp src/styles.css dist/",
80
- "sourceQuality.staticAnalysis": "eslint .",
79
+ "build": "tsdown && cp src/styles.css dist/",
80
+ "lint:code": "eslint .",
81
+ "test:unit": "vitest run --coverage",
81
82
  "test:watch": "vitest",
82
- "verification.typeSafety": "tsc --noEmit",
83
- "verification.unitTests": "vitest run"
83
+ "typecheck": "tsc --noEmit"
84
84
  }
85
85
  }