Yuika/docs/.vuepress/config.js

28 lines
653 B
JavaScript
Raw Normal View History

2020-01-05 19:46:59 +00:00
const glob = require('glob');
const autoprefixer = require('autoprefixer');
const tailwindcss = require('tailwindcss');
2020-01-05 19:46:59 +00:00
let paths = function(path) {
return glob.sync('docs'+path+'/**/*.md').map(f => f.replace("docs","").replace("README.md",""));
}
2020-01-05 19:46:59 +00:00
let links = function(path) {
return [ path+'/', ...paths(path+'/*') ]
}
module.exports = {
title: "Yuika documentation",
description: "",
themeConfig: {
2020-01-05 19:46:59 +00:00
sidebar: [
{ title: 'Yuika', path: '/', },
{ title: 'Components', path: '/components/', children: links('/components') },
]
},
postcss: {
plugins: [
2020-01-05 19:46:59 +00:00
tailwindcss,
autoprefixer,
]
}
};