docs: lint docusaurus.config.js

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-06-03 17:37:42 -07:00
parent b805d37cb0
commit 4bce5de08b

View File

@ -1,62 +1,61 @@
const path = require('path'); const path = require("path");
/** @type {import('@docusaurus/types').DocusaurusConfig} */ /** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = { module.exports = {
title: 'Dagger', title: "Dagger",
tagline: 'Dagger is a programmable deployment system', tagline: "Dagger is a programmable deployment system",
url: 'https://docs.dagger.io', url: "https://docs.dagger.io",
baseUrl: '/', baseUrl: "/",
onBrokenLinks: 'throw', onBrokenLinks: "throw",
onBrokenMarkdownLinks: 'warn', onBrokenMarkdownLinks: "warn",
favicon: 'img/favicon.png', favicon: "img/favicon.png",
organizationName: 'Dagger', organizationName: "Dagger",
projectName: 'Dagger', projectName: "Dagger",
stylesheets: [ stylesheets: [
'https://fonts.gstatic.com', "https://fonts.gstatic.com",
'https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap', "https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap",
'https://fonts.googleapis.com/css2?family=Karla&family=Poppins:wght@700&display=swap' "https://fonts.googleapis.com/css2?family=Karla&family=Poppins:wght@700&display=swap",
], ],
themeConfig: { themeConfig: {
sidebarCollapsible: false, sidebarCollapsible: false,
prism: { prism: {
defaultLanguage: 'go', defaultLanguage: "go",
}, },
navbar: { navbar: {
logo: { logo: {
alt: 'Dagger Logo', alt: "Dagger Logo",
src: 'img/dagger-logo.png', src: "img/dagger-logo.png",
srcDark: 'img/dagger_logo_dark.png', srcDark: "img/dagger_logo_dark.png",
}, },
}, },
algolia: { algolia: {
apiKey: '66c9f1f7e6ba6617ec4e65194788bacd', apiKey: "66c9f1f7e6ba6617ec4e65194788bacd",
indexName: 'docs_dagger' indexName: "docs_dagger",
}, },
colorMode: { colorMode: {
// "light" | "dark" // "light" | "dark"
defaultMode: 'light', defaultMode: "light",
switchConfig: { switchConfig: {
darkIcon: "img/Icon_Night-mode.svg", darkIcon: "img/Icon_Night-mode.svg",
lightIcon: 'img/Icon_Day-mode.svg', lightIcon: "img/Icon_Day-mode.svg",
}, },
}, },
}, },
presets: [ presets: [
[ [
'@docusaurus/preset-classic', "@docusaurus/preset-classic",
{ {
docs: { docs: {
sidebarPath: require.resolve('./sidebars.js'), sidebarPath: require.resolve("./sidebars.js"),
editUrl: editUrl: "https://github.com/dagger/dagger/blob/main",
'https://github.com/dagger/dagger/blob/main', routeBasePath: "/",
routeBasePath: '/',
}, },
theme: { theme: {
customCss: require.resolve('./src/css/custom.css'), customCss: require.resolve("./src/css/custom.css"),
}, },
}, },
], ],
], ],
plugins: [path.resolve(__dirname, './custom_plugins')], plugins: [path.resolve(__dirname, "./custom_plugins")],
}; };