
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@dlsl/hardhat-markup
Advanced tools
Hardhat plugin to generate customizable smart contracts documentation.
This plugin generates markdown documentation of the contracts present in the project. Leveraging the natspec
and solc
capabilities, it is able to output beautiful uniswap-like .md
files.
npm install --save-dev @dlsl/hardhat-markup
Add the following statement to your hardhat.config.js
:
require("@dlsl/hardhat-markup")
Or, if you are using TypeScript, add this to your hardhat.config.ts
:
import "@dlsl/hardhat-markup"
The documentation generation can be run either with built-in compile
or the provided markup
task.
To view the available options, run these help commands:
npx hardhat help compile
npx hardhat help markup
This plugin does not extend the environment.
The npx hardhat markup
command will compile and generate documentation for all the contracts used in the project into the default folder.
Clean old artifacts via npx hardhat clean
command.
The default configuration looks as follows. You may customize all fields in your hardhat config file.
module.exports = {
markup: {
outdir: "./generated-markups",
onlyFiles: [],
skipFiles: [],
noCompile: false,
verbose: false,
},
}
outdir
: The directory where to store the generated documentationonlyFiles
: If specified, documentation will be generated only for matching sources, other will be ignoredskipFiles
: Documentation will not be generated for any matching sources, also if those match onlyFiles
noCompile
: Skips project recompilation before the documentation generationverbose
: Detailed logging on generation.sol
file or directory.node_modules
must not be present in the path.Vyper
is currently not supported.FAQs
Customizable markdown smart contracts documentation
We found that @dlsl/hardhat-markup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.