Skip to content

Commit

Permalink
Add missing metadata for Qiskit Transpiler Service (#1438)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano authored May 28, 2024
1 parent 5a58268 commit 2e59764
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/api/qiskit-ibm-runtime/0.14/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime
description: API documentation for the qiskit-ibm-runtime client
---

# qiskit-ibm-runtime API reference
Expand Down
2 changes: 1 addition & 1 deletion docs/api/qiskit-ibm-runtime/0.15/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime
description: API documentation for the qiskit-ibm-runtime client
---

# qiskit-ibm-runtime API reference
Expand Down
2 changes: 1 addition & 1 deletion docs/api/qiskit-ibm-runtime/0.16/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime
description: API documentation for the qiskit-ibm-runtime client
---

# qiskit-ibm-runtime API reference
Expand Down
2 changes: 1 addition & 1 deletion docs/api/qiskit-ibm-runtime/0.17/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime
description: API documentation for the qiskit-ibm-runtime client
---

# qiskit-ibm-runtime API reference
Expand Down
2 changes: 1 addition & 1 deletion docs/api/qiskit-ibm-runtime/0.18/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime
description: API documentation for the qiskit-ibm-runtime client
---

# qiskit-ibm-runtime API reference
Expand Down
2 changes: 1 addition & 1 deletion docs/api/qiskit-ibm-runtime/0.19/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime
description: API documentation for the qiskit-ibm-runtime client
---

# qiskit-ibm-runtime API reference
Expand Down
2 changes: 1 addition & 1 deletion docs/api/qiskit-ibm-runtime/0.20/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime
description: API documentation for the qiskit-ibm-runtime client
---

# qiskit-ibm-runtime API reference
Expand Down
2 changes: 1 addition & 1 deletion docs/api/qiskit-ibm-runtime/0.21/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime
description: API documentation for the qiskit-ibm-runtime client
---

# qiskit-ibm-runtime API reference
Expand Down
2 changes: 1 addition & 1 deletion docs/api/qiskit-ibm-runtime/0.22/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime
description: API documentation for the qiskit-ibm-runtime client
---

# qiskit-ibm-runtime API reference
Expand Down
2 changes: 1 addition & 1 deletion docs/api/qiskit-ibm-runtime/dev/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime
description: API documentation for the qiskit-ibm-runtime client
---

# qiskit-ibm-runtime API reference
Expand Down
2 changes: 1 addition & 1 deletion docs/api/qiskit-ibm-runtime/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime
description: API documentation for the qiskit-ibm-runtime client
---

# qiskit-ibm-runtime API reference
Expand Down
6 changes: 6 additions & 0 deletions docs/api/qiskit-transpiler-service/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
title: Qiskit Transpiler Service Client Docs
description: API documentation for the qiskit-transpiler-service client
---

# qiskit-transpiler-service API reference

* [AI (`qiskit_transpiler_service.ai`)](ai)
* [Qiskit Transpiler Service (`qiskit_transpiler_service.transpiler_service`)](transpiler_service)
* [Utilities (`qiskit_transpiler_service.utils`)](utils)

15 changes: 14 additions & 1 deletion scripts/lib/api/specialCaseResults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@
import { HtmlToMdResultWithUrl } from "./HtmlToMdResult";

export const RUNTIME_INDEX_META = `title: Qiskit Runtime IBM Client API Docs
description: API documentation for qiskit-ibm-runtime`;
description: API documentation for the qiskit-ibm-runtime client`;

export const PROVIDER_INDEX_META = `title: Qiskit IBM Provider API Docs
description: API documentation for qiskit-ibm-provider`;

export const TRANSPILER_SERVICE_INDEX_META = `title: Qiskit Transpiler Service Client Docs
description: API documentation for the qiskit-transpiler-service client`;

export function transformSpecialCaseUrl(url: string): string {
return (
url
Expand Down Expand Up @@ -46,6 +49,16 @@ export function specialCaseResults(results: HtmlToMdResultWithUrl[]): void {
hardcodedFrontmatter: RUNTIME_INDEX_META,
};
}

if (
result.url.endsWith("/index") &&
result.url.includes("qiskit-transpiler-service/")
) {
result.meta = {
hardcodedFrontmatter: TRANSPILER_SERVICE_INDEX_META,
};
}

result.url = transformSpecialCaseUrl(result.url);
}
}

0 comments on commit 2e59764

Please sign in to comment.