DRAFT: spelling error caution notice

This commit is contained in:
Hello9999901 2022-08-01 12:13:27 -04:00
parent eee7e1cd41
commit 2b3d542bbb
9 changed files with 34 additions and 0 deletions

View file

@ -4,12 +4,14 @@ sidebar_label: Applications
hide_title: true
---
import SpellingCaution from "@site/src/components/codes/SpellingCaution";
import OsLegend from "@site/src/components/codes/OsLegend";
import ToastyContainer from "@site/src/components/codes/ToastyContainer";
import Content, { toc as contentToc } from "./_applications.mdx";
export const toc = contentToc;
<SpellingCaution />
<OsLegend />
<ToastyContainer />
<Content />

View file

@ -4,12 +4,14 @@ sidebar_label: Editing
hide_title: true
---
import SpellingCaution from "@site/src/components/codes/SpellingCaution";
import OsLegend from "@site/src/components/codes/OsLegend";
import ToastyContainer from "@site/src/components/codes/ToastyContainer";
import Content, { toc as contentToc } from "./_editing.mdx";
export const toc = contentToc;
<SpellingCaution />
<OsLegend />
<ToastyContainer />
<Content />

View file

@ -5,6 +5,7 @@ hide_title: true
slug: ./
---
import SpellingCaution from "@site/src/components/codes/SpellingCaution";
import OsLegend from "@site/src/components/codes/OsLegend";
import ToastyContainer from "@site/src/components/codes/ToastyContainer";
import Key, { toc as keyToc } from "./_keyboard-keypad.mdx";
@ -23,6 +24,7 @@ export const toc = [
...powerToc,
];
<SpellingCaution />
<OsLegend />
<ToastyContainer />
<Key />

View file

@ -4,12 +4,14 @@ sidebar_label: Input Assist
hide_title: true
---
import SpellingCaution from "@site/src/components/codes/SpellingCaution";
import OsLegend from "@site/src/components/codes/OsLegend";
import ToastyContainer from "@site/src/components/codes/ToastyContainer";
import Content, { toc as contentToc } from "./_input-assist.mdx";
export const toc = contentToc;
<SpellingCaution />
<OsLegend />
<ToastyContainer />
<Content />

View file

@ -4,12 +4,14 @@ sidebar_label: Keyboard & Keypad
hide_title: true
---
import SpellingCaution from "@site/src/components/codes/SpellingCaution";
import OsLegend from "@site/src/components/codes/OsLegend";
import ToastyContainer from "@site/src/components/codes/ToastyContainer";
import Content, { toc as contentToc } from "./_keyboard-keypad.mdx";
export const toc = contentToc;
<SpellingCaution />
<OsLegend />
<ToastyContainer />
<Content />

View file

@ -4,12 +4,14 @@ sidebar_label: Media
hide_title: true
---
import SpellingCaution from "@site/src/components/codes/SpellingCaution";
import OsLegend from "@site/src/components/codes/OsLegend";
import ToastyContainer from "@site/src/components/codes/ToastyContainer";
import Content, { toc as contentToc } from "./_media.mdx";
export const toc = contentToc;
<SpellingCaution />
<OsLegend />
<ToastyContainer />
<Content />

View file

@ -4,10 +4,12 @@ sidebar_label: Modifiers
hide_title: true
---
import SpellingCaution from "@site/src/components/codes/SpellingCaution";
import OsLegend from "@site/src/components/codes/OsLegend";
import ToastyContainer from "@site/src/components/codes/ToastyContainer";
import Table from "@site/src/components/codes/Table";
<SpellingCaution />
<OsLegend />
<ToastyContainer />

View file

@ -4,12 +4,14 @@ sidebar_label: Power
hide_title: true
---
import SpellingCaution from "@site/src/components/codes/SpellingCaution";
import OsLegend from "@site/src/components/codes/OsLegend";
import ToastyContainer from "@site/src/components/codes/ToastyContainer";
import Content, { toc as contentToc } from "./_power.mdx";
export const toc = contentToc;
<SpellingCaution />
<OsLegend />
<ToastyContainer />
<Content />

View file

@ -0,0 +1,18 @@
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: CC-BY-NC-SA-4.0
*/
import React from "react";
import Admonition from '@theme/Admonition';
export default function SpellingCaution() {
return (
<Admonition type="caution">
<p>Take extra notice of the spelling of the keycodes, especially the shorthand spelling. Otherwise, it will result in an elusive parsing error!</p>
</Admonition>
);
}
SpellingCaution.propTypes = {};