Skip to content

Commit 659a197

Browse files
committed
docs: added obsidian-plugin-unocss documentation
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
1 parent 21fca95 commit 659a197

29 files changed

Lines changed: 324 additions & 11 deletions

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
.Trash/
22
.trash/
33
.DS_Store
4-
**/.obsidian/*
5-
!**/.obsidian/workspace*
6-
!**/.obsidian/graph*
4+
**/.obsidian/
75

86
.idea
97
.nuxt

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"prettier.enable": false,
1010
"editor.formatOnSave": false,
1111
"editor.codeActionsOnSave": {
12-
"source.fixAll.eslint": true,
13-
"source.organizeImports": false
12+
"source.fixAll.eslint": "explicit",
13+
"source.organizeImports": "never"
1414
},
1515
// Enable the ESlint flat config support
1616
"eslint.experimental.useFlatConfig": true,

docs/.vitepress/config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ export default defineConfig({
3737
{ text: 'Overview', link: '/pages/en/integrations/' },
3838
],
3939
},
40+
{
41+
text: 'Obsidian Plugins',
42+
items: [
43+
{ text: 'UnoCSS', link: '/pages/en/integrations/obsidian-plugin-unocss/' },
44+
],
45+
},
4046
{
4147
text: 'Markdown It Plugins',
4248
items: [
@@ -80,6 +86,12 @@ export default defineConfig({
8086

8187
],
8288
},
89+
{
90+
text: 'Obsidian 插件',
91+
items: [
92+
{ text: 'UnoCSS', link: '/pages/zh-CN/integrations/obsidian-plugin-unocss/' },
93+
],
94+
},
8395
{
8496
text: 'Markdown It 插件',
8597
items: [
Lines changed: 1 addition & 0 deletions
Loading

docs/.vitepress/theme/components/IntegrationCard.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import { useData } from 'vitepress'
33
import VitePressLogo from '../assets/vitepress-logo-large.webp'
4+
import ObsidianLogo from '../assets/obsidian-logo.svg'
45
56
const props = defineProps<{
67
type: IntegrationType
@@ -11,6 +12,7 @@ const props = defineProps<{
1112
enum IntegrationType {
1213
markdownIt = 'markdown-it',
1314
vitepress = 'vitepress',
15+
obsidian = 'obsidian',
1416
}
1517
1618
const data = useData()
@@ -27,15 +29,22 @@ const data = useData()
2729
cursor-pointer select-none items-center rounded-lg p-4
2830
class="text-$vp-c-text-1!"
2931
>
30-
<span flex="~ col 1">
32+
<span v-if="props.type === IntegrationType.markdownIt || props.type === IntegrationType.vitepress" flex="~ col 1">
3133
<span>{{ props.title }}</span>
3234
<span>@nolebase/{{ props.package }}</span>
3335
</span>
36+
<span v-if="props.type === IntegrationType.obsidian" flex="~ col 1">
37+
<span>{{ props.title }}</span>
38+
<span>{{ props.package }}</span>
39+
</span>
3440
<template v-if="props.type === IntegrationType.markdownIt">
3541
<span class="i-octicon:markdown-16" h-15 w-15 text-5xl />
3642
</template>
3743
<template v-else-if="props.type === IntegrationType.vitepress">
3844
<img :src="VitePressLogo" h-15 w-15>
3945
</template>
46+
<template v-else-if="props.type === IntegrationType.obsidian">
47+
<img :src="ObsidianLogo" h-15 w-15>
48+
</template>
4049
</a>
4150
</template>

docs/pages/en/integrations/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ Nólëbase Integrations project provides a variety of integrations, plugins, com
2323
<br />
2424

2525
<IntegrationCard type="vitepress" title="Blinking highlight targeted heading" package="vitepress-plugin-highlight-targeted-heading" />
26+
27+
<br />
28+
29+
<IntegrationCard type="obsidian" title="UnoCSS" package="obsidian-plugin-unocss" />
Binary file not shown.
Binary file not shown.
Binary file not shown.
258 KB
Loading

0 commit comments

Comments
 (0)