Skip to content

Commit

Permalink
Merge branch 'master' into patch/copyrights
Browse files Browse the repository at this point in the history
  • Loading branch information
zZoMROT committed Feb 27, 2024
2 parents b475c13 + b3769eb commit 2dceb8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ Add to `package.json` file solidity compiler version and shortcut to run command
"docify": "npx solidity-utils-docify"
```

You can set output directory with ENV variable:
```
"docify": "DOCGEN_OUTPUT_DIR=./docs npx solidity-utils-docify"
```

...

#### Dependencies list (imports-list)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@1inch/solidity-utils",
"version": "3.8.2",
"version": "3.8.3",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion utils/docify.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const SOLC_NPM_NAME = 'solc';
const BASE_DIR = 'docgen';
const SCRIPT_DIR = __dirname;
const INPUT_DIR = 'contracts';
const OUTPUT_DIR = `${BASE_DIR}/docs`;
const OUTPUT_DIR = process.env.DOCGEN_OUTPUT_DIR || `${BASE_DIR}/docs`;
const HELPERS_PATH = `${SCRIPT_DIR}/solidity-docgen-helpers.js`;

const fs = require('fs');
Expand Down

0 comments on commit 2dceb8f

Please sign in to comment.