text: /**
   * Copyright Zendesk, Inc.
   *
   * Use of this source code is governed under the Apache License, Version 2.0
   * found at http://www.apache.org/licenses/LICENSE-2.0.
   */
  
  const path = require('path');
  const reactDocgenTypescript = require('react-docgen-typescript');
  const reactDocgen = require('react-docgen');
  
  /**
   * Package specific styleguide configuration
   */
  module.exports = {
    propsParser: reactDocgenTypescript.withCustomConfig(
      path.resolve(__dirname, '../../tsconfig.json'),
      {
        propFilter: props => {
          return props.parent.fileName.indexOf('node_modules') === -1;
        }
      }
    ).parse,
    resolver: reactDocgen.resolver.findAllComponentDefinitions,
    sections: [
      {
        name: '',
        content: '../../packages/theming/README.md'
      },
      {
        name: 'Examples',
        sections: [
          {
            name: 'ThemeProvider',
            content: '../../packages/theming/examples/theme-provider.md'
          },
          {
            name: 'PALETTE',
            content: '../../packages/theming/examples/palette.md'
          },
          {
            name: 'DEFAULT_THEME',
            content: '../../packages/theming/examples/default-theme.md'
          }
        ]
      },
      {
        name: 'Elements',
        components: '../../packages/theming/src/elements/[A-Z]*.{ts,tsx}'
      },
      {
        name: 'Utils',
        components: '../../packages/theming/src/utils/*.{ts,tsx}'
      }
    ]
  };
  