mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-11 13:58:44 -04:00
docs: inline website theme (#1096)
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:
parent
e560b3f76e
commit
0d774cd24a
43 changed files with 2003 additions and 72 deletions
docs
|
@ -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`,
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue