Skip to content

Commit

Permalink
De-boost smart contract API pages from search
Browse files Browse the repository at this point in the history
 flare-smart-contracts 51d7a33f state-connector-protocol 2ad84ea
  • Loading branch information
segfaultxavi committed Mar 4, 2024
1 parent 07e1a41 commit 069b279
Show file tree
Hide file tree
Showing 79 changed files with 161 additions and 3 deletions.
8 changes: 6 additions & 2 deletions docgen/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,17 @@ print_yml $internal_interfaces
mv ../mkdocs.yml.tmp ../mkdocs.yml

# Copy all pages to the docs repo
# In the process, special-case links to files that exist in the "attestation-types" folder,
# and replace them with the correct link.
attestation_types=$(ls ../docs/apis/attestation-types)
attestation_types=$(echo $attestation_types | sed "s/ /|/g")
for f in $contracts $interfaces $internal_interfaces;
do
# In the process, special-case links to files that exist in the "attestation-types" folder,
# and replace them with the correct link.
cat $f | sed -E "s%(\[[^]]*\]\()\./(($attestation_types)\))%\1../attestation-types/\2%g" > $docs/$(basename $f)
# And insert a search de-boost, since these pages should not typically be the first result returned by search.
sed -i '2 a \
search:\
boost: 0.5' $docs/$(basename $f)
done
sed -i -E "s%(\[[^]]*\]\()\./(($attestation_types)\))%\1../attestation-types/\2%g" $docs/index.md

Expand Down
2 changes: 1 addition & 1 deletion docgen/repos.list
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[email protected]:flarenetwork/flare-smart-contracts.git master https://gitlab.com/flarenetwork/flare-smart-contracts/-/tree/master hardhatSetup.config.ts yarn compile
[email protected]:flarenetwork/state-connector-protocol.git STAT-28 https://github.com/flare-foundation/songbird-state-connector-protocol/tree/main hardhat.config.ts yarn hardhat compile
[email protected]:flarenetwork/state-connector-protocol.git main https://github.com/flare-foundation/songbird-state-connector-protocol/tree/main hardhat.config.ts yarn hardhat compile
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/AddressUpdatable.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: AddressUpdatable
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/AddressUpdater.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: AddressUpdater
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/AddressValidityVerification.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: AddressValidityVerification
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: BalanceDecreasingTransactionVerification
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/CheckPointable.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: CheckPointable
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/ClaimSetupManager.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: ClaimSetupManager
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/CleanupBlockNumberManager.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: CleanupBlockNumberManager
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/CloneFactory.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: CloneFactory
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: ConfirmedBlockHeightExistsVerification
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/Delegatable.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Delegatable
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/EVMTransactionVerification.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: EVMTransactionVerification
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/FlareContractRegistry.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: FlareContractRegistry
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/FlareDaemon.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: FlareDaemon
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/Ftso.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Ftso
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/FtsoManager.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: FtsoManager
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/FtsoRegistry.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: FtsoRegistry
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/FtsoRewardManager.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: FtsoRewardManager
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/GovernanceSettings.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: GovernanceSettings
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/GovernanceVotePower.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: GovernanceVotePower
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/Governed.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Governed
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/GovernedAndFlareDaemonized.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: GovernedAndFlareDaemonized
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/GovernedAtGenesis.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: GovernedAtGenesis
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/GovernedBase.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: GovernedBase
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IAddressValidityVerification.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IAddressValidityVerification
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IBalanceDecreasingTransactionVerification
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IClaimSetupManager.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IClaimSetupManager
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IConfirmedBlockHeightExistsVerification
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IEVMTransactionVerification.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IEVMTransactionVerification
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IFlareContractRegistry.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IFlareContractRegistry
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IFlareDaemonize.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IFlareDaemonize
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IFtso.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IFtso
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IFtsoGenesis.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IFtsoGenesis
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IFtsoManager.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IFtsoManager
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IFtsoManagerGenesis.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IFtsoManagerGenesis
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IFtsoRegistry.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IFtsoRegistry
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IFtsoRegistryGenesis.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IFtsoRegistryGenesis
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IFtsoRewardManager.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IFtsoRewardManager
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IGovernanceSettings.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IGovernanceSettings
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IGovernanceVotePower.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IGovernanceVotePower
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IIAddressUpdatable.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IIAddressUpdatable
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IIAddressUpdater.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IIAddressUpdater
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IIClaimSetupManager.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IIClaimSetupManager
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IICleanable.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IICleanable
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IIFtso.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IIFtso
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IIFtsoManager.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IIFtsoManager
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IIFtsoRegistry.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IIFtsoRegistry
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
2 changes: 2 additions & 0 deletions docs/apis/smart-contracts/IIFtsoRewardManager.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: IIFtsoRewardManager
search:
boost: 0.5
---

<!-- This is an autogenerated file. Do not edit! -->
Expand Down
Loading

0 comments on commit 069b279

Please sign in to comment.