11import { defineConfig } from 'vitepress' ;
22import tabsPlugin from '@red-asuka/vitepress-plugin-tabs' ;
33import llmstxt from 'vitepress-plugin-llms' ;
4+ import { genFeed } from './genFeed' ;
5+ import { getVersion } from './version' ;
6+
7+ const version = getVersion ( ) ;
48
59// https://vitepress.dev/reference/site-config
610export default defineConfig ( {
@@ -14,8 +18,22 @@ export default defineConfig({
1418 nav : [
1519 { text : 'Guide' , link : '/introduction/getting-started' } ,
1620 { text : 'Theme Editor' , link : '/theme-editor/overview' } ,
21+ { text : 'Blog' , link : '/blog/' } ,
1722 { text : 'Demo' , link : 'https://visual-debut-demo.bagistoplus.com' } ,
1823 { text : 'Sections Pack' , link : 'https://bagistosectionspro.com/?ref=doc' } ,
24+ {
25+ text : version ,
26+ items : [
27+ {
28+ text : 'v1 Docs' ,
29+ link : 'https://visual-v1.bagistoplus.com' ,
30+ } ,
31+ {
32+ text : 'Changelog' ,
33+ link : 'https://github.com/bagistoplus/visual/blob/main/CHANGELOG.md' ,
34+ } ,
35+ ] ,
36+ } ,
1937 // { text: 'GitHub', link: 'https://github.com/bagistoplus/visual' },
2038 ] ,
2139
@@ -40,20 +58,26 @@ export default defineConfig({
4058 collapsed : true ,
4159 items : [
4260 { text : 'Overview' , link : '/core-concepts/templates/overview' } ,
43- { text : 'JSON Template' , link : '/core-concepts/templates/json-template' } ,
61+ { text : 'JSON & YAML' , link : '/core-concepts/templates/json-yaml' } ,
62+ { text : 'PHP Templates' , link : '/core-concepts/templates/php-templates' } ,
4463 { text : 'Available templates' , link : '/core-concepts/templates/available' } ,
4564 ] ,
4665 } ,
4766 { text : 'Sections' , link : '/core-concepts/sections' } ,
67+ { text : 'Regions' , link : '/core-concepts/regions' } ,
68+ { text : 'Blocks' , link : '/core-concepts/blocks' } ,
69+ { text : 'Presets' , link : '/core-concepts/presets' } ,
4870 {
4971 text : 'Settings' ,
5072 collapsed : true ,
5173 items : [
5274 { text : 'Overview' , link : '/core-concepts/settings/overview' } ,
5375 { text : 'Setting types' , link : '/core-concepts/settings/types' } ,
5476 { text : 'Theme settings' , link : '/core-concepts/settings/theme-settings' } ,
77+ { text : 'Conditional visibility' , link : '/core-concepts/settings/conditional-visibility' } ,
5578 ] ,
5679 } ,
80+ { text : 'Dynamic Sources' , link : '/core-concepts/dynamic-sources' } ,
5781 ] ,
5882 } ,
5983 {
@@ -69,23 +93,30 @@ export default defineConfig({
6993 { text : 'Overview' , link : '/building-theme/adding-sections/overview' } ,
7094 { text : 'Creating a section' , link : '/building-theme/adding-sections/creating-section' } ,
7195 { text : 'Section attributes' , link : '/building-theme/adding-sections/section-attributes' } ,
72- {
73- text : 'Defining settings and blocks' ,
74- link : '/building-theme/adding-sections/defining-section-schema' ,
75- } ,
7696 { text : 'Writing the section view' , link : '/building-theme/adding-sections/writing-section-view' } ,
7797 {
7898 text : 'Using section in templates' ,
7999 link : '/building-theme/adding-sections/using-section' ,
80100 } ,
81- { text : 'Integrating with the editor' , link : '/building-theme/adding-sections/integrating-editor' } ,
101+ ] ,
102+ } ,
103+ {
104+ text : 'Adding Blocks' ,
105+ collapsed : true ,
106+ items : [
107+ { text : 'Overview' , link : '/building-theme/adding-blocks/overview' } ,
108+ { text : 'Creating a block' , link : '/building-theme/adding-blocks/creating-block' } ,
109+ { text : 'Block schema' , link : '/building-theme/adding-blocks/block-schema' } ,
110+ { text : 'Static blocks' , link : '/building-theme/adding-blocks/static-blocks' } ,
111+ { text : 'Container blocks' , link : '/building-theme/adding-blocks/container-blocks' } ,
82112 ] ,
83113 } ,
84114 {
85115 text : 'Best practices' ,
86116 collapsed : true ,
87117 items : [
88118 { text : 'Overview' , link : '/building-theme/best-practices/overview' } ,
119+ { text : 'Integrating with the editor' , link : '/building-theme/best-practices/integrating-editor' } ,
89120 { text : 'Styling and Color System' , link : '/building-theme/best-practices/styling' } ,
90121 { text : 'Accessibility' , link : '/building-theme/best-practices/accessibility' } ,
91122 { text : 'Performance' , link : '/building-theme/best-practices/performance' } ,
@@ -153,4 +184,6 @@ export default defineConfig({
153184 sitemap : {
154185 hostname : 'https://visual.bagistoplus.com' ,
155186 } ,
187+
188+ buildEnd : genFeed ,
156189} ) ;
0 commit comments