const path = require('path')

const templateDir = path.dirname(require.resolve('ink-docstrap/package.json'))

module.exports = {
  source: {
    include: [
      require.resolve('messageformat/src/messageformat.js'),
      require.resolve('messageformat-runtime/src/formatters.mjs'),
      require.resolve('messageformat-runtime/src/fmt/date.mjs'),
      require.resolve('messageformat-runtime/src/fmt/duration.mjs'),
      require.resolve('messageformat-runtime/src/fmt/number.mjs'),
      require.resolve('messageformat-runtime/src/fmt/time.mjs')
    ]
  },
  plugins: ['plugins/markdown'],
  opts: {
    destination: 'docs/',
    package: require.resolve('messageformat/package.json'),
    readme: require.resolve('messageformat/README.md'),
    template: path.resolve(templateDir, 'template'),
    tutorials: 'pages/'
  },
  templates: {
    disablePackagePath: true,
    github: 'messageformat/messageformat',
    favicon: [
      "<link rel='apple-touch-icon' sizes='180x180' href='logo/favicon-180.png'>",
      "<link rel='icon' type='image/png' sizes='32x32' href='logo/favicon-32.png'>"
    ],
    logoFile: 'logo/messageformat.svg',
    outputSourceFiles: true,
    search: false,
    systemName: 'messageformat',
    theme: 'flatly'
  }
};

const path = require('path')

const templateDir = path.dirname(require.resolve('ink-docstrap/package.json'))

module.exports = {
  source: {
    include: [
      require.resolve('messageformat/src/messageformat.js'),
      require.resolve('messageformat/src/compile-module.js'),
      require.resolve('messageformat-runtime/src/formatters.mjs'),
      require.resolve('messageformat-runtime/src/fmt/date.mjs'),
      require.resolve('messageformat-runtime/src/fmt/duration.mjs'),
      require.resolve('messageformat-runtime/src/fmt/number.mjs'),
      require.resolve('messageformat-runtime/src/fmt/time.mjs')
    ]
  },
  plugins: ['plugins/markdown'],
  opts: {
    destination: 'docs/',
    package: require.resolve('messageformat/package.json'),
    readme: require.resolve('messageformat/README.md'),
    template: path.resolve(templateDir, 'template'),
    tutorials: 'pages/'
  },
  templates: {
    disablePackagePath: true,
    github: 'messageformat/messageformat',
    favicon: [
      "<link rel='apple-touch-icon' sizes='180x180' href='logo/favicon-180.png'>",
      "<link rel='icon' type='image/png' sizes='32x32' href='logo/favicon-32.png'>"
    ],
    logoFile: 'logo/messageformat.svg',
    outputSourceFiles: true,
    search: false,
    systemName: 'messageformat',
    theme: 'flatly'
  }
};

Include messageformat/compile-module in API docs
fix(website): Include messageformat/compile-module in API docs
