Skip to content

Commit

Permalink
chore: add math formula deps
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Dec 4, 2023
1 parent d11057c commit dde4bdf
Show file tree
Hide file tree
Showing 4 changed files with 267 additions and 63 deletions.
2 changes: 1 addition & 1 deletion docs/docs/adrs/adr-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ If the proposed change will be large, please also indicate a way to do the chang

> Are there any relevant PR comments, issues that led up to this, or articles referenced for why we made the given design choice? If so link them here!
* {reference link}
* \{reference link}
26 changes: 15 additions & 11 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";

const lightCodeTheme = require('prism-react-renderer').themes.github;
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
const lightCodeTheme = require("prism-react-renderer").themes.github;
const darkCodeTheme = require("prism-react-renderer").themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -35,14 +37,16 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/",
versions: {
current: {
path: "/",
// banner: "current",
},
},
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},

theme: {
Expand All @@ -62,20 +66,19 @@ const config = {
},
},
colorMode: {
defaultMode: 'dark',
defaultMode: "dark",
disableSwitch: false,
respectPrefersColorScheme: false,
},
navbar: {
title: "Interchain Security",
hideOnScroll: false,
logo: {
alt: 'Interchain Security Logo',
src: '/interchain-security/img/hub.svg',
src: '/img/hub.svg',
href: '/',
target: '_self',
},
alt: "Interchain Security Logo",
src: "/img/hub.svg",
href: "/",
target: "_self",
},
items: [
{
href: "https://github.com/cosmos/interchain-security",
Expand Down Expand Up @@ -165,7 +168,8 @@ const config = {
],
},
],
copyright: "The development of Interchain Security is primarily led by Informal Systems. Funding for this development comes primarily from the Interchain Foundation, a Swiss non-profit.",
copyright:
"The development of Interchain Security is primarily led by Informal Systems. Funding for this development comes primarily from the Interchain Foundation, a Swiss non-profit.",
},
prism: {
theme: lightCodeTheme,
Expand Down
Loading

0 comments on commit dde4bdf

Please sign in to comment.