mirror of
https://github.com/directus/directus.git
synced 2026-01-23 18:18:03 -05:00
* Allow formatted value display for numbers * Move the docs website into monorepo * Fix build * Tweak docs build setup * Fix tips, pull in images * Add syntax highlighting to docs * Restructure nav, add divider * Fix tips formatting * Add prettier config * Add editorconfig
12 lines
303 B
JavaScript
12 lines
303 B
JavaScript
const dirTree = require('directory-tree');
|
|
const fse = require('fs-extra');
|
|
|
|
console.log('Building docs...');
|
|
const tree = dirTree('.', {
|
|
extensions: /\.md$/,
|
|
exclude: /(node_modules|.vuepress|.vscode|dist)/,
|
|
normalizePath: true,
|
|
});
|
|
fse.writeJSONSync('index.json', tree);
|
|
console.log('Built docs');
|