Skip to content

Commit

Permalink
Move API docs to apidoc folder (Qiskit#599)
Browse files Browse the repository at this point in the history
This mirrors how we do API docs in Qiskit, Runtime, and Provider. It's
necessary to use this repository as an integration test for
qiskit/documentation.
  • Loading branch information
Eric-Arellano committed Mar 5, 2024
1 parent 418231e commit 9bfd686
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions example_docs/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ A site to test out styling for qiskit-sphinx-theme.
:caption: API
:maxdepth: 2

Autodoc <sphinx_guide/autodoc>
Inline classes <sphinx_guide/inline_classes>
Autodoc <apidoc/module>
Inline classes <apidoc/inline_classes>

.. toctree::
:caption: Special elements
Expand Down
6 changes: 3 additions & 3 deletions tests/js/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test("right side bar is not broken by our page layout", async ({ page }) => {
test.describe("left side bar", () => {
test("renders correctly", async ({ page }) => {
// Go to a top-level page so that we can see how the expanded side bar looks.
await page.goto("sphinx_guide/autodoc.html");
await page.goto("apidoc/module.html");
const leftToC = page.locator(".sidebar-drawer");
await expect(leftToC).toHaveScreenshot();
});
Expand All @@ -69,7 +69,7 @@ test.describe("left side bar", () => {

test.describe("api docs", () => {
test("module page", async ({ page }) => {
await page.goto("sphinx_guide/autodoc.html");
await page.goto("apidoc/module.html");
const content = page.locator("div.article-container");
await expect(content).toHaveScreenshot();
});
Expand All @@ -87,7 +87,7 @@ test.describe("api docs", () => {
});

test("inline classes", async ({ page }) => {
await page.goto("sphinx_guide/inline_classes.html");
await page.goto("apidoc/inline_classes.html");
const content = page.locator("div.article-container");
await expect(content).toHaveScreenshot();
});
Expand Down

0 comments on commit 9bfd686

Please sign in to comment.