doxicity
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-beta.6 • Public • Published

Doxicity 📗

Doxicity is a static site generator that turns markdown files into an HTML website. You can configure it, add data, layouts, partials, plugins, and use Handlebars {{expressions}} to do amazing things.

Designed in New Hampshire by Cory LaViska.


Installation

To install Doxicity, run the following command. This assumes you have Node.js installed.

npm i doxicity

Usage

Here's a quick example to get you started with Doxicity.

import Doxicity from 'doxicity';

const __dirname = new URL('.', import.meta.url).pathname;

// Configure it
const dox = new Doxicity({
  source: Doxicity.resolve(__dirname),
  destination: Doxicity.resolve(__dirname, '_site'),
  baseUrl: 'https://example.com/'
  // more options here...
});

// Publish it
dox
  .publish()
  .then(result => {
    console.log(
      `Pages published: ${result.pages.length}\n` +
        `Assets copied: ${result.assets.length}\n` +
        `Duration: ${result.timeToPublish}ms\n`
    );
  })
  .catch(err => {
    console.clear();
    console.log(err.message);
  });

For more details, please see the documentation.

Package Sidebar

Install

npm i doxicity

Weekly Downloads

0

Version

2.0.0-beta.6

License

MIT

Unpacked Size

129 kB

Total Files

87

Last publish

Collaborators

  • claviska