@@ -2,133 +2,130 @@ import type { HeadConfig } from 'vitepress'
22import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
33import { withPwa } from '@vite-pwa/vitepress'
44import { defineConfig } from 'vitepress'
5-
65import viteConfig from './vite.config'
76
8- // https://vitepress.dev/reference/site-config
9-
107const analyticsHead : HeadConfig [ ] = [
11- [
12- 'script' ,
13- {
14- 'src' : 'https://cdn.usefathom.com/script.js' ,
15- 'data-site' : 'DCOEHMGA' ,
16- 'defer' : '' ,
17- } ,
18- ] ,
8+ [
9+ 'script' ,
10+ {
11+ 'src' : 'https://cdn.usefathom.com/script.js' ,
12+ 'data-site' : 'DCOEHMGA' ,
13+ 'defer' : '' ,
14+ } ,
15+ ] ,
1916]
2017
2118const nav = [
22- { text : 'News' , link : 'https://stacksjs.org/news' } ,
23- {
24- text : 'Changelog' ,
25- link : 'https://github.com/stacksjs/ts-starter/blob/main/CHANGELOG.md' ,
26- } ,
27- // { text: 'Blog', link: 'https://updates.ow3.org' },
19+ { text : 'News' , link : 'https://stacksjs.org/news' } ,
20+ {
21+ text : 'Changelog' ,
22+ link : 'https://github.com/stacksjs/ts-starter/blob/main/CHANGELOG.md' ,
23+ } ,
24+ // { text: 'Blog', link: 'https://updates.ow3.org' },
25+ {
26+ text : 'Resources' ,
27+ items : [
28+ { text : 'Team' , link : '/team' } ,
29+ { text : 'Sponsors' , link : '/sponsors' } ,
30+ { text : 'Partners' , link : '/partners' } ,
31+ { text : 'Postcardware' , link : '/postcardware' } ,
32+ { text : 'License' , link : '/license' } ,
2833 {
29- text : 'Resources' ,
3034 items : [
31- { text : 'Team' , link : '/team' } ,
32- { text : 'Sponsors' , link : '/sponsors' } ,
33- { text : 'Partners' , link : '/partners' } ,
34- { text : 'Postcardware' , link : '/postcardware' } ,
35- { text : 'License' , link : '/license' } ,
36- {
37- items : [
38- {
39- text : 'Awesome Stacks' ,
40- link : 'https://github.com/stacksjs/awesome-stacks' ,
41- } ,
42- {
43- text : 'Contributing' ,
44- link : 'https://github.com/stacksjs/stacks/blob/main/.github/CONTRIBUTING.md' ,
45- } ,
46- ] ,
47- } ,
35+ {
36+ text : 'Awesome Stacks' ,
37+ link : 'https://github.com/stacksjs/awesome-stacks' ,
38+ } ,
39+ {
40+ text : 'Contributing' ,
41+ link : 'https://github.com/stacksjs/stacks/blob/main/.github/CONTRIBUTING.md' ,
42+ } ,
4843 ] ,
4944 } ,
45+ ] ,
46+ } ,
5047]
5148
5249const sidebar = [
53- {
54- text : 'Get Started' ,
55- items : [
56- { text : 'Intro' , link : '/intro' } ,
57- { text : 'Install' , link : '/install' } ,
58- { text : 'Usage' , link : '/usage' } ,
59- { text : 'Config' , link : '/config' } ,
60- ] ,
61- } ,
62- { text : 'Showcase' , link : '/Showcase' } ,
50+ {
51+ text : 'Get Started' ,
52+ items : [
53+ { text : 'Intro' , link : '/intro' } ,
54+ { text : 'Install' , link : '/install' } ,
55+ { text : 'Usage' , link : '/usage' } ,
56+ { text : 'Config' , link : '/config' } ,
57+ ] ,
58+ } ,
59+ { text : 'Showcase' , link : '/Showcase' } ,
6360]
6461const description = 'A TypeScript Starter Kit. For a better Development Experience.'
6562const title = 'ts-starter | A TypeScript Starter Kit. For a better Development Experience.'
6663
6764export default withPwa (
68- defineConfig ( {
69- lang : 'en-US' ,
70- title : 'ts-starter' ,
71- description,
72- metaChunk : true ,
73- cleanUrls : true ,
74- lastUpdated : true ,
75-
76- head : [
77- [ 'link' , { rel : 'icon' , type : 'image/svg+xml' , href : './images/logo-mini.svg' } ] ,
78- [ 'link' , { rel : 'icon' , type : 'image/png' , href : './images/logo.png' } ] ,
79- [ 'meta' , { name : 'theme-color' , content : '#0A0ABC' } ] ,
80- [ 'meta' , { name : 'title' , content : title } ] ,
81- [ 'meta' , { name : 'description' , content : description } ] ,
82- [ 'meta' , { name : 'author' , content : 'Stacks.js, Inc.' } ] ,
83- [ 'meta' , {
84- name : 'tags' ,
85- content : 'ts-starter, stacksjs, reverse proxy, modern, lightweight, zero-config, local development' ,
86- } ] ,
87-
88- [ 'meta' , { property : 'og:type' , content : 'website' } ] ,
89- [ 'meta' , { property : 'og:locale' , content : 'en' } ] ,
90- [ 'meta' , { property : 'og:title' , content : title } ] ,
91- [ 'meta' , { property : 'og:description' , content : description } ] ,
92-
93- [ 'meta' , { property : 'og:site_name' , content : 'ts-starter' } ] ,
94- [ 'meta' , { property : 'og:image' , content : './images/og-image.jpg' } ] ,
95- [ 'meta' , { property : 'og:url' , content : 'https://reverse-proxy.sh/' } ] ,
96- // ['script', { 'src': 'https://cdn.usefathom.com/script.js', 'data-site': '', 'data-spa': 'auto', 'defer': '' }],
97- ...analyticsHead ,
98- ] ,
65+ defineConfig ( {
66+ lang : 'en-US' ,
67+ title : 'ts-starter' ,
68+ description,
69+ metaChunk : true ,
70+ cleanUrls : true ,
71+ lastUpdated : true ,
72+
73+ head : [
74+ [ 'link' , { rel : 'icon' , type : 'image/svg+xml' , href : './images/logo-mini.svg' } ] ,
75+ [ 'link' , { rel : 'icon' , type : 'image/png' , href : './images/logo.png' } ] ,
76+ [ 'meta' , { name : 'theme-color' , content : '#0A0ABC' } ] ,
77+ [ 'meta' , { name : 'title' , content : title } ] ,
78+ [ 'meta' , { name : 'description' , content : description } ] ,
79+ [ 'meta' , { name : 'author' , content : 'Stacks.js, Inc.' } ] ,
80+ [ 'meta' , {
81+ name : 'tags' ,
82+ content : 'ts-starter, stacksjs, reverse proxy, modern, lightweight, zero-config, local development' ,
83+ } ] ,
84+
85+ [ 'meta' , { property : 'og:type' , content : 'website' } ] ,
86+ [ 'meta' , { property : 'og:locale' , content : 'en' } ] ,
87+ [ 'meta' , { property : 'og:title' , content : title } ] ,
88+ [ 'meta' , { property : 'og:description' , content : description } ] ,
89+
90+ [ 'meta' , { property : 'og:site_name' , content : 'ts-starter' } ] ,
91+ [ 'meta' , { property : 'og:image' , content : './images/og-image.jpg' } ] ,
92+ [ 'meta' , { property : 'og:url' , content : 'https://reverse-proxy.sh/' } ] ,
93+ // ['script', { 'src': 'https://cdn.usefathom.com/script.js', 'data-site': '', 'data-spa': 'auto', 'defer': '' }],
94+ ...analyticsHead ,
95+ ] ,
9996
100- themeConfig : {
101- search : {
102- provider : 'local' ,
103- } ,
104- logo : {
105- light : './images/logo-transparent.svg' ,
106- dark : './images/logo-white-transparent.svg' ,
107- } ,
97+ themeConfig : {
98+ search : {
99+ provider : 'local' ,
100+ } ,
101+ logo : {
102+ light : './images/logo-transparent.svg' ,
103+ dark : './images/logo-white-transparent.svg' ,
104+ } ,
108105
109- nav,
110- sidebar,
106+ nav,
107+ sidebar,
111108
112- editLink : {
113- pattern : 'https://github.com/stacksjs/stacks/edit/main/docs/docs/:path' ,
114- text : 'Edit this page on GitHub' ,
115- } ,
109+ editLink : {
110+ pattern : 'https://github.com/stacksjs/stacks/edit/main/docs/docs/:path' ,
111+ text : 'Edit this page on GitHub' ,
112+ } ,
116113
117- footer : {
118- message : 'Released under the MIT License.' ,
119- copyright : 'Copyright © 2025-present Stacks.js, Inc.' ,
120- } ,
114+ footer : {
115+ message : 'Released under the MIT License.' ,
116+ copyright : 'Copyright © 2025-present Stacks.js, Inc.' ,
117+ } ,
121118
122- socialLinks : [
123- { icon : 'twitter' , link : 'https://twitter.com/stacksjs' } ,
124- { icon : 'bluesky' , link : 'https://bsky.app/profile/chrisbreuer.dev' } ,
125- { icon : 'github' , link : 'https://github.com/stacksjs/ts-starter' } ,
126- { icon : 'discord' , link : 'https://discord.gg/stacksjs' } ,
127- ] ,
119+ socialLinks : [
120+ { icon : 'twitter' , link : 'https://twitter.com/stacksjs' } ,
121+ { icon : 'bluesky' , link : 'https://bsky.app/profile/chrisbreuer.dev' } ,
122+ { icon : 'github' , link : 'https://github.com/stacksjs/ts-starter' } ,
123+ { icon : 'discord' , link : 'https://discord.gg/stacksjs' } ,
124+ ] ,
128125
129- // algolia: services.algolia,
126+ // algolia: services.algolia,
130127
131- // carbonAds: {
128+ // carbonAds: {
132129 // code: '',
133130 // placement: '',
134131 // },
@@ -147,10 +144,10 @@ export default withPwa(
147144 } ,
148145
149146 codeTransformers : [
150- transformerTwoslash ( ) ,
147+ transformerTwoslash ( ) ,
151148 ] ,
152149 } ,
153150
154151 vite : viteConfig ,
155152 } ) ,
156- )
153+ )
0 commit comments