docs: function buildIndex() {
      var docsmd = "",
        docsjson = {
          "Library": [
            "Core"
          ],
          "Utility": [],
          "Widget": []
        },
        demosmd = '';
  
      // Docs
      docsmd += '## Library';
      docsmd += '\n\n';
      docsmd += '* [Core](core.md)';
      docsmd += '\n';
      for (var i in allDocs.grid) {
        var d = allDocs.grid[i];
        docsmd += '* [' + d.name + '](' + d.name.toLowerCase().replace(/ /g, "") + '.md)';
        docsmd += '\n';
  
        docsjson["Library"].push(d.name);
      }
      docsmd += '\n';
      docsmd += '## Utility';
      docsmd += '\n\n';
      for (var i in allDocs.utility) {
        var d = allDocs.utility[i];
        docsmd += '* [' + d.name + '](' + d.name.toLowerCase().replace(/ /g, "") + '.md)';
        docsmd += '\n';
  
        docsjson["Utility"].push(d.name);
      }
      docsmd += '\n';
      docsmd += '## Widget';
      docsmd += '\n\n';
      for (var i in allDocs.widget) {
        var d = allDocs.widget[i];
        docsmd += '* [' + d.name + '](' + d.name.toLowerCase().replace(/ /g, "") + '.md)';
        docsmd += '\n';
  
        docsjson["Widget"].push(d.name);
      }
  
      fs.write("docs/README.md", '# Documentation \n\n' + docsmd);
  
      fs.write("docs/json/index.json", JSON.stringify(docsjson));
  
      // Demos
      demosmd += '## Library';
      demosmd += '\n\n';
      // demosmd += '* [Core](components/core.html)';
      // demosmd += '\n';
      for (var i in allDocs.grid) {
        var d = allDocs.grid[i];
  
        if (d.demo && d.demo.toLowerCase().indexOf("no demo") < 0) {
          demosmd += '* [' + d.name + '](components/' + d.name.toLowerCase().replace(/ /g, "") + '.html)';
          demosmd += '\n';
        }
      }
      demosmd += '\n';
      demosmd += '## Utility';
      demosmd += '\n\n';
      for (var i in allDocs.utility) {
        var d = allDocs.utility[i];
  
        if (d.demo.toLowerCase().indexOf("no demo") < 0) {
          demosmd += '* [' + d.name + '](components/' + d.name.toLowerCase().replace(/ /g, "") + '.html)';
          demosmd += '\n';
        }
      }
      demosmd += '\n';
      demosmd += '## Widget';
      demosmd += '\n\n';
      for (var i in allDocs.widget) {
        var d = allDocs.widget[i];
  
        if (d.demo.toLowerCase().indexOf("no demo") < 0) {
          demosmd += '* [' + d.name + '](components/' + d.name.toLowerCase().replace(/ /g, "") + '.html)';
          demosmd += '\n';
        }
      }
  
  /*
      demosmd += '\n';
      demosmd += '## Themes';
      demosmd += '\n\n';
      demosmd += '* [Light](themes/light.html)';
      demosmd += '\n';
  */
  
      var template = {
          template: "content.html",
          title: "Demos",
          asset_root: "",
          year: new Date().getFullYear()
        };
  
      fs.write("demo/_src/pages/index.md", JSON.stringify(template) + '\n\n# Demos \n\n' + demosmd);
  
      // // Tool bar
      //
      // var toolbar = '';
      //
      // toolbar += '<div class="demo_bar">';
      // toolbar += '<div class="demo_field">';
      // toolbar += '<span class="demo_label">Component</span>';
      // toolbar += '<div class="demo_select demo_select_wide">';
      // toolbar += '<select class="js-component_select" data-dropdown-options=\'{"links":true}\'>';
      // toolbar += '<option value="">Select</option>';
      //
      // for (var i in allDocs.grid) {
      //   var d = allDocs.grid[i];
      //
      //   if (d.demo.toLowerCase().indexOf("no demo") < 0) {
      //     toolbar += '<option value="{{= it.asset_root }}components/' + d.name.toLowerCase().replace(/ /g, "") + '.html">' + d.name + '</option>';
      //   }
      // }
      // for (var i in allDocs.utility) {
      //   var d = allDocs.utility[i];
      //
      //   if (d.demo.toLowerCase().indexOf("no demo") < 0) {
      //     toolbar += '<option value="{{= it.asset_root }}components/' + d.name.toLowerCase().replace(/ /g, "") + '.html">' + d.name + '</option>';
      //   }
      // }
      // for (var i in allDocs.widget) {
      //   var d = allDocs.widget[i];
      //
      //   if (d.demo.toLowerCase().indexOf("no demo") < 0) {
      //     toolbar += '<option value="{{= it.asset_root }}components/' + d.name.toLowerCase().replace(/ /g, "") + '.html">' + d.name + '</option>';
      //   }
      // }
      //
      // toolbar += '</select>';
      // toolbar += '</div>';
      // toolbar += '</div>';
      // toolbar += '<div class="demo_field">';
      // toolbar += '<span class="demo_label">Theme</span>';
      // toolbar += '<div class="demo_select">';
      // toolbar += '<select class="js-theme_select">';
      //
      // toolbar += '<option value="fs-light">Light</option>';
      // toolbar += '<option value="">No Theme</option>';
      //
      // toolbar += '</select>';
      // toolbar += '</div>';
      // toolbar += '</div>';
      // toolbar += '</div>';
      //
      // fs.write("demo/_src/_templates/partials/_bar.html", toolbar);
    }