This project distributes hbs
files and helpers.ts
that may be used to ease generating solidity documentation with solidity-docgen'
for MKDocs.
To use this project
- you must have
solidity-docgen
installed. git subtree add --prefix=docs/templates https://github.com/peeramid-labs/solidity-mkdocs main
- configure in your
hardhat.config.ts
file:
docgen: {
outputDir: './docs/contracts',
pages: 'files',
templates: 'docs/templates/src', // << This is the path to this project
sourcesDir: './src',
pageExtension: '.md',
exclude: ['mocks', 'initializers', 'vendor', 'modifiers', 'fixtures'],
},