Skip to content

Commit

Permalink
docs: fix deploy preview and some links
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasten committed Nov 24, 2023
1 parent b23798d commit 5683b5c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
21 changes: 10 additions & 11 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer').themes.github;
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
import { themes as prismThemes } from 'prism-react-renderer';

/** @type {import('@docusaurus/types').Config} */
async function createConfig() {
Expand All @@ -12,7 +11,7 @@ async function createConfig() {
url: 'https://marblerun-docs.netlify.app',
baseUrl: '/marblerun/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/favicon.png',

// GitHub pages deployment config.
Expand Down Expand Up @@ -45,7 +44,7 @@ async function createConfig() {
// sidebarPath: 'sidebars.js',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: 'https://github.com/edgelesssys/marblerun/edit/main/docs',
editUrl: 'https://github.com/edgelesssys/marblerun/edit/master/docs',
routeBasePath: "/"
},
blog: false,
Expand Down Expand Up @@ -135,7 +134,7 @@ async function createConfig() {
},
{
label: 'Newsletter',
href: 'https://www.edgeless.systems/#newsletter-signup'
href: 'https://www.edgeless.systems/#footer'
},
],
},
Expand Down Expand Up @@ -166,29 +165,29 @@ async function createConfig() {
items: [
{
label: 'Imprint',
href: 'https://www.edgeless.systems/imprint',
href: 'https://www.edgeless.systems/imprint/',
},
{
label: 'Privacy Policy',
href: 'https://www.edgeless.systems/privacy',
href: 'https://www.edgeless.systems/privacy/',
},
{
html: `<a href="javascript: Cookiebot.renew()" class="footer__link-item">Cookie Settings</a>`
},

{
label: 'Contact Us',
href: 'https://www.edgeless.systems/contact/',
href: 'https://www.edgeless.systems/contact-us/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Edgeless Systems`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['shell-session'],
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'shell-session', 'toml'],
},
}),

Expand Down
1 change: 1 addition & 0 deletions docs/static/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/marblerun/* /:splat 200!

0 comments on commit 5683b5c

Please sign in to comment.