Skip to content

Commit

Permalink
chore(docs): fix equations showing twice (#141)
Browse files Browse the repository at this point in the history
The url to the katex css was not updated with the base url.
  • Loading branch information
jsolaas authored Aug 17, 2023
1 parent de3c2eb commit 2455e34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const math = require('remark-math');
const katex = require('rehype-katex');

const baseUrl = "/ecalc"

async function createConfig() {
const mdxMermaid = await import('mdx-mermaid');
return {
title: 'eCalc™ Docs',
tagline: 'Documentation for eCalc™',
url: 'https://equinor.github.io',
baseUrl: '/ecalc/',
baseUrl: baseUrl,
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/favicon.svg',
Expand Down Expand Up @@ -126,7 +128,7 @@ async function createConfig() {
}),
stylesheets: [
{
href: '/katex/katex.min.css',
href: `${baseUrl}/katex/katex.min.css`,
type: 'text/css',
},
],
Expand Down

0 comments on commit 2455e34

Please sign in to comment.