mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-01 04:11:03 +00:00
[codex] Move internal development notes to maintainers (#57316)
* docs: move internal notes to maintainers * docs: drop internal notes agent guidance
This commit is contained in:
@@ -6,7 +6,7 @@ import path from "node:path";
|
||||
|
||||
const ROOT = process.cwd();
|
||||
const GLOSSARY_PATH = path.join(ROOT, "docs", ".i18n", "glossary.zh-CN.json");
|
||||
const DOC_FILE_RE = /^docs\/(?!zh-CN\/)(?!internal\/).+\.(md|mdx)$/i;
|
||||
const DOC_FILE_RE = /^docs\/(?!zh-CN\/).+\.(md|mdx)$/i;
|
||||
const LIST_ITEM_LINK_RE = /^\s*(?:[-*]|\d+\.)\s+\[([^\]]+)\]\((\/[^)]+)\)/;
|
||||
const MAX_TITLE_WORDS = 8;
|
||||
const MAX_LABEL_WORDS = 6;
|
||||
|
||||
@@ -65,15 +65,7 @@ for (const item of docsConfig.redirects || []) {
|
||||
}
|
||||
|
||||
const allFiles = walk(DOCS_DIR);
|
||||
function isIgnoredDocsPath(relPath) {
|
||||
return relPath.startsWith("internal/");
|
||||
}
|
||||
|
||||
const relAllFiles = new Set(
|
||||
allFiles
|
||||
.map((abs) => normalizeSlashes(path.relative(DOCS_DIR, abs)))
|
||||
.filter((rel) => !isIgnoredDocsPath(rel)),
|
||||
);
|
||||
const relAllFiles = new Set(allFiles.map((abs) => normalizeSlashes(path.relative(DOCS_DIR, abs))));
|
||||
|
||||
function isGeneratedTranslatedDoc(relPath) {
|
||||
return relPath.startsWith("zh-CN/");
|
||||
@@ -84,7 +76,7 @@ const markdownFiles = allFiles.filter((abs) => {
|
||||
return false;
|
||||
}
|
||||
const rel = normalizeSlashes(path.relative(DOCS_DIR, abs));
|
||||
return !isGeneratedTranslatedDoc(rel) && !isIgnoredDocsPath(rel);
|
||||
return !isGeneratedTranslatedDoc(rel);
|
||||
});
|
||||
const routes = new Set();
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ if (!statSync(DOCS_DIR).isDirectory()) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const EXCLUDED_DIRS = new Set(["archive", "internal", "research"]);
|
||||
const EXCLUDED_DIRS = new Set(["archive", "research"]);
|
||||
|
||||
/**
|
||||
* @param {unknown[]} values
|
||||
|
||||
Reference in New Issue
Block a user