2021-06-04 02:37:42 +02:00
|
|
|
const path = require("path");
|
2021-06-02 16:53:39 +02:00
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
|
|
|
module.exports = {
|
2021-06-04 02:37:42 +02:00
|
|
|
title: "Dagger",
|
|
|
|
tagline: "Dagger is a programmable deployment system",
|
|
|
|
url: "https://docs.dagger.io",
|
|
|
|
baseUrl: "/",
|
|
|
|
onBrokenLinks: "throw",
|
|
|
|
onBrokenMarkdownLinks: "warn",
|
|
|
|
favicon: "img/favicon.png",
|
|
|
|
organizationName: "Dagger",
|
|
|
|
projectName: "Dagger",
|
2021-06-02 16:53:39 +02:00
|
|
|
stylesheets: [
|
2021-06-04 02:37:42 +02:00
|
|
|
"https://fonts.gstatic.com",
|
|
|
|
"https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap",
|
|
|
|
"https://fonts.googleapis.com/css2?family=Karla&family=Poppins:wght@700&display=swap",
|
2021-06-02 16:53:39 +02:00
|
|
|
],
|
|
|
|
themeConfig: {
|
|
|
|
sidebarCollapsible: false,
|
|
|
|
prism: {
|
2021-06-04 17:55:20 +02:00
|
|
|
theme: require("prism-react-renderer/themes/okaidia"),
|
2021-06-02 16:53:39 +02:00
|
|
|
},
|
|
|
|
navbar: {
|
|
|
|
logo: {
|
2021-06-04 02:37:42 +02:00
|
|
|
alt: "Dagger Logo",
|
|
|
|
src: "img/dagger-logo.png",
|
|
|
|
srcDark: "img/dagger_logo_dark.png",
|
2021-06-02 16:53:39 +02:00
|
|
|
},
|
|
|
|
},
|
2021-06-03 10:48:28 +02:00
|
|
|
algolia: {
|
2021-06-04 02:37:42 +02:00
|
|
|
apiKey: "66c9f1f7e6ba6617ec4e65194788bacd",
|
|
|
|
indexName: "docs_dagger",
|
2021-06-03 10:48:28 +02:00
|
|
|
},
|
2021-06-03 16:10:44 +02:00
|
|
|
colorMode: {
|
|
|
|
// "light" | "dark"
|
2021-06-04 02:37:42 +02:00
|
|
|
defaultMode: "light",
|
2021-06-03 16:10:44 +02:00
|
|
|
|
|
|
|
switchConfig: {
|
|
|
|
darkIcon: "img/Icon_Night-mode.svg",
|
2021-06-04 02:37:42 +02:00
|
|
|
lightIcon: "img/Icon_Day-mode.svg",
|
2021-06-03 16:10:44 +02:00
|
|
|
},
|
|
|
|
},
|
2021-06-02 16:53:39 +02:00
|
|
|
},
|
|
|
|
presets: [
|
|
|
|
[
|
2021-06-04 02:37:42 +02:00
|
|
|
"@docusaurus/preset-classic",
|
2021-06-02 16:53:39 +02:00
|
|
|
{
|
|
|
|
docs: {
|
2021-06-04 02:37:42 +02:00
|
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
|
|
|
editUrl: "https://github.com/dagger/dagger/blob/main",
|
|
|
|
routeBasePath: "/",
|
2021-06-02 16:53:39 +02:00
|
|
|
},
|
|
|
|
theme: {
|
2021-06-04 17:55:20 +02:00
|
|
|
customCss: require.resolve("./src/css/custom.scss"),
|
2021-06-02 16:53:39 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2021-06-04 17:55:20 +02:00
|
|
|
plugins: [
|
|
|
|
'docusaurus-plugin-sass',
|
|
|
|
path.resolve(__dirname, "./custom_plugins")
|
|
|
|
],
|
2021-06-04 02:37:42 +02:00
|
|
|
};
|