@@ -285,7 +285,7 @@ test("addLanguageClassToCodeBlocks()", () => {
285
285
// as with this example. Also this name is misleading. Really what we are doing here is dealing with RST's `.. parsed-literal ::`
286
286
// (https://docutils.sourceforge.io/docs/ref/rst/directives.html#parsed-literal-block), which we tend to use to put code literals
287
287
// along with gate text representations like the above.
288
- addLanguageClassToCodeBlocks ( doc1 . $ , doc1 . $main , false ) ;
288
+ addLanguageClassToCodeBlocks ( doc1 . $ , doc1 . $main , { isCApi : false } ) ;
289
289
doc1 . expectHtml ( `<p><strong>Circuit symbol:</strong></p>
290
290
<div class="highlight-default notranslate"><div class="highlight"><pre><code class="language-python"><span></span> ┌──────────┐
291
291
q_0: ┤ U(ϴ,φ,λ) ├
@@ -302,7 +302,7 @@ test("addLanguageClassToCodeBlocks()", () => {
302
302
</pre>
303
303
</div>
304
304
</div>` ) ;
305
- addLanguageClassToCodeBlocks ( doc2 . $ , doc2 . $main , false ) ;
305
+ addLanguageClassToCodeBlocks ( doc2 . $ , doc2 . $main , { isCApi : false } ) ;
306
306
doc2 . expectHtml ( `<div class="highlight-default notranslate">
307
307
<div class="highlight">
308
308
<pre><code class="language-python"><span></span><span class="kn">from</span> <span class="nn">qiskit_ibm_runtime.options</span> <span class="kn">import</span> <span class="n">Options</span>
@@ -400,7 +400,7 @@ test.describe("maybeSetModuleMetadata()", () => {
400
400
const html = `<h1>Hello</h1>` ;
401
401
const meta : Metadata = { } ;
402
402
const doc = CheerioDoc . load ( html ) ;
403
- maybeSetModuleMetadata ( doc . $ , doc . $main , meta , false ) ;
403
+ maybeSetModuleMetadata ( doc . $ , doc . $main , meta , { isCApi : false } ) ;
404
404
doc . expectHtml ( html ) ;
405
405
expect ( meta ) . toEqual ( { } ) ;
406
406
} ) ;
@@ -412,7 +412,7 @@ test.describe("maybeSetModuleMetadata()", () => {
412
412
) : void => {
413
413
const meta : Metadata = { } ;
414
414
const doc = CheerioDoc . load ( html ) ;
415
- maybeSetModuleMetadata ( doc . $ , doc . $main , meta , isCApi ) ;
415
+ maybeSetModuleMetadata ( doc . $ , doc . $main , meta , { isCApi } ) ;
416
416
doc . expectHtml ( html ) ;
417
417
expect ( meta ) . toEqual ( {
418
418
apiType : "module" ,
@@ -515,7 +515,7 @@ backends may not have this attribute.</p>
515
515
` ;
516
516
const doc = CheerioDoc . load ( html ) ;
517
517
const meta : Metadata = { } ;
518
- await processMembersAndSetMeta ( doc . $ , doc . $main , meta , false ) ;
518
+ await processMembersAndSetMeta ( doc . $ , doc . $main , meta , { isCApi : false } ) ;
519
519
doc . expectHtml ( `<h1>least_busy</h1>
520
520
<div><function id="qiskit_ibm_provider.least_busy" attributetypehint="undefined" attributevalue="undefined" isdedicatedpage="true" github="../_modules/qiskit_ibm_provider.html#least_busy" signature="least_busy(backends)¶" modifiers="" extrasignatures="[]">
521
521
@@ -575,7 +575,7 @@ particular error, which subclasses both <a class="reference internal" href="#qis
575
575
` ;
576
576
const doc = CheerioDoc . load ( html ) ;
577
577
const meta : Metadata = { } ;
578
- await processMembersAndSetMeta ( doc . $ , doc . $main , meta , false ) ;
578
+ await processMembersAndSetMeta ( doc . $ , doc . $main , meta , { isCApi : false } ) ;
579
579
doc . expectHtml ( `<span class="target" id="module-qiskit.exceptions"><span id="qiskit-exceptions"></span></span><section id="top-level-exceptions-qiskit-exceptions">
580
580
<h1>Top-level exceptions (<a class="reference internal" href="#module-qiskit.exceptions" title="qiskit.exceptions"><code class="xref py py-mod docutils literal notranslate"><span class="pre">qiskit.exceptions</span></code></a>)<a class="headerlink" href="#top-level-exceptions-qiskit-exceptions" title="Permalink to this heading">¶</a></h1>
581
581
<p>All Qiskit-related errors raised by Qiskit are subclasses of the base:</p>
@@ -621,7 +621,7 @@ marked as builtins since they are not actually present in any include file this
621
621
` ;
622
622
const doc = CheerioDoc . load ( html ) ;
623
623
const meta : Metadata = { apiType : "module" , apiName : "my_module" } ;
624
- await processMembersAndSetMeta ( doc . $ , doc . $main , meta , false ) ;
624
+ await processMembersAndSetMeta ( doc . $ , doc . $main , meta , { isCApi : false } ) ;
625
625
doc . expectHtml ( `
626
626
<h3 data-header-type="attribute-header">qiskit.qasm2.LEGACY_CUSTOM_INSTRUCTIONS¶</h3><div><attribute id="qiskit.qasm2.LEGACY_CUSTOM_INSTRUCTIONS" attributetypehint="" attributevalue="" isdedicatedpage="undefined" github="undefined" signature="" modifiers="" extrasignatures="[]">
627
627
@@ -661,7 +661,7 @@ marked as builtins since they are not actually present in any include file this
661
661
</dd></dl>` ;
662
662
const doc = CheerioDoc . load ( html ) ;
663
663
const meta : Metadata = { } ;
664
- await processMembersAndSetMeta ( doc . $ , doc . $main , meta , true ) ;
664
+ await processMembersAndSetMeta ( doc . $ , doc . $main , meta , { isCApi : true } ) ;
665
665
doc . expectHtml ( `<h3 data-header-type=\"method-header\">qk_obs_identity</h3><div><function id=\"qk_obs_identity\" attributetypehint=\"undefined\" attributevalue=\"undefined\" isdedicatedpage=\"undefined\" github=\"undefined\" signature=\"QkSparseObservable *qk_obs_identity(uint32_t num_qubits)¶\" modifiers=\"\" extrasignatures=\"[]\">
666
666
667
667
<div><p>Construct the identity observable.</p>
0 commit comments