@lexibase/rdx-core 1.0.0-beta.4 → 1.0.0-beta.6

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
- "navbar.actions.github.url must use http or https."
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."
@@ -198,7 +198,14 @@ async function createRdxProject(input, {
198
198
  }
199
199
  ];
200
200
  const commands = [];
201
- const commandNames = /* @__PURE__ */ new Set(["dev", "build", "start", "prepare", "help"]);
201
+ const commandNames = /* @__PURE__ */ new Set([
202
+ "dev",
203
+ "build",
204
+ "start",
205
+ "prepare",
206
+ "help",
207
+ "add"
208
+ ]);
202
209
  for (const plugin of config.plugins) {
203
210
  for (const value of plugin.commands ?? []) {
204
211
  const entry = object(value, `plugin "${plugin.name}" command`);
@@ -4,7 +4,7 @@ import {
4
4
  defineConfig,
5
5
  resolveConfig,
6
6
  resolveProjectPath
7
- } from "../chunk-VERHHVED.js";
7
+ } from "../chunk-OXVOM2JP.js";
8
8
  export {
9
9
  RdxConfigError,
10
10
  createRdxProject,
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  defineConfig,
5
5
  resolveConfig,
6
6
  resolveProjectPath
7
- } from "./chunk-VERHHVED.js";
7
+ } from "./chunk-OXVOM2JP.js";
8
8
 
9
9
  // src/content/index.ts
10
10
  import fs from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexibase/rdx-core",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.6",
4
4
  "description": "Content indexing and document utilities for RDX documentation projects.",
5
5
  "license": "MIT",
6
6
  "type": "module",