Skip to content

Commit

Permalink
fix(docs): Fix eslint-plugin-react errors
Browse files Browse the repository at this point in the history
Remove unused components, and disable proptype checking for children
in OsTabs custom component since I can't figure out a way to assign
propTypes to it in an mdx file.
  • Loading branch information
caksoylar committed Jan 21, 2024
1 parent 7196f9f commit 0dc04df
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 39 deletions.
19 changes: 0 additions & 19 deletions docs/docs/development/build-flash.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,6 @@ title: Building and Flashing
sidebar_label: Building and Flashing
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

export const OsTabs = (props) => (
<Tabs
groupId="operating-systems"
defaultValue="debian"
values={[
{ label: "Debian/Ubuntu", value: "debian" },
{ label: "Raspberry OS", value: "raspberryos" },
{ label: "Fedora", value: "fedora" },
{ label: "Windows", value: "win" },
{ label: "macOS", value: "mac" },
]}
>
{props.children}
</Tabs>
);

## Building

From here on, building and flashing ZMK should all be done from the `app/` subdirectory of the ZMK checkout:
Expand Down
20 changes: 0 additions & 20 deletions docs/docs/development/ide-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,6 @@ title: IDE Integration
sidebar_label: IDE Integration
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

export const OsTabs = (props) => (
<Tabs
groupId="operating-systems"
defaultValue="debian"
values={[
{ label: "Debian/Ubuntu", value: "debian" },
{ label: "Windows", value: "win" },
{ label: "macOS", value: "mac" },
{ label: "Raspberry OS", value: "raspberryos" },
{ label: "Fedora", value: "fedora" },
{ label: "VS Code & Docker", value: "docker" },
]}
>
{props.children}
</Tabs>
);

## Visual Studio Code

Visual Studio Code needs to know some things about the project such as include
Expand Down
1 change: 1 addition & 0 deletions docs/docs/development/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const OsTabs = (props) => (
{ label: "Fedora", value: "fedora" },
]}
>
{/* eslint-disable-next-line */}
{props.children}
</Tabs>
);
Expand Down

0 comments on commit 0dc04df

Please sign in to comment.