forked from Qiskit/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix detection of module metadata with API generation (Qiskit#221)
In Qiskit docs, which use an older version of Sphinx, the module ID is set with HTML like this: ```html <span class="target" id="module-qiskit.circuit"> <span id="qiskit-circuit"></span> </span> ``` But in Runtime with Sphinx 7.2, it is set like this, without the `.target` class: ```html <span id="module-qiskit_ibm_runtime.options"></span> ``` So, we were failing to set metadata for modules, which caused those files to not have "front matter" (Markdown metadata) and to not show up in the TOC. See Qiskit#67. Note that we still look at `section` to determine the module metadata, too. There continue to be some pages in IBM Provider that set their module metadata that way.
- Loading branch information
1 parent
2edac0f
commit d68d12b
Showing
2 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters