Skip to content

Commit 14e3903

Browse files
kkkk666web3jenks
andauthored
docs: update finality provider documentation to v1.1.0-rc.1 (#406)
* docs: update finality provider documentation to v1.1.0-rc.1 - Updated defaultRelease in multiple finality provider documentation files to v1.1.0-rc.1. - Adjusted release versions and URLs accordingly for consistency across the documentation. This change ensures that all references to the finality provider are aligned with the latest release candidate version. * docs: update finality provider documentation to v2.0.2 - Updated defaultRelease in multiple finality provider documentation files to v2.0.2. - Removed references to the previous release candidate version v1.1.0-rc.1 for consistency across the documentation. This change ensures that all finality provider documentation is aligned with the latest stable release version. * chore: trigger rebuild * chore: trigger CI * chore: trigger CI * chore: trigger CI --------- Co-authored-by: Jenks <me@jenksguo.com> Co-authored-by: Jenks <jenks@babylonlabs.io>
1 parent 706a76b commit 14e3903

8 files changed

Lines changed: 11 additions & 29 deletions

File tree

docs/operators/finality_providers/finality_providers.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,5 @@ export const rawUrl="https://raw.githubusercontent.com/babylonlabs-io/finality-p
1313
<RemoteMD
1414
rawUrl={rawUrl}
1515
hideRelease={false}
16-
defaultRelease="v1.0.0"
17-
releaseVersions={{
18-
"v1.1.0-rc.1": "https://raw.githubusercontent.com/babylonlabs-io/finality-provider/refs/tags/v1.1.0-rc.1/README.md",
19-
}}
16+
defaultRelease="v2.0.2"
2017
/>

docs/operators/finality_providers/fp_core_specs.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,5 @@ export const rawUrl="https://raw.githubusercontent.com/babylonlabs-io/finality-p
1313
<RemoteMD
1414
rawUrl={rawUrl}
1515
hideRelease={false}
16-
defaultRelease="v1.0.0"
17-
releaseVersions={{
18-
"v1.1.0-rc.1": "https://raw.githubusercontent.com/babylonlabs-io/finality-provider/refs/tags/v1.1.0-rc.1/docs/fp-core.md",
19-
}}
16+
defaultRelease="v2.0.2"
2017
/>

docs/operators/finality_providers/fp_finality_votes.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,5 @@ export const rawUrl="https://raw.githubusercontent.com/babylonlabs-io/finality-p
1313
<RemoteMD
1414
rawUrl={rawUrl}
1515
hideRelease={false}
16-
defaultRelease="v1.0.0"
17-
releaseVersions={{
18-
"v1.1.0-rc.1": "https://raw.githubusercontent.com/babylonlabs-io/finality-provider/refs/tags/v1.1.0-rc.1/docs/send-finality-vote.md",
19-
}}
16+
defaultRelease="v2.0.2"
2017
/>

docs/operators/finality_providers/fp_operations.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,5 @@ export const rawUrl="https://raw.githubusercontent.com/babylonlabs-io/finality-p
1313
<RemoteMD
1414
rawUrl={rawUrl}
1515
hideRelease={false}
16-
defaultRelease="v1.0.0"
17-
releaseVersions={{
18-
"v1.1.0-rc.1": "https://raw.githubusercontent.com/babylonlabs-io/finality-provider/refs/tags/v1.1.0-rc.1/docs/finality-provider-operation.md",
19-
}}
16+
defaultRelease="v2.0.2"
2017
/>

docs/operators/finality_providers/fp_public_randomness.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,5 @@ export const rawUrl="https://raw.githubusercontent.com/babylonlabs-io/finality-p
1313
<RemoteMD
1414
rawUrl={rawUrl}
1515
hideRelease={false}
16-
defaultRelease="v1.0.0"
17-
releaseVersions={{
18-
"v1.1.0-rc.1": "https://raw.githubusercontent.com/babylonlabs-io/finality-provider/refs/tags/v1.1.0-rc.1/docs/commit-pub-rand.md",
19-
}}
16+
defaultRelease="v2.0.2"
2017
/>

docs/operators/finality_providers/hmac_security.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,5 @@ export const rawUrl="https://raw.githubusercontent.com/babylonlabs-io/finality-p
1313
<RemoteMD
1414
rawUrl={rawUrl}
1515
hideRelease={false}
16-
defaultRelease="v1.0.0"
17-
releaseVersions={{
18-
"v1.1.0-rc.1": "https://raw.githubusercontent.com/babylonlabs-io/finality-provider/refs/tags/v1.1.0-rc.1/docs/hmac-security.md",
19-
}}
16+
defaultRelease="v2.0.2"
2017
/>

docs/operators/finality_providers/slashing_protection.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ export const rawUrl="https://raw.githubusercontent.com/babylonlabs-io/finality-p
1313
<RemoteMD
1414
rawUrl={rawUrl}
1515
hideRelease={false}
16-
defaultRelease="v1.0.0"
17-
releaseVersions={{
18-
"v1.1.0-rc.1": "https://raw.githubusercontent.com/babylonlabs-io/finality-provider/refs/tags/v1.1.0-rc.1/docs/slashing-protection.md",
19-
}}
16+
defaultRelease="v2.0.2"
2017
/>
2118

src/components/RemoteMD.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,10 @@ export default function RemoteMD({
195195
}
196196

197197
if (!initialKey && defaultRelease) {
198-
initialKey = defaultRelease;
198+
// Only use defaultRelease if it exists in the available releases
199+
if (releases.some(r => r.key === defaultRelease)) {
200+
initialKey = defaultRelease;
201+
}
199202
}
200203

201204
if (!initialKey && releases.length > 0) {

0 commit comments

Comments
 (0)