text: const ogprefix = 'og: http://ogp.me/ns#'
  module.exports = {
    title: 'MeiliSearch Documentation v0.23',
    description: 'Open source Instant Search Engine',
    themeConfig: {
      repo: 'meilisearch/MeiliSearch',
      docsRepo: 'meilisearch/documentation',
      editLinks: true,
      lastUpdated: 'Last Updated',
      logo: '/logo.png',
      sidebarDepth: 1,
      smoothScroll: true,
      nav: [
        { text: 'Learn', link: '/learn/' },
        { text: 'Create', link: '/create/how_to/' },
        { text: 'Reference', link: '/reference/' },
        {
          text: 'Resources',
          items: [
            { text: 'FAQ', link: '/faq' },
            { text: 'Open API', link: '/open-api-readme' },
            {
              text: 'SDKs',
              items: [
                { text: '.NET', link: 'https://github.com/meilisearch/meilisearch-dotnet' },
                { text: 'Dart', link: 'https://github.com/meilisearch/meilisearch-dart' },
                { text: 'Golang', link: 'https://github.com/meilisearch/meilisearch-go' },
                { text: 'Java', link: 'https://github.com/meilisearch/meilisearch-java' },
                { text: 'JavaScript', link: 'https://github.com/meilisearch/meilisearch-js' },
                { text: 'PHP', link: 'https://github.com/meilisearch/meilisearch-php' },
                { text: 'Python', link: 'https://github.com/meilisearch/meilisearch-python' },
                { text: 'Ruby', link: 'https://github.com/meilisearch/meilisearch-ruby' },
                { text: 'Rust', link: 'https://github.com/meilisearch/meilisearch-rust' },
                { text: 'Swift', link: 'https://github.com/meilisearch/meilisearch-swift' },
              ],
            },
          ],
        },
        { text: 'Slack', link: 'https://slack.meilisearch.com' },
      ],
      sidebar: {
        '/learn/': [
          {
            title: '🔎 What is MeiliSearch?',
            path: '/learn/what_is_meilisearch/',
            collapsable: false,
            sidebarDepth: 0,
            children: [
              '/learn/what_is_meilisearch/features',
              '/learn/what_is_meilisearch/philosophy',
              '/learn/what_is_meilisearch/sdks',
              '/learn/what_is_meilisearch/comparison_to_alternatives',
              '/learn/what_is_meilisearch/telemetry',
              '/learn/what_is_meilisearch/contact',
            ],
          },
          {
            title: '🚀 Getting started',
            path: '/learn/getting_started/',
            collapsable: false,
            children: [
              '/learn/getting_started/installation',
              '/learn/getting_started/quick_start',
              '/learn/getting_started/whats_next',
            ],
          },
          {
            title: '💡 Core concepts',
            path: '/learn/core_concepts/',
            collapsable: false,
            children: [
              '/learn/core_concepts/documents',
              '/learn/core_concepts/indexes',
              '/learn/core_concepts/relevancy',
            ],
          },
          {
            title: '📚 Advanced topics',
            path: '/learn/advanced/',
            collapsable: false,
            children: [
              '/learn/advanced/asynchronous_updates',
              '/learn/advanced/snapshots_vs_dumps',
            ],
          },
          {
            title: '👐 Contributing',
            path: '/learn/contributing/',
            collapsable: false,
            children: [
              {
                title: 'Contributing to the docs',
                path: '/learn/contributing/contributing_to_docs',
              },
            ],
          },
        ],
        '/reference/': [
          {
            title: '⭐ Feature references',
            path: '/reference/features/',
            collapsable: false,
            children: [
              '/reference/features/authentication',
              '/reference/features/configuration',
              '/reference/features/distinct',
              '/reference/features/dumps',
              {
                title: 'Errors',
                path: '/errors/',
              },
              '/reference/features/field_properties',
              '/reference/features/filtering_and_faceted_search',
              '/reference/features/geosearch',
              '/reference/features/known_limitations',
              '/reference/features/language',
              '/reference/features/search_parameters',
              '/reference/features/settings',
              '/reference/features/snapshots',
              '/reference/features/sorting',
              '/reference/features/stop_words',
              '/reference/features/synonyms',
              '/reference/features/web_interface',
            ],
          },
          {
            title: '📒 API references',
            path: '/reference/api/',
            collapsable: false,
            children: [
              '/reference/api/indexes',
              '/reference/api/documents',
              '/reference/api/search',
              '/reference/api/updates',
              '/reference/api/keys',
              {
                title: 'Settings',
                path: '/reference/api/settings/',
                collapsable: false,
                children: [
                  {
                    title: 'All Settings',
                    path: '/reference/api/settings',
                  },
                  '/reference/api/displayed_attributes',
                  '/reference/api/distinct_attribute',
                  '/reference/api/filterable_attributes',
                  '/reference/api/ranking_rules',
                  '/reference/api/searchable_attributes',
                  '/reference/api/sortable_attributes',
                  '/reference/api/stop_words',
                  '/reference/api/synonyms',
                ],
              },
              '/reference/api/stats',
              '/reference/api/health',
              '/reference/api/version',
              '/reference/api/dump',
            ],
          },
          {
            title: '🛠️ Under the hood',
            path: '/reference/under_the_hood/',
            collapsable: false,
            children: [
              '/reference/under_the_hood/bucket_sort',
              '/reference/under_the_hood/concat',
              '/reference/under_the_hood/datatypes',
              '/reference/under_the_hood/prefix',
              '/reference/under_the_hood/storage',
              '/reference/under_the_hood/tokenization',
              '/reference/under_the_hood/typotolerance',
            ],
          },
        ],
        '/create/': [
          {
            title: '📕 How-to guides',
            path: '/create/how_to/',
            collapsable: false,
            children: [
              {
                title: 'Basics',
                collapsable: false,
                sidebarDepth: 0,
                children: [
                  {
                    title: 'Update MeiliSearch',
                    path: '/create/how_to/updating',
                  },
                  {
                    title: 'Run in production',
                    path: '/create/how_to/running_production',
                  },
                  {
                    title: 'Use with Postman',
                    path: '/create/how_to/postman_collection',
                  },
                ],
              },
              {
                title: 'Deploy',
                collapsable: false,
                sidebarDepth: 0,
                children: [
                  {
                    title: 'Deploy on AWS',
                    path: '/create/how_to/aws',
                  },
                  {
                    title: 'Deploy on GCP',
                    path: '/create/how_to/gcp',
                  },
                  {
                    title: 'Deploy on DigitalOcean',
                    path: '/create/how_to/digitalocean_droplet',
                  },
                  {
                    title: 'Deploy on Qovery',
                    path: '/create/how_to/qovery',
                  },
                ],
              },
              {
                title: 'Integrate',
                collapsable: false,
                sidebarDepth: 0,
                children: [
                  {
                    title: 'Add a search bar to your docs',
                    path: '/create/how_to/search_bar_for_docs',
                  },
                ],
              },
              {
                title: 'Miscellaneous',
                collapsable: false,
                sidebarDepth: 0,
                children: [
                  {
                    title: 'Set up HTTP/2 and SSL',
                    path: '/create/how_to/http2_ssl',
                  },
                ],
              },
            ],
          },
        ],
      },
    },
    plugins: [
      [
        'check-md',
        {
          pattern: '**/*.md',
          strictExt: true,
          ignorePattern: ['errors', 'document_structure'],
          exitLevel: 'warn',
        },
      ],
      ['sitemap', { hostname: 'https://docs.meilisearch.com' }],
      ['seo', {}],
      'img-lazy',
      'vuepress-plugin-element-tabs',
      ['vuepress-plugin-container', { type: 'note' }],
      [require('./config-path-checker')],
      [require('./custom-markdown-rules')],
      [require('./custom-timestamp')],
      [require('./code-samples')],
      [require('./error-pages')],
      [
        'vuepress-plugin-code-copy',
        {
          color: '#3385ff',
          staticIcon: true,
        },
      ],
      [
        'meilisearch',
        {
          hostUrl: 'https://docs-search-bar.meilisearch.com',
          apiKey:
            'd79226ae89f29d4dadba8d0c30c240e435f584fb83a7ae573b13eb62edec35cd',
          indexUid: 'docs',
          placeholder: 'Search as you type...',
        },
      ],
      [
        'vuepress-plugin-zooming',
        {
          selector: '.theme-default-content img',
          delay: 1000,
          options: {
            bgColor: 'black',
            zIndex: 10000,
          },
        },
      ],
    ],
    head: [
      ['meta', { charset: 'utf-8' }],
      [
        'meta',
        { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      ],
      [
        'meta',
        {
          property: 'google-site-verification',
          content: 'u0OYrst4u5F16t0Vh4-EkO_sWE38Pp9aT7idfr0Ar9c',
        },
      ],
      [
        'meta',
        {
          prefix: ogprefix,
          property: 'og:title',
          content: 'MeiliSearch Documentation',
        },
      ],
      ['meta', { prefix: ogprefix, property: 'og:type', content: 'website' }],
      [
        'meta',
        {
          prefix: ogprefix,
          property: 'og:url',
          content: 'http://docs.meilisearch.com',
        },
      ],
      [
        'meta',
        {
          prefix: ogprefix,
          property: 'og:image',
          content:
            'https://res.cloudinary.com/meilisearch/image/upload/v1582134509/og-image_dlbsnb.png',
        },
      ],
      [
        'meta',
        {
          prefix: ogprefix,
          property: 'og:image-secure-url',
          content:
            'https://res.cloudinary.com/meilisearch/image/upload/v1582134509/og-image_dlbsnb.png',
        },
      ],
      [
        'meta',
        {
          prefix: ogprefix,
          property: 'og:image-image-type',
          content: 'image/png',
        },
      ],
      ['meta', { prefix: ogprefix, property: 'og:image-height', content: '630' }],
      ['meta', { prefix: ogprefix, property: 'og:locale', content: 'en_GB' }],
      [
        'meta',
        {
          prefix: ogprefix,
          property: 'og:site-name',
          content: 'MeiliSearch Documentation',
        },
      ],
      [
        'meta',
        { property: 'twitter:title', content: 'MeiliSearch Documentation' },
      ],
      [
        'meta',
        {
          property: 'twitter:description',
          content: 'The official documentation of MeiliSearch',
        },
      ],
      [
        'meta',
        {
          property: 'twitter:image',
          content:
            'https://res.cloudinary.com/meilisearch/image/upload/v1582134509/og-image_dlbsnb.png',
        },
      ],
      [
        'meta',
        {
          property: 'twitter:card',
          content: 'summary_large_image',
        },
      ],
      [
        'meta',
        {
          property: 'twitter:image:alt',
          content: 'Next generation search API',
        },
      ],
      ['meta', { property: 'twitter:site', content: '@meilisearch' }],
      [
        'script',
        {},
        `
        window.$crisp=[];
        window.CRISP_WEBSITE_ID="38a71dd2-729c-4970-b061-3e1db1c1eb20";
        (function() {
            var d=document;
            var s=d.createElement("script");
            s.src="https://client.crisp.chat/l.js";
            s.async=1;
            d.getElementsByTagName("head")[0].appendChild(s);
        })();
      `,
      ],
      [
        'script',
        {},
        `
        (function(h,o,t,j,a,r){
          h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
          h._hjSettings={hjid:2013731,hjsv:6};
          a=o.getElementsByTagName('head')[0];
          r=o.createElement('script');r.async=1;
          r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
          a.appendChild(r);
        })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
      `,
      ],
      [
        'script',
        {
          src: 'https://cdn.usefathom.com/script.js',
          spa: 'auto',
          site: 'WIMXMDAA',
          defer: true,
        },
      ],
      [
        'script',
        {},
        `
        (function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement("script")
        ;r.type="text/javascript"
        ;r.integrity="sha384-girahbTbYZ9tT03PWWj0mEVgyxtZoyDF9KVZdL+R53PP5wCY0PiVUKq0jeRlMx9M"
        ;r.crossOrigin="anonymous";r.async=true
        ;r.src="https://cdn.amplitude.com/libs/amplitude-7.2.1-min.gz.js"
        ;r.onload=function(){if(!e.amplitude.runQueuedFunctions){
        console.log("[Amplitude] Error: could not load SDK")}}
        ;var i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)
        ;function s(e,t){e.prototype[t]=function(){
        this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));return this}}
        var o=function(){this._q=[];return this}
        ;var a=["add","append","clearAll","prepend","set","setOnce","unset"]
        ;for(var u=0;u<a.length;u++){s(o,a[u])}n.Identify=o;var c=function(){this._q=[]
        ;return this}
        ;var l=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"]
        ;for(var p=0;p<l.length;p++){s(c,l[p])}n.Revenue=c
        ;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId", "enableTracking", "setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"]
        ;function v(e){function t(t){e[t]=function(){
        e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}
        for(var n=0;n<d.length;n++){t(d[n])}}v(n);n.getInstance=function(e){
        e=(!e||e.length===0?"$default_instance":e).toLowerCase()
        ;if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};v(n._iq[e])}return n._iq[e]}
        ;e.amplitude=n})(window,document);
  
        amplitude.getInstance().init("b1e93a7d40b5ea629cf0abee212cb54c");
        amplitude.getInstance().logEvent('NEW_DOC_VISIT');
      `,
      ],
      [
        'script',
        {},
        `
        !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="jezyOXRIO1Azyxx0vCcH1afz4b4boYmp";analytics.SNIPPET_VERSION="4.13.2";
          analytics.load("jezyOXRIO1Azyxx0vCcH1afz4b4boYmp");
          analytics.page();
        }}();
      `,
      ],
    ],
  }
  