Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvsadana committed Oct 10, 2024
1 parent df1365d commit b29d6e0
Show file tree
Hide file tree
Showing 3 changed files with 2,967 additions and 60 deletions.
6 changes: 3 additions & 3 deletions pages/interacting/methods.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Each method has its own specific features and schema. Detailed information on ea
- **Result**: The resulting block information with transaction hashes
- **Errors**:
- `BLOCK_NOT_FOUND`: If the specified block does not exist
</details>
</details>

### `starknet_getBlockWithReceipts`

Expand All @@ -136,7 +136,7 @@ Each method has its own specific features and schema. Detailed information on ea
- **Result**: The resulting block information with transaction hashes
- **Errors**:
- `BLOCK_NOT_FOUND`: If the specified block does not exist
</details>
</details>

### `starknet_getBlockWithTxs`

Expand Down Expand Up @@ -554,4 +554,4 @@ Each method has its own specific features and schema. Detailed information on ea
- `UNSUPPORTED_TX_VERSION`: If the transaction version is unsupported
- `UNEXPECTED_ERROR`: In case of an unexpected error

</details>
</details>
114 changes: 57 additions & 57 deletions theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
import Image from "next/image";
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router';
import Image from 'next/image';

const config: DocsThemeConfig = {
// ... existing configurations,

i18n: [
{ locale: "en", text: "English" },
{ locale: "zh-CN", text: "中文" },
{ locale: 'en', text: 'English' },
{ locale: 'zh-CN', text: '中文' }
],

logo: (
<Image
src="/static/img/madara_logomark_red.png"
style={{
width: "auto",
height: "auto",
}}
width={150}
height={150}
alt={""}
/>
),
project: {
link: "https://github.com/madara-alliance/madara",
},
chat: {
link: "https://discord.gg/xubb6PNFsb",
},
docsRepositoryBase: "https://github.com/madara-alliance/madara-docs",
footer: {
text: (
<span>
MIT {new Date().getFullYear()} © Madara - Cairo-Powered Chains
</span>
),
},
editLink: {
text: <span>Contribute to Madara | Edit on GitHub</span>,
},
primaryHue: 10,
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== "/") {
return {
titleTemplate: "%s",
};
}
},
themeSwitch: {
useOptions() {
return {
light: "Light",
dark: "Dark",
system: "System",
};
},
},
sidebar: {
defaultMenuCollapseLevel: 1,
},
logo: (
<Image
src="/static/img/madara_logomark_red.png"
style={{
width: 'auto',
height: 'auto',
}}
width={150}
height={150}
alt={''}
/>
),
project: {
link: "https://github.com/madara-alliance/madara",
},
chat: {
link: "https://discord.gg/xubb6PNFsb",
},
docsRepositoryBase: "https://github.com/madara-alliance/madara-docs",
footer: {
text: (
<span>MIT {new Date().getFullYear()} © Madara - Cairo-Powered Chains</span>
),
},
editLink: {
text: (
<span>Contribute to Madara | Edit on GitHub</span>
),
},
primaryHue: 10,
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== "/") {
return {
titleTemplate: "%s",
};
}
},
themeSwitch: {
useOptions() {
return {
light: "Light",
dark: "Dark",
system: "System",
};
},
},
sidebar: {
defaultMenuCollapseLevel: 1
},
};

export default config;
export default config
Loading

0 comments on commit b29d6e0

Please sign in to comment.