This project is used to build the Dev-Mind websites. The aim is to use handlebars as template solution and asciidoctor.js to writes dynamic pages as a blog. Several others extensions help to generate a rss file, a sitemap file…
This module is made to be used in a GulpFile. You can read the gulpfile.js used to test the extensions or you can see the gulpfile used on the main Dev-Mind website (https://github.com/Dev-Mind/dev-mind.fr).
To install this module use for example with yarn
yarn add https://github.com/Dev-Mind/devmind-website.git#X.Y.Z
Find the good version X.Y.Z on https://github.com/Dev-Mind/devmind-website/releases
To import the module in your gulpfile you can use
const website = require('devmind-website')();
You can also send parameters. Below I use the default values
const WEBSITE_PARAMS = {
path : '../../../',
metadata : {
rss: 'src/metadata/rss.json',
blog: 'src/metadata/blog.json',
html: 'src/metadata/html.json',
sitemap: 'src/metadata/sitemap.json'
}
};
const website = require('./index')(WEBSITE_PARAMS);