Skip to content

Commit

Permalink
new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
novaknole committed Nov 22, 2024
1 parent 4324a09 commit e32a027
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions contracts/docs/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ const { version, repository } = require('../package.json');

const helpers = require(path.resolve(__dirname, './templates/helpers'));

// TODO: yarn test fails because it runs this file anyways
// and helpers is not found.
// overwrite the functions.

// Tags on `osx-commons-contracts` are created as below.
// Tags on `osx-commons-contracts` repo are created as below.
helpers.version = () => `${version}-contracts/contracts`;

helpers.githubURI = () => repository.url;
Expand Down
2 changes: 1 addition & 1 deletion contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const config: HardhatUserConfig = {
outDir: 'typechain',
target: 'ethers-v5',
},
docgen: require('./docs/config.js'),
docgen: process.env.DOCS ? require('./docs/config.js') : undefined,
};

export default config;
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@
"test": "hardhat test",
"typechain": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat typechain",
"clean": "rimraf ./artifacts ./cache ./coverage ./typechain ./types ./coverage.json && yarn typechain",
"docs": "scripts/prepare-docs.sh"
"docs": "DOCS=true scripts/prepare-docs.sh"
}
}

0 comments on commit e32a027

Please sign in to comment.