Skip to content

Commit f0c6e83

Browse files
committed
formatting
1 parent 028ac60 commit f0c6e83

File tree

7 files changed

+40
-42
lines changed

7 files changed

+40
-42
lines changed

docs/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import './.next/dev/types/routes.d.ts';
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

docs/src/components/Highlight.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ const theme = Object.assign({}, themes.nightOwl, {
1515
},
1616
});
1717

18-
const Code = ({
19-
children,
20-
className = 'language-js',
21-
...props
22-
}) => {
18+
const Code = ({ children, className = 'language-js', ...props }) => {
2319
const language = className.replace(/language-/, '');
2420
const [key, setKey] = useState(`${Math.random() * 7}`);
2521

docs/src/components/Highlight2.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,10 @@ const theme = Object.assign({}, themes.nightOwl, {
1212
},
1313
});
1414

15-
const Code = ({
16-
children,
17-
className = 'language-js',
18-
}) => {
15+
const Code = ({ children, className = 'language-js' }) => {
1916
const language = className.replace(/language-/, '');
2017
return (
21-
<Highlight
22-
code={children.trim()}
23-
language={language}
24-
theme={theme}
25-
>
18+
<Highlight code={children.trim()} language={language} theme={theme}>
2619
{({ className, style, tokens, getLineProps, getTokenProps }) => (
2720
<pre
2821
className={className + ' bg-gray-50 pb-4 pt-4 pr-4 overflow-scroll'}

docs/src/components/useTocHighlight.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ export function useTocHighlight(
2020
const [lastActiveLink, setLastActiveLink] = useState<Element | undefined>(
2121
undefined,
2222
);
23-
const [headings, setHeadings] = useState<Array<HeaderData & { parent?: HeaderData | null }>>([]);
23+
const [headings, setHeadings] = useState<
24+
Array<HeaderData & { parent?: HeaderData | null }>
25+
>([]);
2426

2527
useEffect(() => {
2628
const { anchors } = getHeaderAnchors().reduce<{

docs/src/lib/docs/md-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ export default ({ children, ...props }) => (
1919
` + content;
2020

2121
return callback(null, code);
22-
};
22+
}

docs/src/manifests/getManifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ const versions = {};
55
export const versionList = Object.keys(versions);
66
export function getManifest(tag: string | undefined) {
77
return tag ? versions[tag] : manifest;
8-
};
8+
}

docs/src/pages/reference/configuration/overview.mdx

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,37 @@ Using an `orval.config.(js|mjs|ts)` configuration file, placed at the root of a
1010
Configuration options for the following are described on this page:
1111

1212
<div>
13-
<table className="table-auto">
14-
<thead>
15-
<tr>
16-
<th className="px-4 py-2">Category</th>
17-
<th className="px-4 py-2">Description</th>
18-
</tr>
19-
</thead>
20-
<tbody>
21-
<tr>
22-
<td className="border px-4 py-2">Input</td>
23-
<td className="border px-4 py-2">The path to the specification, or a configuration object specifying how to transform the specification before generation.
24-
</td>
25-
</tr>
26-
<tr className="bg-gray-100">
27-
<td className="border px-4 py-2">Output</td>
28-
<td className="border px-4 py-2">The output path for Orval's auto-generated files, or a configuration object specifying what is generated and how, as well as where to save the generated files.</td>
29-
</tr>
30-
<tr>
31-
<td className="border px-4 py-2">Hooks</td>
32-
<td className="border px-4 py-2">Allows running scripts on certain events.
33-
</td>
34-
</tr>
35-
</tbody>
36-
</table>
13+
<table className="table-auto">
14+
<thead>
15+
<tr>
16+
<th className="px-4 py-2">Category</th>
17+
<th className="px-4 py-2">Description</th>
18+
</tr>
19+
</thead>
20+
<tbody>
21+
<tr>
22+
<td className="border px-4 py-2">Input</td>
23+
<td className="border px-4 py-2">
24+
The path to the specification, or a configuration object specifying
25+
how to transform the specification before generation.
26+
</td>
27+
</tr>
28+
<tr className="bg-gray-100">
29+
<td className="border px-4 py-2">Output</td>
30+
<td className="border px-4 py-2">
31+
The output path for Orval's auto-generated files, or a configuration
32+
object specifying what is generated and how, as well as where to save
33+
the generated files.
34+
</td>
35+
</tr>
36+
<tr>
37+
<td className="border px-4 py-2">Hooks</td>
38+
<td className="border px-4 py-2">
39+
Allows running scripts on certain events.
40+
</td>
41+
</tr>
42+
</tbody>
43+
</table>
3744
</div>
3845

3946
## orval.config.js

0 commit comments

Comments
 (0)