text: /**
   * Implement Gatsby's Node APIs in this file.
   *
   * See: https://www.gatsbyjs.org/docs/node-apis/
   */
  
  // You can delete this file if you're not using it
  
  // .env helper
  require('dotenv').config({
      path: `.env.${process.env.NODE_ENV}`,
  });
  
  // Static Site Markdown Helper
  
  const path = require('path');
  exports.createPages = ({ boundActionCreators, graphql }) => {
      const { createPage } = boundActionCreators;
      const docTemplate = path.resolve('src/templates/docs-template.js');
      return graphql(`
          {
              allMarkdownRemark(
                  sort: { order: DESC, fields: [frontmatter___title] }
                  limit: 1000
              ) {
                  edges {
                      node {
                          excerpt(pruneLength: 250)
                          html
                          id
                          frontmatter {
                              path
                              title
                          }
                      }
                  }
              }
          }
      `).then(result => {
          if (result.errors) {
              return Promise.reject(result.errors);
          }
          result.data.allMarkdownRemark.edges.forEach(({ node }) => {
              createPage({
                  path: node.frontmatter.path,
                  component: docTemplate,
                  context: {},
              });
          });
      });
  };
  