@theholocron/astro-config 8.9.0-alpha.3 → 8.9.0-alpha.4

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 CHANGED
@@ -91,7 +91,7 @@ export default defineConfig({
91
91
 
92
92
  ## What it generates
93
93
 
94
- - `site` — `https://theholocron.github.io`
94
+ - `site` — only when you pass it (for example `https://docs.theholocron.dev`); without it Starlight cannot generate a sitemap
95
95
  - `base` — `/${docs.slug}`
96
96
  - Starlight integration with the `@theholocron/docs-theme` plugin
97
97
  - GitHub social link to `https://github.com/theholocron/${docs.slug}`
package/dist/index.d.ts CHANGED
@@ -19,8 +19,10 @@ export interface DocsConfigInput {
19
19
  outDir?: string;
20
20
  publicDir?: string;
21
21
  base?: string;
22
+ /** The site's absolute origin (for example `https://docs.theholocron.dev`). Starlight needs it to generate a sitemap. */
23
+ site?: string;
22
24
  }
23
- export declare function defineConfig({ docs, starlight, docsTheme, plugins, srcDir, outDir, publicDir, base }: DocsConfigInput): ReturnType<typeof defineConfig$1>;
25
+ export declare function defineConfig({ docs, starlight, docsTheme, plugins, srcDir, outDir, publicDir, base, site }: DocsConfigInput): ReturnType<typeof defineConfig$1>;
24
26
  export interface ApiReferenceInput {
25
27
  /** `createStarlightTypeDocPlugin` from your own `starlight-typedoc` import, as with `starlight` and `docsTheme`. */
26
28
  createPlugin: typeof createStarlightTypeDocPlugin;
package/dist/index.js CHANGED
@@ -2,8 +2,9 @@ import { fileURLToPath } from "node:url";
2
2
  import react from "@astrojs/react";
3
3
  import { defineConfig as defineConfig$1 } from "astro/config";
4
4
  // index.ts
5
- function defineConfig({ docs, starlight, docsTheme, plugins, srcDir, outDir, publicDir, base }) {
5
+ function defineConfig({ docs, starlight, docsTheme, plugins, srcDir, outDir, publicDir, base, site }) {
6
6
  return defineConfig$1({
7
+ ...site && { site },
7
8
  base: base ?? `/${docs.github}`,
8
9
  ...srcDir && { srcDir },
9
10
  ...outDir && { outDir },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/astro-config",
3
- "version": "8.9.0-alpha.3",
3
+ "version": "8.9.0-alpha.4",
4
4
  "description": "Astro configuration factory for theholocron docs sites.",
5
5
  "keywords": [
6
6
  "astro",
@@ -32,11 +32,10 @@
32
32
  "dist/"
33
33
  ],
34
34
  "devDependencies": {
35
- "@astrojs/react": "^6.0.0",
35
+ "@astrojs/react": "^6.0.6",
36
36
  "@astrojs/starlight": "^0.41.7",
37
- "@theholocron/docs-theme": "^1.3.5",
38
37
  "@vitest/coverage-v8": "^5.0.5",
39
- "astro": "^7.2.4",
38
+ "astro": "^7.3.3",
40
39
  "react": "^19.0.0",
41
40
  "react-dom": "^19.0.0",
42
41
  "starlight-typedoc": "^0.23.1",
@@ -45,7 +44,8 @@
45
44
  "typedoc-plugin-markdown": "^4.14.1",
46
45
  "typescript": "^5.9.3",
47
46
  "vitest": "^5.0.5",
48
- "@theholocron/tsconfig": "8.9.0-alpha.3"
47
+ "@theholocron/docs-theme": "^1.10.5-alpha.1",
48
+ "@theholocron/tsconfig": "8.9.0-alpha.4"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@astrojs/react": ">=6.0.0",