8adc2522c6
Type the docs extractor's package.json parsing as unknown; comment the Vite plugin version-skew cast; wire the tests preset; site/architecture WIP.
27 lines
556 B
TypeScript
27 lines
556 B
TypeScript
import { defineCollection, defineContentConfig } from '@nuxt/content';
|
|
|
|
const repositories = [
|
|
'../configs/tsconfig',
|
|
'../core/stdlib',
|
|
'../core/platform',
|
|
'../infra/renovate',
|
|
'../web/vue',
|
|
];
|
|
|
|
export default defineContentConfig({
|
|
collections: repositories.reduce((acc, repo) => {
|
|
const name = repo.split('/').pop();
|
|
|
|
acc[name] = defineCollection({
|
|
source: {
|
|
include: `**/*.md`,
|
|
exclude: ['**/node_modules/**', '**/dist/**'],
|
|
cwd: repo,
|
|
},
|
|
type: 'page',
|
|
});
|
|
|
|
return acc;
|
|
}, {}),
|
|
});
|