Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing metadata for Qiskit Transpiler Service #1438

Merged
merged 13 commits into from
May 28, 2024
Merged
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/")
Comment on lines +54 to +55
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this check is so that we will still match on qiskit-transpiler-service/dev/index

) {
result.meta = {
hardcodedFrontmatter: TRANSPILER_SERVICE_INDEX_META,
};
}

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