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

[docs] Type check docs in CI #4560

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Dec 27, 2024

@oliviertassinari oliviertassinari added docs Improvements or additions to the documentation typescript labels Dec 27, 2024
@@ -8,10 +8,10 @@ const currentDirectory = url.fileURLToPath(new URL('.', import.meta.url));

const require = createRequire(import.meta.url);

// @ts-ignore
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines +9 to 10
// @ts-ignore
import { useColorSchemeShim } from 'docs/src/modules/components/ThemeContext';
Copy link
Member Author

Choose a reason for hiding this comment

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

Source are in JavaScript.

@@ -1,38 +0,0 @@
/* eslint-disable import/no-unresolved */
Copy link
Member Author

Choose a reason for hiding this comment

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

Seems dead code

}

function Heading({ hash, level: Level, title }: HeadingProps) {
return <SectionTitle title={title} id={hash} level={Level} />;
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines -99 to +100
name: Check Typescript types
command: pnpm check-types
name: Tests TypeScript definitions
command: pnpm typescript
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy script naming convention from main repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant