2021-06-04 02:37:42 +02:00
|
|
|
const path = require("path");
|
2021-08-12 12:15:16 +02:00
|
|
|
const remarkCodeImport = require('remark-code-import');
|
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: "/",
|
2021-06-18 13:38:23 +02:00
|
|
|
onBrokenLinks: "warn",
|
2021-06-04 02:37:42 +02:00
|
|
|
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.googleapis.com/css2?family=Karla&family=Poppins:wght@700&display=swap",
|
2021-06-02 16:53:39 +02:00
|
|
|
],
|
|
|
|
themeConfig: {
|
2021-08-16 17:52:53 +02:00
|
|
|
sidebarCollapsed: false,
|
2021-06-02 16:53:39 +02:00
|
|
|
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",
|
2021-06-02 16:53:39 +02:00
|
|
|
},
|
2021-08-16 17:52:53 +02:00
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: "search",
|
|
|
|
position: "right",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
position: "right",
|
|
|
|
label: "Discord",
|
|
|
|
href: "https://discord.gg/ufnyBtc8uY",
|
|
|
|
className: "header-discord-link",
|
|
|
|
"aria-label": "Discord community",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
position: "right",
|
|
|
|
label: "Github",
|
|
|
|
href: "https://github.com/dagger/dagger",
|
|
|
|
className: "header-github-link hide-target-icon",
|
|
|
|
"aria-label": "GitHub repository",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
position: "right",
|
|
|
|
label: "Schedule a demo",
|
2021-09-15 19:18:45 +02:00
|
|
|
href: "https://savvycal.com/dagger/meet",
|
2021-08-16 17:52:53 +02:00
|
|
|
className: "button",
|
|
|
|
},
|
|
|
|
],
|
2021-06-02 16:53:39 +02:00
|
|
|
},
|
2021-06-03 10:48:28 +02:00
|
|
|
algolia: {
|
2021-08-10 23:52:15 +02:00
|
|
|
apiKey: "559dcddb4378b889baa48352394616ec",
|
2021-08-10 16:40:28 +02:00
|
|
|
indexName: "Dagger_docs",
|
2021-08-10 23:47:31 +02:00
|
|
|
appId: 'XSSC1LRN4S',
|
2021-06-03 10:48:28 +02:00
|
|
|
},
|
2021-08-06 15:29:23 +02:00
|
|
|
hotjar: {
|
|
|
|
siteId: "2541514",
|
|
|
|
},
|
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-17 17:50:08 +02:00
|
|
|
gtag: {
|
2021-08-06 15:29:23 +02:00
|
|
|
trackingID: "G-RDXG80F635",
|
2021-06-17 17:50:08 +02:00
|
|
|
anonymizeIP: true,
|
|
|
|
},
|
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 22:34:09 +02:00
|
|
|
path: "../docs",
|
2021-06-04 02:37:42 +02:00
|
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
|
|
|
editUrl: "https://github.com/dagger/dagger/blob/main",
|
|
|
|
routeBasePath: "/",
|
2021-08-12 12:15:16 +02:00
|
|
|
remarkPlugins: [remarkCodeImport],
|
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-11 12:24:58 +02:00
|
|
|
plugins: [
|
|
|
|
"docusaurus-plugin-sass",
|
2021-06-14 14:42:41 +02:00
|
|
|
[
|
2021-08-06 15:29:23 +02:00
|
|
|
"docusaurus2-dotenv",
|
|
|
|
{
|
2021-06-14 14:42:41 +02:00
|
|
|
systemvars: true,
|
2021-06-18 11:33:48 +02:00
|
|
|
expand: true,
|
2021-06-14 14:42:41 +02:00
|
|
|
},
|
2021-08-06 15:29:23 +02:00
|
|
|
],
|
|
|
|
path.resolve(__dirname, "plugins/docusaurus-plugin-hotjar"),
|
2021-06-11 12:24:58 +02:00
|
|
|
],
|
2021-08-06 15:29:23 +02:00
|
|
|
};
|