
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@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.tuple
is used instead.Vyper
is currently not supported.FAQs
Customizable markdown smart contracts documentation
The npm package @dlsl/hardhat-markup receives a total of 17 weekly downloads. As such, @dlsl/hardhat-markup popularity was classified as not popular.
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
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.