2021-06-04 02:37:42 +02:00
|
|
|
const path = require("path");
|
2022-03-09 09:07:55 +01: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-09-22 11:09:40 +02:00
|
|
|
"https://fonts.googleapis.com/css2?family=Karla&family=Montserrat:wght@700&display=swap",
|
2021-06-02 16:53:39 +02:00
|
|
|
],
|
2022-03-30 16:48:24 +02:00
|
|
|
customFields: {
|
|
|
|
AMPLITUDE_ID: process.env.REACT_APP_AMPLITUDE_ID
|
|
|
|
},
|
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",
|
|
|
|
},
|
|
|
|
],
|
2022-03-09 09:07:55 +01:00
|
|
|
hideOnScroll: true,
|
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",
|
2022-03-09 09:07:55 +01: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: {
|
2021-06-04 02:37:42 +02:00
|
|
|
defaultMode: "light",
|
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: {
|
2022-03-09 09:07:55 +01:00
|
|
|
breadcrumbs: false,
|
2021-06-04 22:34:09 +02:00
|
|
|
path: "../docs",
|
2021-06-04 02:37:42 +02:00
|
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
2022-01-13 16:00:35 +01:00
|
|
|
editUrl: "https://github.com/dagger/dagger/edit/main/website",
|
2021-06-04 02:37:42 +02:00
|
|
|
routeBasePath: "/",
|
2021-08-12 12:15:16 +02:00
|
|
|
remarkPlugins: [remarkCodeImport],
|
2021-06-02 16:53:39 +02:00
|
|
|
},
|
2022-01-13 15:25:49 +01:00
|
|
|
gtag: {
|
|
|
|
trackingID: "G-RDXG80F635",
|
|
|
|
anonymizeIP: true,
|
|
|
|
},
|
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
|
|
|
};
|