From 403fd2c03b987a33efee2d27b3727a4b94b6afbd Mon Sep 17 00:00:00 2001 From: Aki Wu Date: Fri, 11 Nov 2022 08:41:41 +0800 Subject: [PATCH 1/3] add search functionality --- docs/builder/_category_.json | 1 - docs/protocols/_category_.json | 1 - docs/relayer/_category_.json | 1 - docusaurus.config.js | 5 +++++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/builder/_category_.json b/docs/builder/_category_.json index 0085891d..9d020f11 100644 --- a/docs/builder/_category_.json +++ b/docs/builder/_category_.json @@ -1,5 +1,4 @@ { "label": "Builder", - "collapsible": false, "position": 1 } diff --git a/docs/protocols/_category_.json b/docs/protocols/_category_.json index 04530207..b785e6e7 100644 --- a/docs/protocols/_category_.json +++ b/docs/protocols/_category_.json @@ -1,5 +1,4 @@ { "label": "Protocols", - "collapsible": false, "position": 3 } diff --git a/docs/relayer/_category_.json b/docs/relayer/_category_.json index 40fb5d6e..b9245f4a 100644 --- a/docs/relayer/_category_.json +++ b/docs/relayer/_category_.json @@ -1,5 +1,4 @@ { "label": "Relayer", - "collapsible": false, "position": 2 } diff --git a/docusaurus.config.js b/docusaurus.config.js index 4c65c77e..cce51013 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -100,6 +100,11 @@ const config = { theme: lightCodeTheme, darkTheme: darkCodeTheme, }, + algolia: { + appId: '5NG98ZN34E', + apiKey: '92f99efa90fc8770311839dcc9320fa4', + indexName: 'darwinia', + } }), }; From a41c83ac61e0c0dc17753830e78fd4469207fe4c Mon Sep 17 00:00:00 2001 From: Aki Wu Date: Fri, 11 Nov 2022 08:45:24 +0800 Subject: [PATCH 2/3] expanded categories --- docs/builder/_category_.json | 1 + docs/protocols/_category_.json | 1 + docs/relayer/_category_.json | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/builder/_category_.json b/docs/builder/_category_.json index 9d020f11..0c82173f 100644 --- a/docs/builder/_category_.json +++ b/docs/builder/_category_.json @@ -1,4 +1,5 @@ { "label": "Builder", + "collapsed": false, "position": 1 } diff --git a/docs/protocols/_category_.json b/docs/protocols/_category_.json index b785e6e7..a513119a 100644 --- a/docs/protocols/_category_.json +++ b/docs/protocols/_category_.json @@ -1,4 +1,5 @@ { "label": "Protocols", + "collapsed": false, "position": 3 } diff --git a/docs/relayer/_category_.json b/docs/relayer/_category_.json index b9245f4a..48982b7d 100644 --- a/docs/relayer/_category_.json +++ b/docs/relayer/_category_.json @@ -1,4 +1,5 @@ { "label": "Relayer", + "collapsed": false, "position": 2 } From 8e87dc43964a0f72ec77e533c5ae157b52167ada Mon Sep 17 00:00:00 2001 From: Aki Wu Date: Fri, 11 Nov 2022 09:00:26 +0800 Subject: [PATCH 3/3] fix links --- docs/builder/networks/crab.md | 2 +- docs/builder/networks/darwinia.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/builder/networks/crab.md b/docs/builder/networks/crab.md index b0cee936..e2ab9a8d 100644 --- a/docs/builder/networks/crab.md +++ b/docs/builder/networks/crab.md @@ -5,7 +5,7 @@ title: Crab Crab Network is a canary network with real economic value for Darwinia, and its positioning is similar to Polkadot's Kusama Network. To expect chaos is a reasonable assumption! -Crab is now a parachain of [Kusama](https://kusama.subscan.io/parachain/2229). +Crab is now a [parachain of Kusama](https://kusama.subscan.io/parachain/2229). ## Network Info diff --git a/docs/builder/networks/darwinia.md b/docs/builder/networks/darwinia.md index d89f0591..8d4bc089 100644 --- a/docs/builder/networks/darwinia.md +++ b/docs/builder/networks/darwinia.md @@ -5,7 +5,7 @@ title: Darwinia Darwinia is a chain based on substrate with cross-chain components, including substrate to ethereum and substrate to substrate. -Darwinia is now a parachain of [Polkadot](https://polkadot.subscan.io/parachain/2046). +Darwinia is now a [parachain of Polkadot](https://polkadot.subscan.io/parachain/2046). ## Network Info