mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 09:48:49 +02:00
fix(scripts/update-wiki): add "internal/go-proxmox/" to skipSubmodules list
This commit is contained in:
@@ -18,7 +18,7 @@ type ImplDoc = {
|
|||||||
const START_MARKER = "// GENERATED-IMPL-SIDEBAR-START";
|
const START_MARKER = "// GENERATED-IMPL-SIDEBAR-START";
|
||||||
const END_MARKER = "// GENERATED-IMPL-SIDEBAR-END";
|
const END_MARKER = "// GENERATED-IMPL-SIDEBAR-END";
|
||||||
|
|
||||||
const skipSubmodules = ["internal/go-oidc/", "internal/gopsutil/"];
|
const skipSubmodules = ["internal/go-oidc/", "internal/gopsutil/", "internal/go-proxmox/"];
|
||||||
|
|
||||||
function escapeRegex(s: string) {
|
function escapeRegex(s: string) {
|
||||||
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
||||||
@@ -165,9 +165,8 @@ function rewriteImplMarkdown(params: {
|
|||||||
const repoRel = path.posix.normalize(
|
const repoRel = path.posix.normalize(
|
||||||
path.posix.join(pkgPath, filePath)
|
path.posix.join(pkgPath, filePath)
|
||||||
);
|
);
|
||||||
const githubUrl = `${repoUrl}/blob/main/${repoRel}${
|
const githubUrl = `${repoUrl}/blob/main/${repoRel}${line ? `#L${line}` : ""
|
||||||
line ? `#L${line}` : ""
|
}`;
|
||||||
}`;
|
|
||||||
const rewritten = `${githubUrl}${fragment}`;
|
const rewritten = `${githubUrl}${fragment}`;
|
||||||
return angleWrapped === urlRaw ? rewritten : `<${rewritten}>`;
|
return angleWrapped === urlRaw ? rewritten : `<${rewritten}>`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user