Tools descriptions
we automatically require the directory file.
const files = require.context("@md/", false, /\.md$/);
const modules = {};
files.keys().forEach(key => {
modules[key.replace(/\.\//, "/").replace(/(\.md)/g, "")] = files(key).default;
});
Url => File Name
/gomoku => gomoku.md
Copyright (c) Terry Cai. Licensed under the MIT license.