Skip to content

Commit 4f2f2e9

Browse files
committed
fixed build error
1 parent 92a197c commit 4f2f2e9

File tree

6 files changed

+25
-4
lines changed

6 files changed

+25
-4
lines changed

docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
id: guides
33
title: Guides
4-
slug: /
54
---
65

76
# Welcome to the Guides Section
87

98
This is the main page for all guides.
109

10+
import React from 'react';
1111
import DocCardList from '@theme/DocCardList';
1212

1313
<DocCardList />

docusaurus.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function create_doc_plugin({
100100
}
101101

102102
const tailwindPlugin = require('./plugins/tailwind-plugin.cjs');
103+
const webpackReactProvider = require('./plugins/webpack-react-provider.cjs');
103104
const docs_plugins = docs.map((doc) => create_doc_plugin(doc));
104105
const plugins = [
105106
[
@@ -114,6 +115,7 @@ const plugins = [
114115
},
115116
],
116117
tailwindPlugin,
118+
webpackReactProvider,
117119
...docs_plugins,
118120
...openapiPlugins
119121
];

plugins/webpack-react-provider.cjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const webpack = require('webpack');
2+
3+
module.exports = function (context, options) {
4+
return {
5+
name: 'webpack-react-provider',
6+
configureWebpack(config, isServer) {
7+
return {
8+
plugins: [
9+
new webpack.ProvidePlugin({
10+
React: require.resolve('react'),
11+
}),
12+
],
13+
};
14+
},
15+
};
16+
};
17+

src/theme/MDXComponents.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from 'react';
12
import MDXComponents from '@theme-original/MDXComponents';
23

34
import Tabs from '@theme/Tabs';
@@ -10,6 +11,7 @@ import * as icons from '../icons';
1011

1112
export default {
1213
...MDXComponents,
14+
React,
1315
...icons,
1416
Tabs,
1517
TabItem,

static/remote-docs/guides/architecture/babylon_genesis_modules/checkpointing.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h2>Concepts</h2>
8787
<p>Once a valid checkpoint is generated,
8888
it is checkpointed into the Bitcoin ledger through
8989
an off-chain program
90-
<a href="https://docs.babylonlabs.io/docs/developer-guides/modules/submitter">Vigilante Submitter</a>.
90+
<a href="https://docs.babylonlabs.io/guides/architecture/vigilantes/submitter/">Vigilante Submitter</a>.
9191
It is responsible for constructing Bitcoin transactions that
9292
contain outputs utilizing the
9393
<a href="https://en.bitcoin.it/wiki/OP_RETURN"><code>OP_RETURN</code></a> script code
@@ -194,7 +194,7 @@ <h2>Messages</h2>
194194
The message handler is defined at
195195
<a href="./keeper/msg_server.go">x/checkpointing/keeper/msg_server.go</a>.</p>
196196
<h3>MsgWrappedCreateValidator</h3>
197-
<p>The <code>MsgWrappedCreateValidator</code> message wraps the <a href="https://github.com/cosmos/cosmos-sdk/blob/9814f684b9dd7e384064ca86876688c05e685e54/proto/cosmos/staking/v1beta1/tx.proto#L51"><code>MsgCreateValidator</code></a>
197+
<p>The <code>MsgWrappedCreateValidator</code> message wraps the <a href="https://github.com/cosmos/cosmos-sdk/blob/main/proto/cosmos/staking/v1beta1/tx.proto#L52"><code>MsgCreateValidator</code></a>
198198
defined in the staking module of the Cosmos SDK
199199
in order to also include the BLS public key.
200200
The message is used for registering a new validator and storing its BLS public

static/remote-docs/operators/babylon_validators/ibc_relayer_guide.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h2>Network-Specific Parameters</h2>
100100
babylond query btccheckpoint params
101101
</code></pre>
102102
<p>For RPC and LCD endpoints for different networks, refer to
103-
the <a href="https://github.com/babylonlabs-io/networks/tree/main/bbn-test-5">Babylon Networks Repository</a>.</p>
103+
the <a href="https://github.com/babylonlabs-io/networks/tree/main/bbn-test-6">Babylon Networks Repository</a>.</p>
104104
<h2>Relayer Configuration</h2>
105105
<p>When setting up a relayer for Babylon, pay special attention to these
106106
parameters. The following values are specific to Babylon mainnet:</p>

0 commit comments

Comments
 (0)