mirror of
https://github.com/gromlab-ru/slm-design.git
synced 2026-08-22 07:30:16 +03:00
15 lines
400 B
TypeScript
15 lines
400 B
TypeScript
|
|
import { fileURLToPath } from 'node:url'
|
||
|
|
import { defineLoader } from 'vitepress'
|
||
|
|
import { collectRules } from '../../scripts/lib/specification.mjs'
|
||
|
|
|
||
|
|
const specificationRoot = fileURLToPath(
|
||
|
|
new URL('../../docs/ru/specification/', import.meta.url),
|
||
|
|
)
|
||
|
|
|
||
|
|
export default defineLoader({
|
||
|
|
watch: '../../docs/ru/specification/**/*.md',
|
||
|
|
async load() {
|
||
|
|
return collectRules(specificationRoot)
|
||
|
|
},
|
||
|
|
})
|