@theholocron/docs-theme 1.3.4 → 1.3.5

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,10 +1,6 @@
1
1
  //#region src/content.d.ts
2
- interface DocsConfig {
3
- slug: string;
4
- name: string;
5
- }
6
- declare function createDocsCollections(docsConfig: DocsConfig, importMetaUrl: string): {
2
+ declare function createDocsCollections(): {
7
3
  docs: any;
8
4
  };
9
5
  //#endregion
10
- export { DocsConfig, createDocsCollections };
6
+ export { createDocsCollections };
package/dist/content.mjs CHANGED
@@ -1,14 +1,10 @@
1
- import { createDocsLoader } from "./loader.mjs";
2
- import { fileURLToPath } from "node:url";
1
+ import { docsLoader } from "@astrojs/starlight/loaders";
3
2
  import { docsSchema } from "@astrojs/starlight/schema";
4
3
  import { defineCollection } from "astro:content";
5
4
  //#region src/content.ts
6
- function createDocsCollections(docsConfig, importMetaUrl) {
5
+ function createDocsCollections() {
7
6
  return { docs: defineCollection({
8
- loader: createDocsLoader([{
9
- dir: fileURLToPath(new URL(`../../packages/${docsConfig.slug}-docs/content`, importMetaUrl)),
10
- slug: ""
11
- }]),
7
+ loader: docsLoader(),
12
8
  schema: docsSchema()
13
9
  }) };
14
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/docs-theme",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Starlight plugin providing the shared docs theme.",
5
5
  "keywords": [
6
6
  "astro",