Skip to content

Commit

Permalink
fix: build (#6)
Browse files Browse the repository at this point in the history
* fix: build

* fix: build

* fix: build

* fix: build

* fix: build

* fix: build

* fix: build
  • Loading branch information
rish-puffer authored Dec 10, 2024
1 parent 6b35a49 commit 0e60143
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20,198 deletions.
19 changes: 12 additions & 7 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/** @type {import('@docusaurus/types').DocusaurusConfig} */

const math = require("remark-math");
const katex = require("rehype-katex");
import math from 'remark-math';
import katex from 'rehype-katex';

module.exports = {
title: "Puffer UniFi Docs",
tagline: "Documentation for the Puffer UniFi Rollup",
//TODO: Change URL after proper domain is set up
url: "https://docs.puffer.fi",
baseUrl: "/",
onBrokenLinks: "throw",
Expand Down Expand Up @@ -119,11 +118,17 @@ module.exports = {
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
editUrl: "https://github.com/PufferFinance/website-docs/tree/main",
editUrl: "https://github.com/PufferFinance/unifi-docs",
remarkPlugins: [math],
rehypePlugins: [katex],
},
blog: {
showReadingTime: true,
editUrl: "https://github.com/PufferFinance/unifi-docs",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
Expand All @@ -132,13 +137,13 @@ module.exports = {
href: "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css",
type: "text/css",
integrity:
"sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",
"sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",
crossorigin: "anonymous",
},
],
plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local", "@rehype-katex"),
require.resolve("@easyops-cn/docusaurus-search-local"),
{ indexBlog: false, docsRouteBasePath: "/", indexPages: true },
],
],
Expand Down
Loading

0 comments on commit 0e60143

Please sign in to comment.