docs: inline website theme ()

Inline @rocketseat theme for Gatsby
because we need a lot of changes.

Fix bad GitHub edit url, next/prev links,
    external links without target="_blank".
This commit is contained in:
Isaev Denis 2020-05-16 17:17:58 +03:00 committed by GitHub
parent e560b3f76e
commit 0d774cd24a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
43 changed files with 2003 additions and 72 deletions

View file

@ -1,28 +1,73 @@
const withDefault = require(`./src/@rocketseat/gatsby-theme-docs-core/util/with-default`);
const siteUrl = `https://golangci-lint.run`;
const siteConfig = require(`./src/config/site.js`);
const { basePath, configPath, docsPath } = withDefault(siteConfig);
module.exports = {
siteMetadata: {
siteTitle: `golangci-lint`,
defaultTitle: ``,
siteTitleShort: `golangci-lint`,
siteDescription: `Fast Go linters runner golangci-lint.`,
siteUrl: siteUrl,
siteUrl,
siteAuthor: `@golangci`,
siteImage: `/logo.png`,
siteLanguage: `en`,
themeColor: `#7159c1`,
basePath: `/`,
basePath,
footer: `© ${new Date().getFullYear()}`,
},
plugins: [
`gatsby-alias-imports`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `@rocketseat/gatsby-theme-docs`,
resolve: `gatsby-source-filesystem`,
options: {
configPath: `src/config`,
docsPath: `src/docs`,
githubUrl: `https://github.com/golangci/golangci-lint`,
baseDir: `docs`,
name: `docs`,
path: docsPath,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `config`,
path: configPath,
},
},
{
resolve: `gatsby-transformer-yaml`,
options: {
typeName: `SidebarItems`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [`.mdx`, `.md`],
gatsbyRemarkPlugins: [
`gatsby-remark-autolink-headers`,
`gatsby-remark-external-links`,
`gatsby-remark-embedder`,
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 960,
withWebp: true,
linkImagesToOriginal: false,
},
},
`gatsby-remark-responsive-iframe`,
`gatsby-remark-copy-linked-files`,
],
plugins: [
`gatsby-remark-autolink-headers`,
`gatsby-remark-external-links`,
`gatsby-remark-images`,
],
},
},
{
@ -59,13 +104,11 @@ module.exports = {
},
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [`gatsby-remark-external-links`],
},
},
`gatsby-plugin-netlify`,
`gatsby-plugin-netlify-cache`,
`gatsby-plugin-catch-links`,
`gatsby-plugin-emotion`,
`gatsby-plugin-react-helmet`,
],
};