const buildBaseCss = require(`./_build-base-css.js`);
const buildBaseHtml = require(`./_build-base-html.js`);
const buildPackageCss = require(`./_build-package-css.js`);
const buildPackageHtml = require(`./_build-package-html.js`);
const getDirectories = require(`./_get-directories.js`);

const packages = getDirectories(`avalanche/packages`);

const data = {};

buildBaseHtml({});
buildBaseCss();

packages.forEach((packageName) => {
  data.title = packageName;
  data.css = `<link rel="stylesheet" href="css/index.css">`;
  data.scripts = ``;

  buildPackageHtml(packageName, data);
  buildPackageCss(packageName);
});

const buildBaseCss = require(`./_build-base-css.js`);
const buildBaseHtml = require(`./_build-base-html.js`);
const buildPackageCss = require(`./_build-package-css.js`);
const buildPackageHtml = require(`./_build-package-html.js`);
const getDirectories = require(`./_get-directories.js`);

const packages = getDirectories(`avalanche/packages`);

const data = {
  css: `<link rel="stylesheet" href="/base/css/global.css">`
};

buildBaseHtml(data);
buildBaseCss();

packages.forEach((packageName) => {
  data.title = packageName;
  data.css += `<link rel="stylesheet" href="css/index.css">`;
  data.scripts = ``;

  buildPackageHtml(packageName, data);
  buildPackageCss(packageName);
});

Add global.css file to pages by default
Add global.css file to pages by default
