Skip to content

Split contracts API doc into multiple files#640

Merged
pdyraga merged 1 commit intomainfrom
split-api-docs-to-multiple-files
Jun 29, 2023
Merged

Split contracts API doc into multiple files#640
pdyraga merged 1 commit intomainfrom
split-api-docs-to-multiple-files

Conversation

@michalinacienciala
Copy link
Copy Markdown
Contributor

@michalinacienciala michalinacienciala commented Jun 28, 2023

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).

Refs:
threshold-network/solidity-contracts#149
threshold-network/keep-core#3657
threshold-network/threshold#36

@michalinacienciala michalinacienciala force-pushed the split-api-docs-to-multiple-files branch from b62ab68 to 9084ab0 Compare June 28, 2023 14:13
@github-actions
Copy link
Copy Markdown

Solidity API documentation preview available in the artifacts of the https://github.com/keep-network/tbtc-v2/actions/runs/5402149115 check.

@github-actions
Copy link
Copy Markdown

Solidity API documentation preview available in the artifacts of the https://github.com/keep-network/tbtc-v2/actions/runs/5402158284 check.

@michalinacienciala michalinacienciala force-pushed the split-api-docs-to-multiple-files branch from 9084ab0 to c399aae Compare June 28, 2023 14:31
@github-actions
Copy link
Copy Markdown

Solidity API documentation preview available in the artifacts of the https://github.com/keep-network/tbtc-v2/actions/runs/5402358617 check.

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 delitions in the PR diff).
@michalinacienciala michalinacienciala force-pushed the split-api-docs-to-multiple-files branch from c399aae to 8682e64 Compare June 28, 2023 16:31
@michalinacienciala
Copy link
Copy Markdown
Contributor Author

Docs updated in threshold-network/threshold#36.

@michalinacienciala michalinacienciala added the 📖 documentation Improvements or additions to documentation label Jun 28, 2023
@michalinacienciala michalinacienciala self-assigned this Jun 28, 2023
@michalinacienciala michalinacienciala marked this pull request as ready for review June 28, 2023 16:33
@github-actions
Copy link
Copy Markdown

Solidity API documentation preview available in the artifacts of the https://github.com/keep-network/tbtc-v2/actions/runs/5403551443 check.

@pdyraga pdyraga merged commit 94c78ce into main Jun 29, 2023
@pdyraga pdyraga deleted the split-api-docs-to-multiple-files branch June 29, 2023 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📖 documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants