github.com/elek/golangci-lint@v1.42.2-0.20211208090441-c05b7fcb3a9a/docs/gatsby-config.js (about) 1 const withDefault = require(`./src/@rocketseat/gatsby-theme-docs-core/util/with-default`); 2 3 const domain = `golangci-lint.run`; 4 const siteUrl = `https://${domain}`; 5 6 const siteConfig = require(`./src/config/site.js`); 7 const { basePath, configPath, docsPath } = withDefault(siteConfig); 8 9 module.exports = { 10 siteMetadata: { 11 siteTitle: `golangci-lint`, 12 defaultTitle: ``, 13 siteTitleShort: `golangci-lint`, 14 siteDescription: `Fast Go linters runner golangci-lint.`, 15 siteUrl, 16 siteAuthor: `@golangci`, 17 siteImage: `/logo.png`, 18 siteLanguage: `en`, 19 themeColor: `#7159c1`, 20 basePath, 21 footer: `© ${new Date().getFullYear()}`, 22 }, 23 plugins: [ 24 `gatsby-alias-imports`, 25 26 `gatsby-transformer-sharp`, 27 `gatsby-plugin-sharp`, 28 { 29 resolve: `gatsby-source-filesystem`, 30 options: { 31 name: `docs`, 32 path: docsPath, 33 }, 34 }, 35 { 36 resolve: `gatsby-source-filesystem`, 37 options: { 38 name: `config`, 39 path: configPath, 40 }, 41 }, 42 { 43 resolve: `gatsby-transformer-yaml`, 44 options: { 45 typeName: `SidebarItems`, 46 }, 47 }, 48 { 49 resolve: `gatsby-plugin-mdx`, 50 options: { 51 extensions: [`.mdx`, `.md`], 52 gatsbyRemarkPlugins: [ 53 `gatsby-remark-autolink-headers`, 54 `gatsby-remark-external-links`, 55 `gatsby-remark-embedder`, 56 { 57 resolve: `gatsby-remark-images`, 58 options: { 59 maxWidth: 960, 60 withWebp: true, 61 linkImagesToOriginal: false, 62 }, 63 }, 64 `gatsby-remark-responsive-iframe`, 65 `gatsby-remark-copy-linked-files`, 66 `gatsby-remark-mermaid`, 67 ], 68 plugins: [ 69 `gatsby-remark-autolink-headers`, 70 `gatsby-remark-external-links`, 71 `gatsby-remark-images`, 72 `gatsby-remark-mermaid`, 73 ], 74 }, 75 }, 76 { 77 resolve: `gatsby-plugin-manifest`, 78 options: { 79 name: `golangci-lint website`, 80 short_name: `golangci-lint`, 81 start_url: `/`, 82 background_color: `#ffffff`, 83 display: `standalone`, 84 icon: `static/logo.png`, 85 }, 86 }, 87 `gatsby-plugin-sitemap`, 88 { 89 resolve: `gatsby-plugin-google-analytics`, 90 options: { 91 trackingId: `UA-48413061-13`, 92 siteSpeedSampleRate: 100, 93 }, 94 }, 95 { 96 resolve: `gatsby-plugin-canonical-urls`, 97 options: { 98 siteUrl: siteUrl, 99 }, 100 }, 101 `gatsby-plugin-offline`, 102 { 103 resolve: "gatsby-plugin-react-svg", 104 options: { 105 rule: { 106 include: /logo\.svg$/, 107 }, 108 }, 109 }, 110 `gatsby-plugin-netlify`, 111 `gatsby-plugin-netlify-cache`, 112 113 `gatsby-plugin-catch-links`, 114 `gatsby-plugin-emotion`, 115 `gatsby-plugin-react-helmet`, 116 { 117 resolve: `gatsby-plugin-robots-txt`, 118 options: { 119 env: { 120 development: { 121 host: siteUrl, 122 policy: [{ userAgent: "*", disallow: ["/"] }], 123 }, 124 production: { 125 host: siteUrl, 126 policy: [{ userAgent: "*", disallow: ["/page-data/"] }], 127 }, 128 }, 129 }, 130 }, 131 ], 132 };