From c35745fe4946cc7d6667c56e29cec87b1760b000 Mon Sep 17 00:00:00 2001 From: aidanCQ Date: Thu, 3 Oct 2024 15:16:55 +0100 Subject: [PATCH 1/3] Add lint to ci. --- .github/workflows/pre-release.yml | 1 + .github/workflows/release.yml | 1 + package.json | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 0dd7528..d13346b 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -18,6 +18,7 @@ jobs: node-version: 20 cache: 'npm' - run: npm ci + - run: npm run lint - run: npm run build - run: npx semantic-release env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a3e673b..ce72c36 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ jobs: node-version: 20 cache: 'npm' - run: npm ci + - run: npm run lint - run: npm run build && npm run build-storybook - name: Upload artifact. diff --git a/package.json b/package.json index 6954c63..0134d58 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "scripts": { "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", + "lint": "tsc", "build": "rm -rf ./dist && rollup -c" }, "release": { From 60c1a3a95ba3594f1fff206bac7019dc43687991 Mon Sep 17 00:00:00 2001 From: aidanCQ Date: Thu, 3 Oct 2024 15:17:00 +0100 Subject: [PATCH 2/3] Fix type errors. --- src/custom/docs/components/footer/index.tsx | 6 +- stories/custom/docs-footer.stories.tsx | 64 +-------------------- 2 files changed, 4 insertions(+), 66 deletions(-) diff --git a/src/custom/docs/components/footer/index.tsx b/src/custom/docs/components/footer/index.tsx index 2e4cfda..4ba7b31 100644 --- a/src/custom/docs/components/footer/index.tsx +++ b/src/custom/docs/components/footer/index.tsx @@ -86,11 +86,11 @@ export const Footer = () => {
- {footerConfig.map((col) => { + {footerConfig.columns.map((col) => { return ( -
+
- {col.title} + {col.name}
    {col.items.map((item) => { diff --git a/stories/custom/docs-footer.stories.tsx b/stories/custom/docs-footer.stories.tsx index 26b2d1f..38d6759 100644 --- a/stories/custom/docs-footer.stories.tsx +++ b/stories/custom/docs-footer.stories.tsx @@ -1,71 +1,9 @@ import { Meta, StoryObj } from "@storybook/react"; import {DocsFooter } from "src"; -import { QuantinuumLogo } from "src/custom/docs/QuantinuumLogo"; - const footerConfig = { - logo: , - columns: [ - { - title: 'Solutions', - items: [ - { - href: 'https://docs.quantinuum.com/nexus/index.html', - name: 'Quantinuum Nexus', - }, - { - href: 'https://docs.quantinuum.com/inquanto/index.html', - name: 'Inquanto', - }, - { - href: 'https://tket.quantinuum.com/', - name: 'TKET', - }, - { - href: 'https://docs.quantinuum.com/lambeq', - name: 'Lambeq', - }, - ], - }, - { - title: 'Hardware', - items: [ - { - href: 'https://docs.quantinuum.com/h-series/index.html', - name: 'System Model H1', - }, - { - href: 'https://docs.quantinuum.com/h-series/index.html', - name: 'System Model H2', - }, - { - href: 'https://www.quantinuum.com/hardware#access', - name: 'Get Access', - }, - ], - }, - { - title: 'What We Do?', - items: [ - { - href: 'https://www.quantinuum.com/about', - name: 'About Quantinuum', - }, - { - href: '"https://www.quantinuum.com/publications', - name: 'Research', - }, - { - href: 'https://www.quantinuum.com/events', - name: 'Events', - }, - ], - }, - ], - subtitle: '', - } export function DocsNavDemo() { - return ; + return ; } const meta: Meta = { From 34f9064b02acc337acd6d1fdb995d83c40cc4899 Mon Sep 17 00:00:00 2001 From: aidanCQ Date: Thu, 3 Oct 2024 15:17:58 +0100 Subject: [PATCH 3/3] Remove domain from intralinks. --- src/custom/docs/components/footer/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/custom/docs/components/footer/index.tsx b/src/custom/docs/components/footer/index.tsx index 4ba7b31..814502d 100644 --- a/src/custom/docs/components/footer/index.tsx +++ b/src/custom/docs/components/footer/index.tsx @@ -8,15 +8,15 @@ const footerConfig = { items: [ { name: "H-Series", - href: "https://docs.quantinuum.com/h-series" + href: "/h-series" }, { name: "Nexus", - href: "https://docs.quantinuum.com/nexus" + href: "/nexus" }, { name: "InQuanto", - href: "https://docs.quantinuum.com/inquanto" + href: "/inquanto" } ] }, { @@ -24,11 +24,11 @@ const footerConfig = { items: [ { name: "TKET", - href: "https://docs.quantinuum.com/tket" + href: "/tket" }, { name: "\u03BBambeq", - href: "https://docs.quantinuum.com/lambeq" + href: "/lambeq" } ] },{