@@ -2,115 +2,137 @@ import type { NimiqVitepressThemeConfig } from 'nimiq-vitepress-theme'
22import type { UserConfig } from 'vitepress'
33import { defineConfigWithTheme } from 'vitepress'
44import PreviewPlugin from './theme/plugins/component-preview'
5+ import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
6+ import { createFileSystemTypesCache } from '@shikijs/vitepress-twoslash/cache-fs'
57
68// @unocss -include
79
810export default defineConfigWithTheme < NimiqVitepressThemeConfig > ( {
911 title : 'Nimiq UI' ,
1012 description : 'Build awesome apps with the Nimiq Style' ,
11- base : 'nimiq-ui' ,
13+ base : '/ nimiq-ui/ ' ,
1214 themeConfig : {
1315 modules : [
1416 {
15- subpath : '/ nimiq-css' ,
17+ subpath : 'nimiq-css' ,
1618 icon : 'i-custom:nimiq-css' ,
17- defaultPageLink : '/nimiq-css/getting-started/ ' ,
19+ defaultPageLink : '/nimiq-css/getting-started' ,
1820 text : 'Nimiq CSS' ,
1921 description : 'The CSS framework' ,
2022 sidebar : [
2123 {
22- label : 'Guide ' ,
24+ label : 'Getting Started ' ,
2325 items : [
24- { text : 'Getting started' , link : '/nimiq-css/getting-started/' , icon : 'i-tabler:arrow-guide scale-120' } ,
25- { text : 'Philosophy' , link : '/nimiq-css/philosophy/' , icon : 'i-tabler:brain scale-120' } ,
26- { text : 'Migrate from Nimiq Style' , link : '/nimiq-css/migrate-from-nimiq-styles/' , icon : 'i-tabler:arrow-move-right-filled scale-120' } ,
27- { text : 'Palette' , link : '/nimiq-css/palette/' , icon : 'i-tabler:palette scale-120' } ,
26+ { text : 'Getting started' , link : '/nimiq-css/getting-started' , icon : 'i-tabler:arrow-guide ' } ,
27+ { text : 'Philosophy' , link : '/nimiq-css/philosophy' , icon : 'i-tabler:brain ' } ,
28+ { text : 'Migrate from Nimiq Style' , link : '/nimiq-css/migrate-from-nimiq-styles' , icon : 'i-tabler:arrow-move-right-filled ' } ,
29+ ] ,
30+ } ,
31+ {
32+ label : 'Core Features' ,
33+ items : [
34+ { text : 'Palette' , link : '/nimiq-css/palette' , icon : 'i-tabler:palette ' } ,
35+ { text : 'Utilities' , link : '/nimiq-css/utilities' , icon : 'i-tabler:building-factory-2 ' } ,
36+ { text : 'Typography' , icon : 'i-nimiq:file-text ' , items : [
37+ { text : 'Getting started' , link : '/nimiq-css/typography' } ,
38+ { text : 'Example' , link : '/nimiq-css/typography/demo-article' } ,
39+ ] } ,
2840 {
2941 text : 'CSS Layers' ,
30- icon : 'i-tabler:binary-tree scale-120 ' ,
42+ icon : 'i-tabler:binary-tree ' ,
3143 items : [
32- { text : 'Index' , link : '/nimiq-css/layers/index/' } ,
33- { text : 'Preflights' , link : '/nimiq-css/layers/preflights/' } ,
34- { text : 'Colors' , link : '/nimiq-css/layers/colors/' } ,
35- { text : 'Utilities' , link : '/nimiq-css/layers/utilities/' } ,
36- { text : 'Typography' , link : '/nimiq-css/layers/typography/' } ,
37- { text : 'Static content' , link : '/nimiq-css/layers/static-content/' } ,
44+ { text : 'Overview' , link : '/nimiq-css/layers/index' } ,
45+ { text : 'Preflights' , link : '/nimiq-css/layers/preflights' } ,
46+ { text : 'Colors' , link : '/nimiq-css/layers/colors' } ,
47+ { text : 'Fonts' , link : '/nimiq-css/layers/fonts' } ,
48+ { text : 'Utilities' , link : '/nimiq-css/layers/utilities' } ,
49+ { text : 'Typography' , link : '/nimiq-css/layers/typography' } ,
50+ { text : 'Static content' , link : '/nimiq-css/layers/static-content' } ,
3851 ] ,
3952 } ,
40- ] ,
53+ ]
4154 } ,
55+ {
56+ label : 'Integrations' ,
57+ items : [
58+ { text : 'Native CSS' , link : '/nimiq-css/integrations/native-css' , icon : 'i-simple-icons:css' } ,
59+ { text : 'UnoCSS' , link : '/nimiq-css/integrations/unocss' , icon : 'i-simple-icons:unocss' } ,
60+ { text : 'TailwindCSS' , link : '/nimiq-css/integrations/tailwindcss' , icon : 'i-simple-icons:tailwindcss' } ,
61+ ]
62+ }
4263 ] ,
4364 } ,
4465 {
45- subpath : '/ frankenstein' ,
66+ subpath : 'frankenstein' ,
4667 text : 'Nimiq Frankenstein' ,
4768 icon : 'i-custom:frankenstein' ,
4869 defaultPageLink : '/frankenstein/getting-started' ,
4970 description : 'The Vue 3 components' ,
5071 sidebar : [
5172 {
52- label : 'Guide ' ,
73+ label : 'Getting Started ' ,
5374 items : [
54- { text : 'Getting started' , link : '/frankenstein/getting-started' , icon : 'i-tabler:arrow-guide scale-120 ' } ,
75+ { text : 'Getting started' , link : '/frankenstein/getting-started' , icon : 'i-tabler:arrow-guide ' } ,
5576 ] ,
5677 } ,
5778 {
58- label : 'Components' ,
79+ label : 'Vue Components' ,
5980 items : [
6081 {
61- text : 'Modal ' ,
82+ text : 'Dialog Components ' ,
6283 icon : 'i-custom:modal' ,
6384 items : [
64- { text : 'Basic Modal' , link : '/frankenstein/components/basic-modal/ ' } ,
65- { text : 'Nested Modal' , link : '/frankenstein/components/nested-modal/ ' } ,
85+ { text : 'Basic Modal' , link : '/frankenstein/components/basic-modal' } ,
86+ { text : 'Nested Modal' , link : '/frankenstein/components/nested-modal' } ,
6687 ] ,
6788 } ,
6889 {
6990 text : 'Animated Staking Ripple' ,
7091 icon : 'i-nimiq:leaf-3' ,
71- link : '/ frankenstein/components/animated-staking-ripple/ ' ,
92+ link : 'frankenstein/components/animated-staking-ripple' ,
7293 }
7394 ] ,
7495 } ,
7596 ] ,
7697 } ,
7798 {
78- subpath : '/ vitepress-theme' ,
99+ subpath : 'vitepress-theme' ,
79100 text : 'Vitepress Theme' ,
80101 icon : 'i-custom:nimiq-vitepress' ,
81- defaultPageLink : '/vitepress-theme/ ' ,
102+ defaultPageLink : '/vitepress-theme' ,
82103 description : 'Your Vitepress with Nimiq' ,
83104 sidebar : [
84105 {
85106 items : [
86- { text : 'Getting started ' , link : '/vitepress-theme/ ' , icon : 'i-tabler:arrow-guide scale-120 ' } ,
107+ { text : 'Getting Started ' , link : '/vitepress-theme' , icon : 'i-tabler:arrow-guide ' } ,
87108 {
88- text : 'Components' ,
109+ text : 'Available Components' ,
89110 icon : 'i-nimiq:icons-lg-widget' ,
90111 items : [
91- { text : 'Code Block' , link : '/vitepress-theme/components/code-block/ ' } ,
92- { text : 'Card' , link : '/vitepress-theme/components/card/ ' } ,
93- { text : 'Large Card' , link : '/vitepress-theme/components/large-card/ ' } ,
94- { text : 'Grid' , link : '/vitepress-theme/components/grid/ ' } ,
95- { text : 'Callout & Blockquotes' , link : '/vitepress-theme/components/callouts-and-blockquotes/ ' } ,
96- { text : 'Vitepress Components' , link : '/vitepress-theme/components/vitepress-components/ ' } ,
112+ { text : 'Code Block' , link : '/vitepress-theme/components/code-block' } ,
113+ { text : 'Card' , link : '/vitepress-theme/components/card' } ,
114+ { text : 'Large Card' , link : '/vitepress-theme/components/large-card' } ,
115+ { text : 'Grid' , link : '/vitepress-theme/components/grid' } ,
116+ { text : 'Callout & Blockquotes' , link : '/vitepress-theme/components/callouts-and-blockquotes' } ,
117+ { text : 'Vitepress Components' , link : '/vitepress-theme/components/vitepress-components' } ,
97118 ] ,
98119 } ,
99120 ] ,
100121 } ,
101122 ] ,
102123 } ,
103124 {
104- subpath : '/ nimiq-icons' ,
125+ subpath : 'nimiq-icons' ,
105126 text : 'Nimiq Icons' ,
106127 icon : 'i-custom:nimiq-vitepress' ,
107- defaultPageLink : '/nimiq-icons/' ,
128+ defaultPageLink : '/nimiq-icons/explorer ' ,
108129 description : 'The Iconify Set for Nimiq' ,
109130 sidebar : [
110131 {
111132 items : [
112- { text : 'Getting started' , link : '/nimiq-icons/' , icon : 'i-tabler:arrow-guide scale-120' } ,
113- { text : 'Explorer' , link : '/nimiq-icons/explorer' , icon : 'i-tabler:telescope scale-120' } ,
133+ { text : 'Getting started' , link : '/nimiq-icons' , icon : 'i-tabler:arrow-guide ' } ,
134+ { text : 'Explorer' , link : '/nimiq-icons/explorer' , icon : 'i-tabler:telescope ' } ,
135+ { text : 'Figma' , link : 'https://www.figma.com/design/iyfVJafk18HfrYLXukpf0n/Nimiq-Icons' , icon : 'i-tabler:brand-figma ' } ,
114136 ] ,
115137 } ,
116138 ] ,
@@ -126,5 +148,10 @@ export default defineConfigWithTheme<NimiqVitepressThemeConfig>({
126148 } ,
127149 theme : 'vitesse-dark' ,
128150 languages : [ 'vue' , 'vue-html' , 'js' , 'ts' , 'markdown' ] ,
151+ codeTransformers : [
152+ transformerTwoslash ( {
153+ typesCache : createFileSystemTypesCache ( )
154+ } )
155+ ] ,
129156 } ,
130157} satisfies UserConfig < NimiqVitepressThemeConfig > )
0 commit comments