lingdocs.com/gatsby-config.js

119 lines
3.3 KiB
JavaScript

module.exports = {
siteMetadata: {
title: `LingDocs`,
tagline: `language, linguistics, learning`,
author: {
name: `lingdocs.com`,
},
description: `Language, linguistics, learning. Making language simple, accessible, and understandable for everyone.`,
siteUrl: `https://www.lingdocs.com/`,
commentoUrl: `https://commento.lingdocs.com/`,
disqusShortname: `lingdocs`,
social: {
twitter: `lingdocs`,
github: `lingdocs`,
disqus: `lingdocs`,
},
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content`,
name: `content`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/assets`,
name: `assets`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [`.md`, `.mdx`],
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 590,
},
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`,
},
},
{
resolve: `gatsby-remark-table-of-contents`,
options: {
exclude: "Table of Contents",
tight: false,
fromHeading: 1,
toHeading: 6,
className: "table-of-contents"
},
},
{
resolve: `gatsby-remark-autolink-headers`,
options: {
icon: `<i class="fas fa-link mr-1"></i>`,
},
},
`gatsby-plugin-postcss`,
`gatsby-remark-prismjs`,
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
],
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
// `gatsby-plugin-feed`, // TODO: Get feed working with mdx
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `LingDocs`,
short_name: `LingDocs`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#808387`,
display: `minimal-ui`,
icon: `content/assets/icon.png`,
},
},
`gatsby-plugin-react-helmet`,
`gatsby-plugin-robots-txt`,
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
"G-FNB8658Z2J", // Google Analytics / GA
],
// This object gets passed directly to the gtag config command
// This config will be shared across all trackingIds
// gtagConfig: {
// optimize_id: "OPT_CONTAINER_ID",
// anonymize_ip: true,
// cookie_expires: 0,
// },
// This object is used for configuration specific to this plugin
pluginConfig: {
// Puts tracking script in the head instead of the body
head: false,
// Setting this parameter is also optional
respectDNT: true,
},
},
},
],
}