Skip to content

Commit 83d2877

Browse files
committed
fix build
1 parent c0dd23c commit 83d2877

File tree

6 files changed

+53
-36
lines changed

6 files changed

+53
-36
lines changed

src/_posts/components/ChartJs.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/components/AuthorLinks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Author } from "../../../../src"
1+
import { Author } from "vite-plugin-press"
22

33
type Props = {
44
author: Author

src/components/BlogPosts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Post } from "../../../../src"
1+
import { Post } from "vite-plugin-press"
22
import { Link } from "react-router-dom"
33
import { useContext } from "react"
44
import { PressContext } from "@/contexts"

src/contexts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { createContext } from 'react'
2-
import type { VirtualPress } from '../../../src'
2+
import type { VirtualPress } from 'vite-plugin-press'
33

44
export const PressContext = createContext<VirtualPress>({} as VirtualPress)

src/pages/about.mdx

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,51 @@ export default ({ children }) => <Layout {...meta}>{children}</Layout>
1010
This template contains our essential recommendations for a modern Vue Single Page App optimal for both
1111
productivity and performance.
1212

13-
<Include src="features.md" />
13+
<Include src="features.md" />
14+
15+
## React Plugins
16+
17+
The Vite plugins registered in `vite.config.ts` improves productivity by adopting popular conventions that automating-away manual tasks & configurations.
18+
19+
### [Iconify for React](https://iconify.design/docs/icon-components/react/)
20+
21+
For accessing [thousands of Iconfigy's SVG icons](https://icon-sets.iconify.design) as Vue components **on-demand** universally.
22+
23+
```ts
24+
import { Icon } from '@iconify/react'
25+
```
26+
27+
#### Usage
28+
29+
```html
30+
<Icon icon="mdi-light:home" />
31+
```
32+
33+
### [unplugin-vue-router](https://github.com/posva/unplugin-vue-router)
34+
35+
For auto generating vue routing configurations for each Vue 3 component from
36+
[NuxtJS inspired File System Routing](https://github.com/posva/unplugin-vue-router?tab=readme-ov-file#routes-folder-structure) conventions.
37+
38+
```ts
39+
Pages({
40+
extensions: ['tsx', 'mdx']
41+
})
42+
```
43+
44+
### [unplugin-vue-markdown](https://github.com/unplugin/unplugin-vue-markdown)
45+
46+
For enabling Markdown Support by converting each `.md` document into a Vue Component that's rendered using
47+
[markdown-it](https://github.com/markdown-it/markdown-it).
48+
49+
```ts
50+
Markdown({
51+
markdownItOptions: {
52+
// html: true,
53+
},
54+
markdownItSetup(md) {
55+
//md.use(markdownPlugin)
56+
},
57+
wrapperComponent: 'MarkdownPage'
58+
})
59+
```
60+

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export default defineConfig(async () => {
5656
alias: {
5757
'@': fileURLToPath(new URL('./src', import.meta.url)),
5858
}
59-
}
59+
},
60+
assetsInclude: ['**/*.md'],
6061
}
6162
})

0 commit comments

Comments
 (0)