radiant-docs-validator 0.1.8 → 0.1.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/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2527,13 +2527,14 @@ async function validateConfig(config) {
|
|
|
2527
2527
|
config.home = validateHome(config.home);
|
|
2528
2528
|
if (config.home === void 0) {
|
|
2529
2529
|
const fallbackHome = getFirstPagePathFromNavigation(config.navigation);
|
|
2530
|
-
if (
|
|
2530
|
+
if (fallbackHome) {
|
|
2531
|
+
config.home = fallbackHome;
|
|
2532
|
+
} else if (!config.navigation.openapi) {
|
|
2531
2533
|
throwConfigError(
|
|
2532
2534
|
"Home is undefined and no documentation page exists in navigation to use as fallback.",
|
|
2533
2535
|
["home"]
|
|
2534
2536
|
);
|
|
2535
2537
|
}
|
|
2536
|
-
config.home = fallbackHome;
|
|
2537
2538
|
}
|
|
2538
2539
|
const hiddenPageRoutes = [
|
|
2539
2540
|
...validateNavbar(config.navbar),
|