github.com/avenga/couper@v1.12.2/docs/website/nuxt.config.ts (about)

     1  import colors from 'tailwindcss/colors.js'
     2  import { defineNuxtConfig } from 'nuxt'
     3  
     4  // https://v3.nuxtjs.org/api/configuration/nuxt.config
     5  export default defineNuxtConfig({
     6      ssr: true, // false: client-side rendering
     7      // components: {
     8      //     global: true,
     9      // },
    10      modules: [
    11          '@nuxt/content',
    12          '@nuxtjs/tailwindcss',
    13          '@nuxtjs/algolia',
    14      ],
    15      app: {
    16          // baseURL: process.env.NODE_ENV === 'production' ? '/couper-docs/' : '/'
    17      },
    18      algolia: {
    19          apiKey: '5551c3e4dfb61914988abf95fd9b762f',
    20          applicationId: 'MSIN2HU7WH',
    21          instantSearch: {
    22              theme: 'algolia'
    23          },
    24          crawler: {
    25              apiKey: '<WriteKey>',
    26              indexName: 'docs',
    27              include: undefined, // all routes
    28              meta: ['title', 'description', '_path']
    29          },
    30  
    31          // @ts-ignore
    32          indexer: {} // throws err if not set
    33      },
    34      css: [
    35          '@/assets/css/tailwind.css',
    36          '@/assets/css/font.css'
    37      ],
    38      vite: {
    39          define: {
    40              'process.env.FORCE_COLOR': {},
    41              'process.env.NODE_DISABLE_COLORS': {},
    42              'process.env.NO_COLOR': {},
    43              'process.env.FORCE_TERM': {}
    44          }
    45      },
    46      markdown: {
    47          toc: {
    48              depth: 3,
    49              searchDepth: 3,
    50          },
    51      },
    52      content: {
    53          // base: './content',
    54          // @ts-ignore
    55          documentDriven: {
    56              navigation: true,
    57              page: true,
    58              surround: true,
    59              injectPage: true,
    60          },
    61          // sources: [
    62          //     {
    63          //         name: 'edge',
    64          //         prefix: '/edge',
    65          //         driver: 'fs',
    66          //         base: resolve(__dirname, 'edge')
    67          //     },
    68          // ],
    69          highlight: {
    70              theme: 'slack-dark',
    71              preload: ['hcl', 'html', 'shell'],
    72          }
    73      },
    74      github: {
    75          owner: 'avenga',
    76          repo: 'couper-docs',
    77          branch: 'main',
    78          releases: false
    79      },
    80      tailwindcss: {
    81          config: {
    82              /* Extend the Tailwind config here */
    83              content: [
    84                  'content/**/**.md'
    85              ],
    86              theme: {
    87                  extend: {
    88                      colors: {
    89                          primary: colors.emerald
    90                      }
    91                  }
    92              }
    93          }
    94      },
    95      build: {
    96          postcss: {
    97              postcssOptions: {
    98                  plugins: {
    99                      tailwindcss: {},
   100                      autoprefixer: {},
   101                  }
   102              }
   103          }
   104      },
   105  })