Skip to content

Commit

Permalink
Fix build error in docusaurus (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini authored Sep 22, 2024
1 parent 310609a commit f16e22f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/genji-theme-docusaurus/src/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function defineConfig(config) {
window.__genjiConfig = config;
if (typeof window === 'object') window.__genjiConfig = config;
return config;
}
7 changes: 1 addition & 6 deletions packages/genji-theme-docusaurus/test/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ const config = {
position: "left",
label: "Tutorial",
},
{ to: "/blog", label: "Blog", position: "left" },
{
href: "https://github.com/facebook/docusaurus",
label: "GitHub",
Expand All @@ -96,7 +95,7 @@ const config = {
items: [
{
label: "Tutorial",
to: "/docs/intro",
to: "/docs/block",
},
],
},
Expand All @@ -120,10 +119,6 @@ const config = {
{
title: "More",
items: [
{
label: "Blog",
to: "/blog",
},
{
label: "GitHub",
href: "https://github.com/facebook/docusaurus",
Expand Down
2 changes: 1 addition & 1 deletion packages/genji-theme-docusaurus/test/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function HomepageHeader() {
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
to="/docs/block">
Docusaurus Tutorial - 5min ⏱️
</Link>
</div>
Expand Down

0 comments on commit f16e22f

Please sign in to comment.