@lexibase/rdx-core 3.1.1 → 3.2.0

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.
@@ -782,11 +782,24 @@ function resolveConfig(input) {
782
782
  const homepage = object(config.homepage, "homepage");
783
783
  keys(
784
784
  homepage,
785
- ["enabled", "component", "title", "description", "buttons"],
785
+ [
786
+ "enabled",
787
+ "component",
788
+ "translations",
789
+ "title",
790
+ "description",
791
+ "buttons"
792
+ ],
786
793
  "homepage."
787
794
  );
788
795
  if (homepage.component !== void 0)
789
796
  component(homepage.component, "homepage.component");
797
+ if (homepage.translations !== void 0 && typeof homepage.translations !== "boolean")
798
+ throw new RdxConfigError("homepage.translations must be a boolean.");
799
+ if (homepage.translations && homepage.component !== void 0)
800
+ throw new RdxConfigError(
801
+ "homepage.translations loads components/home.tsx. Use either homepage.translations or homepage.component."
802
+ );
790
803
  if (homepage.enabled !== void 0 && typeof homepage.enabled !== "boolean")
791
804
  throw new RdxConfigError("homepage.enabled must be a boolean.");
792
805
  if (homepage.title !== void 0) text(homepage.title, "homepage.title");
@@ -11,7 +11,7 @@ import {
11
11
  resolveConfig,
12
12
  resolveProjectPath,
13
13
  snapshotDatesFilename
14
- } from "../chunk-KPVVN2MN.js";
14
+ } from "../chunk-ZFSX25LO.js";
15
15
  import {
16
16
  getContentSources
17
17
  } from "../chunk-SNNEXRLQ.js";
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  defineConfig,
13
13
  resolveConfig,
14
14
  resolveProjectPath
15
- } from "./chunk-KPVVN2MN.js";
15
+ } from "./chunk-ZFSX25LO.js";
16
16
  import {
17
17
  getContentSources,
18
18
  getDocsHref,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexibase/rdx-core",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "Content indexing and document utilities for RDX documentation projects.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -56,13 +56,13 @@
56
56
  "remark-stringify": "^11.0.0",
57
57
  "shiki": "^4.5.0",
58
58
  "unified": "^11.0.5",
59
- "@lexibase/rdx-types": "2.5.0"
59
+ "@lexibase/rdx-types": "2.6.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "^22.15.3",
63
63
  "@types/react": "19.3.0",
64
- "@rdx/typescript-config": "1.0.0",
65
- "@rdx/eslint-config": "1.0.0"
64
+ "@rdx/eslint-config": "1.0.0",
65
+ "@rdx/typescript-config": "1.0.0"
66
66
  },
67
67
  "engines": {
68
68
  "node": "^22.18.0 || ^24.11.0"