typedoc-plugin-solidity

1.0.0 • Public • Published

typedoc-plugin-solidity

This typedoc plugin adds support for solidity code highlighting.

Package version License

Installation

This plugin is published as an npm package. You can install it through npm or yarn.

# Using yarn
yarn add typedoc-plugin-solidity

# Using npm
npm install typedoc-plugin-solidity

Once installed, typedoc will automatically detect and use it.

Example

This below example will now properly render and highlight the solidity code in the comment.

  /**
   * Returns validity and price for some pair of assets from Kyber
   *
   * ```solidity
   * function getKyberPrice(address,address) view returns (bool, uint256)
   * ```
   *
   * @param _baseAsset Address of base asset from the pair
   * @param _quoteAsset Address of quote asset from the pair
   * @returns
   *   - `kyberPrice_` — The price of _baseAsset in terms of _quoteAsset
   *   - `validity_` — Whether the price for this pair is valid
   */
  getKyberPrice(
    _baseAssetstring,
    _quoteAssetstring,
    $$overrides?: ethers.CallOverrides,
  ) => Promise<{ validity_boolean; kyberPrice_ethers.BigNumber }>;

Contributing

Third party contributions to this project are welcome and encouraged. If you want to contribute, please open an issue before submtting a pull requests so we can discuss the proposed changes and/or additions.

Please note that all my repositories follow the Code of Conduct, make sure to review and follow it.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.00
0.0.10

Package Sidebar

Install

npm i typedoc-plugin-solidity

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.6 kB

Total Files

6

Last publish

Collaborators

  • thefubhy