-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: build * fix: build * fix: build * fix: build * fix: build * fix: build * fix: build
- Loading branch information
1 parent
6b35a49
commit 0e60143
Showing
2 changed files
with
12 additions
and
20,198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
@@ -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"), | ||
}, | ||
}, | ||
], | ||
], | ||
|
@@ -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 }, | ||
], | ||
], | ||
|
Oops, something went wrong.