Skip to content

Commit bb2ce63

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d21bfff commit bb2ce63

File tree

5 files changed

+17
-21
lines changed

5 files changed

+17
-21
lines changed

docs/Customization/talon-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The primary way to extend talon is using `.talon` files placed anywherein the `u
1414

1515
An example `.talon` file might look like this:
1616

17-
```talon
17+
```````talon
1818
# Comments start with a # sign, and they must always be on their own line.
1919
#
2020
# This part, the context header, defines under which circumstances this file applies.
@@ -43,7 +43,7 @@ tag(): user.tabs
4343
# This adjusts settings (within this file's context).
4444
settings():
4545
key_wait = 1.5
46-
```
46+
```````
4747

4848
## Context header
4949

docusaurus.config.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import type { Config } from "@docusaurus/types";
22
import type * as Preset from "@docusaurus/preset-classic";
33
import rehypeShiki, { RehypeShikiOptions } from "@shikijs/rehype";
4-
import {BundledLanguage, bundledLanguages, ShikiTransformer} from "shiki";
4+
import { BundledLanguage, bundledLanguages, ShikiTransformer } from "shiki";
55
// import talonLanguage from "./talon.tmLanguage.json" ;
6-
import { transformerColorizedBrackets } from '@shikijs/colorized-brackets'
7-
import {transformerNotationHighlight} from "@shikijs/transformers"
6+
import { transformerColorizedBrackets } from "@shikijs/colorized-brackets";
7+
import { transformerNotationHighlight } from "@shikijs/transformers";
88

9-
10-
const config: Config = {
9+
const config: Config = {
1110
title: "Talon Community Wiki",
1211
tagline: "Documentation for using Talon Voice",
1312
favicon: "img/talon-community-logo.png",
@@ -51,23 +50,21 @@ const config: Config = {
5150
{
5251
themes: {
5352
light: "catppuccin-latte",
54-
dark: "catppuccin-macchiato"
53+
dark: "catppuccin-macchiato",
5554
},
56-
inline: 'tailing-curly-colon',
55+
inline: "tailing-curly-colon",
5756
transformers: [
5857
transformerColorizedBrackets() as unknown as ShikiTransformer,
5958
],
60-
langs: Object.keys(bundledLanguages) as BundledLanguage[]
59+
langs: Object.keys(bundledLanguages) as BundledLanguage[],
6160
} satisfies RehypeShikiOptions,
6261
],
6362
],
64-
6563
},
6664
theme: {
6765
customCss: "./src/css/custom.css",
6866
},
6967
blog: false,
70-
7168
} satisfies Preset.Options,
7269
],
7370
],

src/css/custom.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
display: none !important;
3434
}
3535

36-
3736
[data-theme="dark"] pre {
3837
color: var(--shiki-dark) !important;
3938
background-color: var(--shiki-dark-bg) !important;

src/theme/MDXComponents/Code.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import type {ComponentProps} from 'react';
2-
import React from 'react';
1+
import type { ComponentProps } from "react";
2+
import React from "react";
33
// import CodeBlock from '@theme/CodeBlock';
4-
import CodeInline from '@theme/CodeInline';
5-
import type {Props} from '@theme/MDXComponents/Code';
4+
import CodeInline from "@theme/CodeInline";
5+
import type { Props } from "@theme/MDXComponents/Code";
66

77
function shouldBeInline(props: Props) {
88
return (
99
// empty code blocks have no props.children,
1010
// see https://github.com/facebook/docusaurus/pull/9704
11-
typeof props.children !== 'undefined' &&
11+
typeof props.children !== "undefined" &&
1212
React.Children.toArray(props.children).every(
13-
(el) => typeof el === 'string' && !el.includes('\n'),
13+
(el) => typeof el === "string" && !el.includes("\n"),
1414
)
1515
);
1616
}

src/theme/MDXComponents/Pre.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, {type ReactNode} from 'react';
2-
import type {Props} from '@theme/MDXComponents/Pre';
1+
import React, { type ReactNode } from "react";
2+
import type { Props } from "@theme/MDXComponents/Pre";
33

44
export default function MDXPre(props: Props): ReactNode | undefined {
55
return <pre {...props} />;

0 commit comments

Comments
 (0)