File tree Expand file tree Collapse file tree 4 files changed +2274
-1006
lines changed Expand file tree Collapse file tree 4 files changed +2274
-1006
lines changed Original file line number Diff line number Diff line change 1- import { defineGhPagesDocConfig } from "sborshik/vitepress/define-gh-pages-doc-config" ;
1+ import { defineDocsVitepressConfig } from "sborshik/vitepress" ;
2+ import { ConfigsManager } from "sborshik/utils/configs-manager" ;
23
3- import path from 'path' ;
4- import fs from 'fs' ;
4+ const configs = ConfigsManager . create ( "../" )
55
6- const pckgJson = JSON . parse (
7- fs . readFileSync (
8- path . resolve ( __dirname , '../../package.json' ) ,
9- { encoding : 'utf-8' } ,
10- ) ,
11- ) ;
12-
13- export default defineGhPagesDocConfig ( pckgJson , {
6+ export default defineDocsVitepressConfig ( configs , {
147 createdYear :'2025' ,
158 themeConfig : {
169 nav : [
1710 { text : 'Home' , link : '/' } ,
1811 { text : 'Introduction' , link : '/introduction/getting-started' } ,
1912 {
20- text : `${ pckgJson . version } ` ,
13+ text : `${ configs . package . version } ` ,
2114 items : [
2215 {
2316 items : [
2417 {
25- text : `${ pckgJson . version } ` ,
26- link : `https://github.com/${ pckgJson . author } /${ pckgJson . name } /releases/tag/${ pckgJson . version } ` ,
18+ text : `${ configs . package . version } ` ,
19+ link : `https://github.com/${ configs . package . author } /${ configs . package . name } /releases/tag/${ configs . package . version } ` ,
2720 } ,
2821 ] ,
2922 } ,
Original file line number Diff line number Diff line change 33 "type" : " module" ,
44 "devDependencies" : {
55 "@iconify-json/logos" : " ^1.1.44" ,
6- "@unocss/preset-icons" : " ^0.61.9" ,
7- "sborshik" : " ^1.0.25" ,
8- "unocss" : " ^0.61.9" ,
9- "vite" : " ^5.3.1" ,
6+ "sborshik" : " ^1.8.0" ,
107 "vitepress" : " ^1.6.4"
118 },
129 "scripts" : {
You can’t perform that action at this time.
0 commit comments