radiant-docs 0.1.53 → 0.1.56

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 CHANGED
@@ -399,12 +399,13 @@ async function run() {
399
399
  }
400
400
  log.info("Syncing your documentation...");
401
401
  await syncContent(docsDir, contentDir);
402
- await runAstroSync(cacheDir);
403
- log.success("Content synced.");
404
402
  if (command === "check") {
403
+ log.success("Content synced.");
405
404
  runFrameworkCheck(cacheDir);
406
405
  return;
407
406
  }
407
+ await runAstroSync(cacheDir);
408
+ log.success("Content synced.");
408
409
  log.info("Starting dev server...");
409
410
  const devServer = startDevServer(cacheDir);
410
411
  const watcher = watchUserContent(docsDir, contentDir, async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "radiant-docs",
3
- "version": "0.1.53",
3
+ "version": "0.1.56",
4
4
  "description": "CLI tool for previewing Radiant documentation locally",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,7 +11,9 @@
11
11
  "build": "tsup src/index.ts --format esm --clean && npm run bundle-template",
12
12
  "dev": "tsup src/index.ts --format esm --watch",
13
13
  "prepublishOnly": "npm run build",
14
- "release": "npm version patch && npm publish"
14
+ "release": "npm version patch && npm publish",
15
+ "sync-docs-agent-version": "node scripts/sync-docs-agent-version.js",
16
+ "version": "npm run sync-docs-agent-version && git add ../workers/docs-agent/container/Dockerfile"
15
17
  },
16
18
  "dependencies": {
17
19
  "chokidar": "^4.0.3",
@@ -100,6 +100,12 @@ function decodeHtmlEntities(value) {
100
100
  });
101
101
  }
102
102
 
103
+ function getLogoImagePath(variant) {
104
+ if (typeof variant === "string") return variant.trim();
105
+ if (!variant || typeof variant !== "object") return "";
106
+ return typeof variant.image === "string" ? variant.image.trim() : "";
107
+ }
108
+
103
109
  function extractTitle(html) {
104
110
  const ogTitle = decodeHtmlEntities(
105
111
  matchMetaContent(html, "property", "og:title"),
@@ -149,10 +155,8 @@ function main() {
149
155
  defaults: {
150
156
  siteName:
151
157
  typeof docsConfig.title === "string" ? docsConfig.title.trim() : "",
152
- logoLight:
153
- typeof logo.light === "string" ? logo.light.trim() : "",
154
- logoDark:
155
- typeof logo.dark === "string" ? logo.dark.trim() : "",
158
+ logoLight: getLogoImagePath(logo.light),
159
+ logoDark: getLogoImagePath(logo.dark),
156
160
  background:
157
161
  typeof docsConfig.ogBackground === "string"
158
162
  ? docsConfig.ogBackground.trim()