fix: unblock docs and registry checks
This commit is contained in:
parent
320b4bcb07
commit
e90c1d9add
@ -63,7 +63,17 @@ for (const item of docsConfig.redirects || []) {
|
||||
const allFiles = walk(DOCS_DIR);
|
||||
const relAllFiles = new Set(allFiles.map((abs) => normalizeSlashes(path.relative(DOCS_DIR, abs))));
|
||||
|
||||
const markdownFiles = allFiles.filter((abs) => /\.(md|mdx)$/i.test(abs));
|
||||
function isGeneratedTranslatedDoc(relPath) {
|
||||
return relPath.startsWith("zh-CN/");
|
||||
}
|
||||
|
||||
const markdownFiles = allFiles.filter((abs) => {
|
||||
if (!/\.(md|mdx)$/i.test(abs)) {
|
||||
return false;
|
||||
}
|
||||
const rel = normalizeSlashes(path.relative(DOCS_DIR, abs));
|
||||
return !isGeneratedTranslatedDoc(rel);
|
||||
});
|
||||
const routes = new Set();
|
||||
|
||||
for (const abs of markdownFiles) {
|
||||
@ -257,6 +267,9 @@ for (const abs of markdownFiles) {
|
||||
}
|
||||
|
||||
for (const page of collectNavPageEntries(docsConfig.navigation || [])) {
|
||||
if (isGeneratedTranslatedDoc(String(page))) {
|
||||
continue;
|
||||
}
|
||||
checked++;
|
||||
const route = normalizeRoute(page);
|
||||
const resolvedRoute = resolveRoute(route);
|
||||
|
||||
@ -33,7 +33,6 @@ import xaiPlugin from "../../../extensions/xai/index.js";
|
||||
import xiaomiPlugin from "../../../extensions/xiaomi/index.js";
|
||||
import zaiPlugin from "../../../extensions/zai/index.js";
|
||||
import { createCapturedPluginRegistration } from "../../test-utils/plugin-registration.js";
|
||||
import type { OpenClawPluginApi } from "../types.js";
|
||||
import type { ProviderPlugin, WebSearchProviderPlugin } from "../types.js";
|
||||
|
||||
type RegistrablePlugin = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user