File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ import { fileURLToPath } from 'url'
99const __filename = fileURLToPath ( import . meta. url ) ;
1010const __dirname = dirname ( __filename ) ;
1111
12- const local_conf_path = __dirname + '/../.vitepress/local.js'
13-
1412export function normalizeArrayData ( data , keys ) {
1513 for ( const [ k , v ] of Object . entries ( data ) ) {
1614 if ( v ) {
@@ -28,19 +26,6 @@ export function normalizeArrayData(data, keys) {
2826 return data
2927}
3028
31- let local_conf = null
32- async function loadLocalConf ( ) {
33- if ( local_conf === null ) {
34- if ( fs . existsSync ( local_conf_path ) ) {
35- local_conf = await import ( local_conf_path )
36- } else {
37- local_conf = false
38- }
39- }
40-
41- return local_conf
42- }
43-
4429export async function loadData ( id ) {
4530 const path = globalThis . VITEPRESS_CONFIG . userConfig . themeConfig . dovecot ?. data_paths ?. [ id ]
4631 ?? ( '../data/' + id + '.js' )
You can’t perform that action at this time.
0 commit comments