Skip to content

Commit 8d2d21a

Browse files
authored
feat(docs): seo improvements (#43)
1 parent 5ea621b commit 8d2d21a

8 files changed

Lines changed: 18 additions & 4 deletions

File tree

docs/app/components/AppHeaderLogo.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
xmlns="http://www.w3.org/2000/svg"
44
viewBox="0 0 576 128"
55
fill="none"
6+
role="img"
7+
aria-label="Comark"
68
>
79
<path
810
stroke="currentColor"

docs/app/pages/play.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
definePageMeta({
33
footer: false,
44
})
5+
useSeoMeta({
6+
title: 'Playground - Comark',
7+
description: 'Try Comark live in the browser. Edit markdown with component syntax and see the rendered output in real-time.',
8+
})
59
defineOgImageComponent('Docs', {
610
headline: 'Playground',
711
})

docs/app/pages/stream.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ import resolveComponent from '../utils/components-manifest'
88
definePageMeta({
99
footer: false,
1010
})
11+
useSeoMeta({
12+
title: 'Streaming Demo - Comark',
13+
description: 'See Comark streaming in action. Watch markdown content parse and render in real-time as it arrives.',
14+
})
1115
defineOgImageComponent('Docs', {
1216
headline: 'Streaming',
1317
})

docs/app/pages/test.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import { Comark } from 'comark/vue'
33
import highlight from 'comark/plugins/highlight'
44
import resolveComponent from '../utils/components-manifest'
55
6+
useHead({
7+
meta: [{ name: 'robots', content: 'noindex, nofollow' }],
8+
})
9+
610
const markdown = ref(`
711
---
812
seo:

docs/content/3.rendering/2.react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export default function ArticleCard() {
195195
### With Tailwind CSS
196196

197197
```tsx [App.tsx]
198-
<Comark
198+
<Comark
199199
value={content}
200200
className="prose prose-slate lg:prose-xl dark:prose-invert"
201201
/>

docs/content/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ footerSections:
165165
- label: Syntax Highlighting
166166
to: /plugins/core/highlight
167167
- label: Math
168-
to: /plugins/community/math
168+
to: /plugins/external/math
169169
- label: CJK
170-
to: /plugins/community/cjk
170+
to: /plugins/external/cjk
171171
- label: Mermaid
172-
to: /plugins/community/mermaid
172+
to: /plugins/external/mermaid
173173
- title: Community
174174
links:
175175
- label: GitHub

docs/public/apple-touch-icon.png

-1.91 KB
Loading

docs/public/favicon.ico

-6.54 KB
Binary file not shown.

0 commit comments

Comments
 (0)