The core components of Docfy, a documentation site builder.
- Node.js v10 or above
npm install @docfy/core
# or
yarn add @docfy/core
const Docfy = require('@docfy/core').default;
const path = require('path');
new Docfy()
.run([
{
root: path.join(__dirname, 'docs'),
urlPrefix: 'docs',
pattern: '**/*.md',
},
])
.then(result => {
console.log(result);
});
Refer to the documentation site.
This project is licensed under the MIT License.