diff --git a/scripts/lib/api/__snapshots__/conversionPipeline.test.ts.snap b/scripts/lib/api/__snapshots__/conversionPipeline.test.ts.snap
index c904d11eae9..f81c3100de7 100644
--- a/scripts/lib/api/__snapshots__/conversionPipeline.test.ts.snap
+++ b/scripts/lib/api/__snapshots__/conversionPipeline.test.ts.snap
@@ -28,8 +28,8 @@ exports[`qiskit-sphinx-theme: _toc 1`] = `
"url": "/api/qiskit-sphinx-theme/api_example.Electron"
},
{
- "title": "my_function",
- "url": "/api/qiskit-sphinx-theme/api_example.my_function"
+ "title": "my_function1",
+ "url": "/api/qiskit-sphinx-theme/api_example.my_function1"
}
]
},
@@ -163,20 +163,20 @@ python_api_name: api_example.Electron
"
`;
-exports[`qiskit-sphinx-theme: api_example.my_function 1`] = `
+exports[`qiskit-sphinx-theme: api_example.my_function1 1`] = `
"---
-title: my_function
-description: API reference for api_example.my_function
+title: my_function1
+description: API reference for api_example.my_function1
in_page_toc_min_heading_level: 1
python_api_type: function
-python_api_name: api_example.my_function
+python_api_name: api_example.my_function1
---
-
+
-# api\\_example.my\\_function
+# api\\_example.my\\_function1
-
+
A function that does awesome stuff.
**Returns**
@@ -343,16 +343,16 @@ Testing internal references… [\`Electron.compute_momentum()\`](api_example.Ele
## Contents
-| | |
-| --------------------------------------------------------------------------------------------- | ----------------------------------- |
-| [\`Electron\`](api_example.Electron "api_example.Electron")(\\[size, name]) | A representation of an electron. |
-| [\`my_function\`](api_example.my_function "api_example.my_function")(input1, input2\\[, input3]) | A function that does awesome stuff. |
+| | |
+| ------------------------------------------------------------------------------------------------ | ----------------------------------- |
+| [\`Electron\`](api_example.Electron "api_example.Electron")(\\[size, name]) | A representation of an electron. |
+| [\`my_function1\`](api_example.my_function1 "api_example.my_function1")(input1, input2\\[, input3]) | A function that does awesome stuff. |
## Functions
-###
+### my\\_function2
-
+
A function that does awesome stuff.
**Returns**
diff --git a/scripts/lib/api/testdata/qiskit-sphinx-theme/apidoc/index.html b/scripts/lib/api/testdata/qiskit-sphinx-theme/apidoc/index.html
index f25a1ac9db0..f9b99104b94 100644
--- a/scripts/lib/api/testdata/qiskit-sphinx-theme/apidoc/index.html
+++ b/scripts/lib/api/testdata/qiskit-sphinx-theme/apidoc/index.html
@@ -10,7 +10,7 @@
-
+
@@ -163,7 +163,7 @@