Expand description
GitSource + Deployments helpers.
Pure functions ported from the legacy forge-doc preprocessors:
git_source_url:<repo>/blob/<commit>/<rel>for a source file.read_deployments: load<dir>/<network>/<contract>.jsonartifacts.
Structsยง
- Deployment
- A contract deployment entry, deserialised from
<dir>/<network>/<contract>.json.
Functionsยง
- contract_
kind_ ๐str - The filename prefix used for a contract page.
- git_
raw_ url - Return a
{repo}/raw/{commit}/...URL suitable for embedding binary assets (images, fonts, etc.) directly rather than the GitHub blob viewer page. - git_
source_ url - Build the
{repo}/blob/{commit}/{rel}URL for a source file. - is_
safe_ ๐output_ path - Whether joining a generated path can stay within the documentation directory.
- page_
path ๐ - Construct an item page beside its source in the documentation tree.
- read_
deployments - Read all deployments for a Solidity contract file.
- relative_
source_ ๐path - Map a source to its documentation location, retaining the legacy external-library layout.