File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ci
2+ on :
3+ pull_request :
4+ branches : [main]
5+ workflow_dispatch :
6+ jobs :
7+ ci :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v6
11+ with :
12+ persist-credentials : false
13+ - uses : actions/setup-node@v6
14+ with :
15+ node-version-file : .nvmrc
16+ cache : npm
17+ - run : npm clean-install
18+ - run : npm run ci
19+ - name : Check Diff
20+ run : |
21+ [[ -z $(git status --porcelain | tee /dev/stderr) ]] || exit 1
Original file line number Diff line number Diff line change 1+ v24.14.0
Original file line number Diff line number Diff line change 1818 "check:fix" : " biome check --write ." ,
1919 "write-translations" : " docusaurus write-translations" ,
2020 "write-heading-ids" : " docusaurus write-heading-ids" ,
21- "typecheck" : " tsc"
21+ "typecheck" : " tsc" ,
22+ "ci" : " npm run build && npm run check:fix"
2223 },
2324 "dependencies" : {
2425 "@docusaurus/core" : " ^3.9.2" ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import Link from "@docusaurus/Link";
1515import { FooterLinkItem , useThemeConfig } from "@docusaurus/theme-common" ;
1616import useBaseUrl from "@docusaurus/useBaseUrl" ;
1717import clsx from "clsx" ;
18- import React , { PropsWithChildren } from "react" ;
18+ import React , { type JSX , PropsWithChildren } from "react" ;
1919
2020import IconMail from "./icon-envelope--gray.svg" ;
2121import IconLinkedIn from "./icon-linkedin--gray.svg" ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import type { Props as NavbarItemConfig } from "@theme/NavbarItem";
1111import NavbarItem from "@theme/NavbarItem" ;
1212import SearchBar from "@theme/SearchBar" ;
1313import clsx from "clsx" ;
14- import type React from "react" ;
14+ import type { JSX , ReactNode } from "react" ;
1515import { MaintainedBy } from "../../components/maintained-by" ;
1616import styles from "./styles.module.css" ;
1717
@@ -30,7 +30,7 @@ function NavbarItems({ items }: { items: NavbarItemConfig[] }): JSX.Element {
3030 return < div className = { styles . linkList } > { renderedItems } </ div > ;
3131}
3232
33- function NavbarContentLayout ( { left, right } : { left : React . ReactNode ; right : React . ReactNode } ) {
33+ function NavbarContentLayout ( { left, right } : { left : ReactNode ; right : ReactNode } ) {
3434 return (
3535 < div className = { clsx ( "navbar__inner" , styles . inner ) } >
3636 < div className = "navbar__items" > { left } </ div >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { useIsScrolled } from "@site/src/utils/use-is-scrolled";
99import type { Props } from "@theme/Navbar/Layout" ;
1010import NavbarMobileSidebar from "@theme/Navbar/MobileSidebar" ;
1111import clsx from "clsx" ;
12- import type { ComponentProps } from "react" ;
12+ import type { ComponentProps , JSX } from "react" ;
1313import styles from "./styles.module.css" ;
1414
1515function NavbarBackdrop ( props : ComponentProps < "div" > ) {
Original file line number Diff line number Diff line change 1+ import type { JSX } from "react" ;
12import styles from "./styles.module.css" ;
23
34export default function NavbarLogo ( ) : JSX . Element {
Original file line number Diff line number Diff line change 11import clsx from "clsx" ;
2+ import type { JSX } from "react" ;
23
34import styles from "./badge.module.css" ;
45
You can’t perform that action at this time.
0 commit comments