feat: add wiki mvp commands (#532)
This commit is contained in:
18
src/services/wiki/paths.ts
Normal file
18
src/services/wiki/paths.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { join } from 'path'
|
||||
import type { WikiPaths } from './types.js'
|
||||
|
||||
export const OPENCLAUDE_DIRNAME = '.openclaude'
|
||||
export const WIKI_DIRNAME = 'wiki'
|
||||
|
||||
export function getWikiPaths(cwd: string): WikiPaths {
|
||||
const root = join(cwd, OPENCLAUDE_DIRNAME, WIKI_DIRNAME)
|
||||
|
||||
return {
|
||||
root,
|
||||
pagesDir: join(root, 'pages'),
|
||||
sourcesDir: join(root, 'sources'),
|
||||
schemaFile: join(root, 'schema.md'),
|
||||
indexFile: join(root, 'index.md'),
|
||||
logFile: join(root, 'log.md'),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user