Closed ghost closed 5 years ago
Have you gone through this? https://github.com/OpenZeppelin/solidity-docgen#dealing-with-imports
I have gone through the same. Finally it is working with following approach by giving full path- SOLC_ARGS="truffle/Assert.sol=$PWD/node_modules/truffle/build/Assert.sol tokens=$PWD/node_modules/truffle/test/sources/ethpm/installed_contracts/tokens/contracts/ ethpmpkg=$PWD/node_modules/truffle/test/sources/monorepo/installed_contracts/ethpmpkg /app/konfidio-id-generator-lib/IdGenerator.sol /app/authenticator/contracts/Authorizer.sol" solidity-docgen . . .
Great! I think issue can be closed now. :blush:
It is fixed by supplying path for each file in SOLC_ARGS.
I am trying to run following command - solidity-docgen . ./contracts ./docs Dir: /home/ganeshdip/KCS/tryImport/dir1 contract: MyContract1.sol in which I am importing MyContract2.sol Location of contract MyContract1: /home/ganeshdip/KCS/tryImport/dir1/contracts Location of contract MyContract2: /home/ganeshdip/KCS/tryImport/dir2/contracts I am getting following error-
Can you please let me know, how to successfully generate the documentation.