diff --git a/scripts/commands/checkMetadata.ts b/scripts/commands/checkMetadata.ts index 78a9dc4e50c..cebd9ab2a13 100644 --- a/scripts/commands/checkMetadata.ts +++ b/scripts/commands/checkMetadata.ts @@ -17,7 +17,6 @@ import { globby } from "globby"; const IGNORED_FILES = new Set([ "docs/api/qiskit-ibm-provider/ibm-provider.md", "docs/api/qiskit/transpiler_builtin_plugins.md", - "docs/api/qiskit/0.44/transpiler_builtin_plugins.md", "docs/api/qiskit-ibm-runtime/ibm-runtime.md", "docs/start/__migration-guide-algorithms.md", "docs/start/__migration-guide-opflow.md", @@ -47,6 +46,12 @@ const main = async (): Promise => { if (IGNORED_FILES.has(file)) { continue; } + + // Ignore all historical API version files. + if (/.*\/[0-9].*\//.test(file)) { + continue; + } + const metadata = await readMetadata(file); if (!isValidMetadata(metadata)) { mdErrors.push(file);