Add import statements and GitHub link in API docs (#2714)
This commit is contained in:
committed by
GitHub
parent
9d5f77db9d
commit
75f6dbb86c
10
docs/helpers.js
Normal file
10
docs/helpers.js
Normal file
@ -0,0 +1,10 @@
|
||||
const { version } = require('../package.json');
|
||||
|
||||
module.exports = {
|
||||
'github-link': (contractPath) => {
|
||||
if (typeof contractPath !== 'string') {
|
||||
throw new Error('Missing argument');
|
||||
}
|
||||
return `https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v${version}/contracts/${contractPath}`;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user