2020-01-05 19:46:59 +00:00
|
|
|
const glob = require('glob');
|
2020-01-04 19:37:44 +00:00
|
|
|
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-04 19:37:44 +00:00
|
|
|
|
2020-01-05 19:46:59 +00:00
|
|
|
let links = function(path) {
|
|
|
|
return [ path+'/', ...paths(path+'/*') ]
|
|
|
|
}
|
2020-01-04 19:37:44 +00:00
|
|
|
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') },
|
|
|
|
]
|
2020-01-04 19:37:44 +00:00
|
|
|
},
|
|
|
|
postcss: {
|
|
|
|
plugins: [
|
2020-01-05 19:46:59 +00:00
|
|
|
tailwindcss,
|
|
|
|
autoprefixer,
|
2020-01-04 19:37:44 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|