DRAFT: spelling error caution notice
This commit is contained in:
parent
eee7e1cd41
commit
2b3d542bbb
9 changed files with 34 additions and 0 deletions
|
@ -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 />
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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 />
|
||||
|
||||
|
|
|
@ -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 />
|
||||
|
|
18
docs/src/components/codes/SpellingCaution.jsx
Normal file
18
docs/src/components/codes/SpellingCaution.jsx
Normal 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 = {};
|
Loading…
Add table
Reference in a new issue