Skip to content

Commit f48d676

Browse files
authored
Split contracts API doc into multiple files (#3657)
Having all the contracts documented in one common file turned out to be hard to render by the GitBook. We're switching to documenting each contract file in a separate Markdown file. As the generated files will be much smaller now and GitBook has its own file ON THIS PAGE section, we don't need to generate Table of Contents. The one thing that we also change as part of this PR is rsyncDelete setting - we'll have it set to true, in order to delete documentation of contracts which get removed from the repo. As we're not working directly on a main branch, this isn't dangerous (we'll see all the deletions in the PR diff).
2 parents 898dc9e + 13ad2b2 commit f48d676

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/contracts-ecdsa-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
with:
4747
projectDir: /solidity/ecdsa
4848
publish: false
49+
addTOC: false
4950
commentPR: true
5051
exportAsGHArtifacts: true
5152

@@ -74,12 +75,14 @@ jobs:
7475
with:
7576
projectDir: /solidity/ecdsa
7677
publish: true
78+
addTOC: false
7779
verifyCommits: true
7880
destinationRepo: threshold-network/threshold
7981
destinationFolder: ./docs/app-development/tbtc-v2/ecdsa-api
8082
destinationBaseBranch: main
8183
userEmail: 38324465+thesis-valkyrie@users.noreply.github.com
8284
userName: Valkyrie
85+
rsyncDelete: true
8386
secrets:
8487
githubToken: ${{ secrets.THRESHOLD_DOCS_GITHUB_TOKEN }}
8588
gpgPrivateKey: ${{ secrets.THRESHOLD_DOCS_GPG_PRIVATE_KEY_BASE64 }}

.github/workflows/contracts-random-beacon-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
with:
4747
projectDir: /solidity/random-beacon
4848
publish: false
49+
addTOC: false
4950
commentPR: true
5051
exportAsGHArtifacts: true
5152

@@ -63,12 +64,14 @@ jobs:
6364
with:
6465
projectDir: /solidity/random-beacon
6566
publish: true
67+
addTOC: false
6668
verifyCommits: true
6769
destinationRepo: threshold-network/threshold
6870
destinationFolder: ./docs/app-development/random-beacon/random-beacon-api
6971
destinationBaseBranch: main
7072
userEmail: 38324465+thesis-valkyrie@users.noreply.github.com
7173
userName: Valkyrie
74+
rsyncDelete: true
7275
secrets:
7376
githubToken: ${{ secrets.THRESHOLD_DOCS_GITHUB_TOKEN }}
7477
gpgPrivateKey: ${{ secrets.THRESHOLD_DOCS_GPG_PRIVATE_KEY_BASE64 }}

solidity/ecdsa/hardhat.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const config: HardhatUserConfig = {
225225
docgen: {
226226
outputDir: "generated-docs",
227227
templates: "docgen-templates",
228-
pages: "single", // `single`, `items` or `files`
228+
pages: "files", // `single`, `items` or `files`
229229
exclude: ["./test"],
230230
},
231231
}

solidity/random-beacon/hardhat.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const config: HardhatUserConfig = {
196196
docgen: {
197197
outputDir: "generated-docs",
198198
templates: "docgen-templates",
199-
pages: "single", // `single`, `items` or `files`
199+
pages: "files", // `single`, `items` or `files`
200200
exclude: ["./test"],
201201
},
202202
}

0 commit comments

Comments
 (0)