This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/website/docusaurus.config.js
jffarge 6b301b274b docs: 🐛 fix editurl path
related to https://github.com/facebook/docusaurus/pull/6119

Signed-off-by: jffarge <jf@dagger.io>
2022-01-13 16:00:35 +01:00

107 lines
2.6 KiB
JavaScript

const path = require("path");
const remarkCodeImport = require('remark-code-import');
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "Dagger",
tagline: "Dagger is a programmable deployment system",
url: "https://docs.dagger.io",
baseUrl: "/",
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.png",
organizationName: "Dagger",
projectName: "Dagger",
stylesheets: [
"https://fonts.googleapis.com/css2?family=Karla&family=Montserrat:wght@700&display=swap",
],
themeConfig: {
sidebarCollapsed: false,
prism: {
theme: require("prism-react-renderer/themes/okaidia"),
},
navbar: {
logo: {
alt: "Dagger Logo",
src: "img/dagger-logo.png",
},
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",
href: "https://savvycal.com/dagger/meet",
className: "button",
},
],
hideOnScroll: true
},
algolia: {
apiKey: "559dcddb4378b889baa48352394616ec",
indexName: "Dagger_docs",
appId: 'XSSC1LRN4S',
},
hotjar: {
siteId: "2541514",
},
colorMode: {
// "light" | "dark"
defaultMode: "light",
switchConfig: {
darkIcon: "img/Icon_Night-mode.svg",
lightIcon: "img/Icon_Day-mode.svg",
},
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
path: "../docs",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/dagger/dagger/edit/main/website",
routeBasePath: "/",
remarkPlugins: [remarkCodeImport],
},
gtag: {
trackingID: "G-RDXG80F635",
anonymizeIP: true,
},
theme: {
customCss: require.resolve("./src/css/custom.scss"),
},
},
],
],
plugins: [
"docusaurus-plugin-sass",
[
"docusaurus2-dotenv",
{
systemvars: true,
expand: true,
},
],
path.resolve(__dirname, "plugins/docusaurus-plugin-hotjar"),
],
};