const { description } = require('../../package')

module.exports = {
  base: '/docs/',
  dest: 'public/docs',

  /**
   * Ref：https://v1.vuepress.vuejs.org/config/#title
   */
  title: 'Art Institute of Chicago API',
  /**
   * Ref：https://v1.vuepress.vuejs.org/config/#description
   */
  description: description,

  /**
   * Extra tags to be injected to the page HTML `<head>`
   *
   * ref：https://v1.vuepress.vuejs.org/config/#head
   */
  head: [
    ['meta', { name: 'theme-color', content: '#3eaf7c' }],
    ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
    ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
  ],

  /**
   * Theme configuration, here is the default theme configuration for VuePress.
   *
   * ref：https://v1.vuepress.vuejs.org/theme/default-theme-config.html
   */
  themeConfig: {
    repo: 'art-institute-of-chicago/data-aggregator',
    docsDir: 'docs',
    docsBranch: 'develop',
    editLinks: true,
    lastUpdated: true,
    sidebar: 'auto',
    logo: '/assets/logo.svg',
    nav: [
      {
        text: 'Endpoints',
        link: '/endpoints/',
      },
      {
        text: 'Fields',
        link: '/fields/'
      },
      {
        text: 'Tutorials',
        link: '/tutorials/'
      }
    ]
  },

  /**
   * Apply plugins，ref：https://v1.vuepress.vuejs.org/zh/plugin/
   */
  plugins: [
    '@vuepress/plugin-back-to-top',
    '@vuepress/plugin-medium-zoom',
    '@vuepress/search', {
        searchMaxSuggestions: 10
    }
  ]
}

const { description } = require('../../package')

module.exports = {
  base: '/docs/',
  dest: 'public/docs',

  /**
   * Ref：https://v1.vuepress.vuejs.org/config/#title
   */
  title: 'Art Institute of Chicago API',
  /**
   * Ref：https://v1.vuepress.vuejs.org/config/#description
   */
  description: description,

  /**
   * Extra tags to be injected to the page HTML `<head>`
   *
   * ref：https://v1.vuepress.vuejs.org/config/#head
   */
  head: [
    ['meta', { name: 'theme-color', content: '#3eaf7c' }],
    ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
    ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
  ],

  /**
   * Theme configuration, here is the default theme configuration for VuePress.
   *
   * ref：https://v1.vuepress.vuejs.org/theme/default-theme-config.html
   */
  themeConfig: {
    repo: 'art-institute-of-chicago/data-aggregator',
    docsDir: 'docs',
    docsBranch: 'develop',
    editLinks: true,
    lastUpdated: true,
    sidebar: 'auto',
    logo: '/assets/logo.svg',
    nav: [
      {
        text: 'Endpoints',
        link: '/endpoints/',
      },
      {
        text: 'Fields',
        link: '/fields/'
      },
      {
        text: 'Tutorials',
        link: '/tutorials/'
      },
      {
        text: 'swagger.json',
        link: 'https://api.artic.edu/api/v1/swagger.json'
      }
    ]
  },

  /**
   * Apply plugins，ref：https://v1.vuepress.vuejs.org/zh/plugin/
   */
  plugins: [
    '@vuepress/plugin-back-to-top',
    '@vuepress/plugin-medium-zoom',
    '@vuepress/search', {
        searchMaxSuggestions: 10
    }
  ]
}

Add link to swagger.json in header [WEB-1767]