Skip to content

Commit 89be2f3

Browse files
committed
Mark missing content
1 parent c871995 commit 89be2f3

File tree

7 files changed

+29
-2
lines changed

7 files changed

+29
-2
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { Callout } from 'nextra-theme-docs';
2+
3+
export default function ContentMissing() {
4+
return (
5+
<Callout emoji="ℹ️" type="info">
6+
This content hasn't been created yet.
7+
</Callout>
8+
);
9+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
import ContentMissing from '@/components/ContentMissing';
2+
13
# childContextTypeHandler
4+
5+
<ContentMissing />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
import ContentMissing from '@/components/ContentMissing';
2+
13
# codeTypeHandler
24

5+
<ContentMissing />
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
import ContentMissing from '@/components/ContentMissing';
2+
13
# contextTypeHandler
4+
5+
<ContentMissing />
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
import ContentMissing from '@/components/ContentMissing';
2+
13
# propTypeCompositionHandler
4+
5+
<ContentMissing />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { Language, Playground, samples } from '../components/playground';
1+
import { Language, Playground, samples } from '@/components/playground';
22

33
<Playground initialContent={samples.ts} initialLanguage={Language.TYPESCRIPT} />

packages/website/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"moduleResolution": "node",
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
16-
"jsx": "preserve"
16+
"jsx": "preserve",
17+
"paths": {
18+
"@/components/*": ["./src/components/*"]
19+
}
1720
},
1821
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
1922
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)