diff --git a/docs/api/qiskit/0.44/circuit.mdx b/docs/api/qiskit/0.44/circuit.mdx index 69371192434..2876e733434 100644 --- a/docs/api/qiskit/0.44/circuit.mdx +++ b/docs/api/qiskit/0.44/circuit.mdx @@ -236,7 +236,9 @@ qc.depth() The [`SwitchCaseOp`](qiskit.circuit.SwitchCaseOp "qiskit.circuit.SwitchCaseOp") also understands a special value: - +#### qiskit.circuit.CASE\_DEFAULT + + A special object that represents the “default” case of a switch statement. If you use this as a case target, it must be the last case, and will match anything that wasn’t already matched. For example: ```python diff --git a/docs/api/qiskit/0.45/circuit.mdx b/docs/api/qiskit/0.45/circuit.mdx index ce0a290193e..74b6aec52c2 100644 --- a/docs/api/qiskit/0.45/circuit.mdx +++ b/docs/api/qiskit/0.45/circuit.mdx @@ -236,7 +236,9 @@ qc.depth() The [`SwitchCaseOp`](qiskit.circuit.SwitchCaseOp "qiskit.circuit.SwitchCaseOp") also understands a special value: - +#### qiskit.circuit.CASE\_DEFAULT + + A special object that represents the “default” case of a switch statement. If you use this as a case target, it must be the last case, and will match anything that wasn’t already matched. For example: ```python diff --git a/docs/api/qiskit/0.46/circuit.mdx b/docs/api/qiskit/0.46/circuit.mdx index 66d57f99822..2611a3b33d7 100644 --- a/docs/api/qiskit/0.46/circuit.mdx +++ b/docs/api/qiskit/0.46/circuit.mdx @@ -237,7 +237,9 @@ qc.depth() The [`SwitchCaseOp`](qiskit.circuit.SwitchCaseOp "qiskit.circuit.SwitchCaseOp") also understands a special value: - +#### qiskit.circuit.CASE\_DEFAULT + + A special object that represents the “default” case of a switch statement. If you use this as a case target, it must be the last case, and will match anything that wasn’t already matched. For example: ```python diff --git a/docs/api/qiskit/1.0/circuit.mdx b/docs/api/qiskit/1.0/circuit.mdx index e185a5cf66c..18e5615bf14 100644 --- a/docs/api/qiskit/1.0/circuit.mdx +++ b/docs/api/qiskit/1.0/circuit.mdx @@ -246,7 +246,9 @@ qc.depth() The [`SwitchCaseOp`](qiskit.circuit.SwitchCaseOp "qiskit.circuit.SwitchCaseOp") also understands a special value: - +#### qiskit.circuit.CASE\_DEFAULT + + A special object that represents the “default” case of a switch statement. If you use this as a case target, it must be the last case, and will match anything that wasn’t already matched. For example: ```python diff --git a/public/api/qiskit-addon-aqc-tensor/objects.inv b/public/api/qiskit-addon-aqc-tensor/objects.inv index 80761982e04..1be58670bf3 100644 Binary files a/public/api/qiskit-addon-aqc-tensor/objects.inv and b/public/api/qiskit-addon-aqc-tensor/objects.inv differ diff --git a/public/api/qiskit-addon-cutting/objects.inv b/public/api/qiskit-addon-cutting/objects.inv index 2dbbc0ea4a0..8fae62bf7eb 100644 Binary files a/public/api/qiskit-addon-cutting/objects.inv and b/public/api/qiskit-addon-cutting/objects.inv differ diff --git a/public/api/qiskit-addon-mpf/objects.inv b/public/api/qiskit-addon-mpf/objects.inv index 51ccd43abce..f06c814c5e4 100644 Binary files a/public/api/qiskit-addon-mpf/objects.inv and b/public/api/qiskit-addon-mpf/objects.inv differ diff --git a/public/api/qiskit-addon-obp/objects.inv b/public/api/qiskit-addon-obp/objects.inv index 7e24627f394..d170ab93e63 100644 Binary files a/public/api/qiskit-addon-obp/objects.inv and b/public/api/qiskit-addon-obp/objects.inv differ diff --git a/public/api/qiskit-addon-sqd/0.7/objects.inv b/public/api/qiskit-addon-sqd/0.7/objects.inv index 258a2eef618..f7c17d515f5 100644 Binary files a/public/api/qiskit-addon-sqd/0.7/objects.inv and b/public/api/qiskit-addon-sqd/0.7/objects.inv differ diff --git a/public/api/qiskit-addon-sqd/objects.inv b/public/api/qiskit-addon-sqd/objects.inv index 5e33ea7a3c3..0df09552209 100644 Binary files a/public/api/qiskit-addon-sqd/objects.inv and b/public/api/qiskit-addon-sqd/objects.inv differ diff --git a/public/api/qiskit-addon-utils/objects.inv b/public/api/qiskit-addon-utils/objects.inv index 4a1fdd08628..ad6e7a3bd23 100644 Binary files a/public/api/qiskit-addon-utils/objects.inv and b/public/api/qiskit-addon-utils/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.14/objects.inv b/public/api/qiskit-ibm-runtime/0.14/objects.inv index 7784bdff309..8bd0d05b74f 100644 Binary files a/public/api/qiskit-ibm-runtime/0.14/objects.inv and b/public/api/qiskit-ibm-runtime/0.14/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.15/objects.inv b/public/api/qiskit-ibm-runtime/0.15/objects.inv index 0d379ee5fac..b6f63aff442 100644 Binary files a/public/api/qiskit-ibm-runtime/0.15/objects.inv and b/public/api/qiskit-ibm-runtime/0.15/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.16/objects.inv b/public/api/qiskit-ibm-runtime/0.16/objects.inv index 206dca27c1e..7c3dff9318c 100644 Binary files a/public/api/qiskit-ibm-runtime/0.16/objects.inv and b/public/api/qiskit-ibm-runtime/0.16/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.17/objects.inv b/public/api/qiskit-ibm-runtime/0.17/objects.inv index a0a05740cf7..7084bcaaeb7 100644 Binary files a/public/api/qiskit-ibm-runtime/0.17/objects.inv and b/public/api/qiskit-ibm-runtime/0.17/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.18/objects.inv b/public/api/qiskit-ibm-runtime/0.18/objects.inv index cf5a57328af..e2d3f05fd4f 100644 Binary files a/public/api/qiskit-ibm-runtime/0.18/objects.inv and b/public/api/qiskit-ibm-runtime/0.18/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.19/objects.inv b/public/api/qiskit-ibm-runtime/0.19/objects.inv index 76dc50bdf7d..b2768bdcd2a 100644 Binary files a/public/api/qiskit-ibm-runtime/0.19/objects.inv and b/public/api/qiskit-ibm-runtime/0.19/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.20/objects.inv b/public/api/qiskit-ibm-runtime/0.20/objects.inv index e6ebb1601f1..9135aef616b 100644 Binary files a/public/api/qiskit-ibm-runtime/0.20/objects.inv and b/public/api/qiskit-ibm-runtime/0.20/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.21/objects.inv b/public/api/qiskit-ibm-runtime/0.21/objects.inv index 85265c51797..17aba0ba5d0 100644 Binary files a/public/api/qiskit-ibm-runtime/0.21/objects.inv and b/public/api/qiskit-ibm-runtime/0.21/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.22/objects.inv b/public/api/qiskit-ibm-runtime/0.22/objects.inv index ceb5fc92870..b8adde286ab 100644 Binary files a/public/api/qiskit-ibm-runtime/0.22/objects.inv and b/public/api/qiskit-ibm-runtime/0.22/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.23/objects.inv b/public/api/qiskit-ibm-runtime/0.23/objects.inv index 275c22a4b13..44fb5c8378a 100644 Binary files a/public/api/qiskit-ibm-runtime/0.23/objects.inv and b/public/api/qiskit-ibm-runtime/0.23/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.24/objects.inv b/public/api/qiskit-ibm-runtime/0.24/objects.inv index 998a1968464..9665a427039 100644 Binary files a/public/api/qiskit-ibm-runtime/0.24/objects.inv and b/public/api/qiskit-ibm-runtime/0.24/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.25/objects.inv b/public/api/qiskit-ibm-runtime/0.25/objects.inv index bb8c5945669..6c7dc600672 100644 Binary files a/public/api/qiskit-ibm-runtime/0.25/objects.inv and b/public/api/qiskit-ibm-runtime/0.25/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.26/objects.inv b/public/api/qiskit-ibm-runtime/0.26/objects.inv index 7d17eec8279..355b18afa84 100644 Binary files a/public/api/qiskit-ibm-runtime/0.26/objects.inv and b/public/api/qiskit-ibm-runtime/0.26/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.27/objects.inv b/public/api/qiskit-ibm-runtime/0.27/objects.inv index 7d17eec8279..355b18afa84 100644 Binary files a/public/api/qiskit-ibm-runtime/0.27/objects.inv and b/public/api/qiskit-ibm-runtime/0.27/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.28/objects.inv b/public/api/qiskit-ibm-runtime/0.28/objects.inv index 3e380ecd65a..e93a88846ec 100644 Binary files a/public/api/qiskit-ibm-runtime/0.28/objects.inv and b/public/api/qiskit-ibm-runtime/0.28/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.29/objects.inv b/public/api/qiskit-ibm-runtime/0.29/objects.inv index 46631476a61..79e3c0a8415 100644 Binary files a/public/api/qiskit-ibm-runtime/0.29/objects.inv and b/public/api/qiskit-ibm-runtime/0.29/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.30/objects.inv b/public/api/qiskit-ibm-runtime/0.30/objects.inv index 0f13832965b..abf902cef75 100644 Binary files a/public/api/qiskit-ibm-runtime/0.30/objects.inv and b/public/api/qiskit-ibm-runtime/0.30/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.31/objects.inv b/public/api/qiskit-ibm-runtime/0.31/objects.inv index a31b4e334a7..d49d96ea031 100644 Binary files a/public/api/qiskit-ibm-runtime/0.31/objects.inv and b/public/api/qiskit-ibm-runtime/0.31/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/0.32/objects.inv b/public/api/qiskit-ibm-runtime/0.32/objects.inv index 383dc392550..9a1dff0faca 100644 Binary files a/public/api/qiskit-ibm-runtime/0.32/objects.inv and b/public/api/qiskit-ibm-runtime/0.32/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/dev/objects.inv b/public/api/qiskit-ibm-runtime/dev/objects.inv index 5103a5ecbb3..2b06f0cb60f 100644 Binary files a/public/api/qiskit-ibm-runtime/dev/objects.inv and b/public/api/qiskit-ibm-runtime/dev/objects.inv differ diff --git a/public/api/qiskit-ibm-runtime/objects.inv b/public/api/qiskit-ibm-runtime/objects.inv index 10ff5faf5aa..62d2514e1fb 100644 Binary files a/public/api/qiskit-ibm-runtime/objects.inv and b/public/api/qiskit-ibm-runtime/objects.inv differ diff --git a/public/api/qiskit-ibm-transpiler/0.3/objects.inv b/public/api/qiskit-ibm-transpiler/0.3/objects.inv index b4c7707b436..44855e70fa1 100644 Binary files a/public/api/qiskit-ibm-transpiler/0.3/objects.inv and b/public/api/qiskit-ibm-transpiler/0.3/objects.inv differ diff --git a/public/api/qiskit-ibm-transpiler/0.4/objects.inv b/public/api/qiskit-ibm-transpiler/0.4/objects.inv index 65a798f1fca..5a3356c0605 100644 Binary files a/public/api/qiskit-ibm-transpiler/0.4/objects.inv and b/public/api/qiskit-ibm-transpiler/0.4/objects.inv differ diff --git a/public/api/qiskit-ibm-transpiler/0.5/objects.inv b/public/api/qiskit-ibm-transpiler/0.5/objects.inv index 2e1e5579360..6cabb9660db 100644 Binary files a/public/api/qiskit-ibm-transpiler/0.5/objects.inv and b/public/api/qiskit-ibm-transpiler/0.5/objects.inv differ diff --git a/public/api/qiskit-ibm-transpiler/0.6/objects.inv b/public/api/qiskit-ibm-transpiler/0.6/objects.inv index f0412cee16e..b9f19ccdd82 100644 Binary files a/public/api/qiskit-ibm-transpiler/0.6/objects.inv and b/public/api/qiskit-ibm-transpiler/0.6/objects.inv differ diff --git a/public/api/qiskit-ibm-transpiler/0.7/objects.inv b/public/api/qiskit-ibm-transpiler/0.7/objects.inv index 172046e4303..cf63acf7357 100644 Binary files a/public/api/qiskit-ibm-transpiler/0.7/objects.inv and b/public/api/qiskit-ibm-transpiler/0.7/objects.inv differ diff --git a/public/api/qiskit-ibm-transpiler/0.8/objects.inv b/public/api/qiskit-ibm-transpiler/0.8/objects.inv index 5677131f3af..9d9f7112ee2 100644 Binary files a/public/api/qiskit-ibm-transpiler/0.8/objects.inv and b/public/api/qiskit-ibm-transpiler/0.8/objects.inv differ diff --git a/public/api/qiskit-ibm-transpiler/objects.inv b/public/api/qiskit-ibm-transpiler/objects.inv index 9a913f03b65..6f67ad53bdc 100644 Binary files a/public/api/qiskit-ibm-transpiler/objects.inv and b/public/api/qiskit-ibm-transpiler/objects.inv differ diff --git a/public/api/qiskit/0.45/objects.inv b/public/api/qiskit/0.45/objects.inv index 1513d731870..0d6667b064f 100644 Binary files a/public/api/qiskit/0.45/objects.inv and b/public/api/qiskit/0.45/objects.inv differ diff --git a/public/api/qiskit/0.46/objects.inv b/public/api/qiskit/0.46/objects.inv index a38b255dc94..6cb4e4599d4 100644 Binary files a/public/api/qiskit/0.46/objects.inv and b/public/api/qiskit/0.46/objects.inv differ diff --git a/public/api/qiskit/1.0/objects.inv b/public/api/qiskit/1.0/objects.inv index 0998d274bee..53aa0795e9d 100644 Binary files a/public/api/qiskit/1.0/objects.inv and b/public/api/qiskit/1.0/objects.inv differ diff --git a/public/api/qiskit/1.1/objects.inv b/public/api/qiskit/1.1/objects.inv index 29038943c2c..49a45d9ab4b 100644 Binary files a/public/api/qiskit/1.1/objects.inv and b/public/api/qiskit/1.1/objects.inv differ diff --git a/public/api/qiskit/dev/objects.inv b/public/api/qiskit/dev/objects.inv index 354dc7d0169..1e6ac80d1b2 100644 Binary files a/public/api/qiskit/dev/objects.inv and b/public/api/qiskit/dev/objects.inv differ diff --git a/public/api/qiskit/objects.inv b/public/api/qiskit/objects.inv index 4e389f2fdc2..00b075ba765 100644 Binary files a/public/api/qiskit/objects.inv and b/public/api/qiskit/objects.inv differ diff --git a/scripts/js/lib/api/generateApiComponents.ts b/scripts/js/lib/api/generateApiComponents.ts index 0d52085c72e..99bcc83511b 100644 --- a/scripts/js/lib/api/generateApiComponents.ts +++ b/scripts/js/lib/api/generateApiComponents.ts @@ -92,14 +92,7 @@ function prepareProps( const prepMethod = () => prepareMethodProps($, $child, $dl, priorApiType, githubSourceLink, id); const prepAttributeOrProperty = () => - prepareAttributeOrPropertyProps( - $, - $child, - $dl, - priorApiType, - githubSourceLink, - id, - ); + prepareAttributeOrPropertyProps($, $child, $dl, githubSourceLink, id); const preparePropsPerApiType: Record< Exclude, @@ -196,7 +189,6 @@ function prepareAttributeOrPropertyProps( $: CheerioAPI, $child: Cheerio, $dl: Cheerio, - priorApiType: ApiType | undefined, githubSourceLink: string | undefined, id: string, ): ComponentProps { @@ -252,7 +244,8 @@ function prepareAttributeOrPropertyProps( modifiers: filteredModifiers, }; - if (!priorApiType && id) { + const pageHeading = $dl.siblings("h1").text(); + if (pageHeading && id.endsWith(pageHeading)) { $dl.siblings("h1").text(getLastPartFromFullIdentifier(id)); return { ...props, @@ -286,7 +279,7 @@ function prepareFunctionProps( }; const pageHeading = $dl.siblings("h1").text(); - if (id.endsWith(pageHeading) && pageHeading != "") { + if (pageHeading && id.endsWith(pageHeading)) { // Page is already dedicated to apiType; no heading needed return { ...props,