@lexibase/rdx-core 1.0.0-beta.4 → 1.0.0-beta.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.
|
@@ -134,12 +134,12 @@ function resolveConfig(input) {
|
|
|
134
134
|
"navbar.actions.github.visible must be a boolean."
|
|
135
135
|
);
|
|
136
136
|
const url = text(github.url, "navbar.actions.github.url");
|
|
137
|
-
if (!/^https?:\/\//i.test(url))
|
|
137
|
+
if (url !== "#" && !/^https?:\/\//i.test(url))
|
|
138
138
|
throw new RdxConfigError(
|
|
139
|
-
|
|
139
|
+
'navbar.actions.github.url must use http or https, or "#" as a placeholder.'
|
|
140
140
|
);
|
|
141
141
|
try {
|
|
142
|
-
new URL(url);
|
|
142
|
+
if (url !== "#") new URL(url);
|
|
143
143
|
} catch {
|
|
144
144
|
throw new RdxConfigError(
|
|
145
145
|
"navbar.actions.github.url must be a valid URL."
|
package/dist/config/index.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lexibase/rdx-core",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.5",
|
|
4
4
|
"description": "Content indexing and document utilities for RDX documentation projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^22.15.3",
|
|
41
41
|
"@types/react": "19.1.0",
|
|
42
|
-
"@rdx/
|
|
43
|
-
"@rdx/
|
|
42
|
+
"@rdx/eslint-config": "1.0.0",
|
|
43
|
+
"@rdx/typescript-config": "1.0.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsup src/index.ts src/config/index.ts --format esm --dts --clean --external @lexibase/rdx-types --external gray-matter",
|