Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
novaknole committed Nov 19, 2024
1 parent 9b1ee66 commit 59ffafa
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 445 deletions.
13 changes: 9 additions & 4 deletions packages/contracts/docs/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
const path = require('path');
const fs = require('fs');

const {version, repository} = require('../package.json');

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

// overwrite the functions.
helpers.version = () => version;
helpers.githubURI = () => repository.url;

/** @type import('solidity-docgen/dist/config').UserConfig */
module.exports = {
outputDir: 'docs/modules/api/pages',
Expand All @@ -9,9 +17,6 @@ module.exports = {
pageExtension: '.adoc',
collapseNewlines: true,
pages: (_, file, config) => {
const sourcesDir = path.resolve(config.root, config.sourcesDir);
let dir = path.resolve(config.root, file.absolutePath);

return 'TokenVoting' + config.pageExtension;
return 'multisig' + config.pageExtension;
},
};
2 changes: 1 addition & 1 deletion packages/contracts/docs/modules/api/nav.adoc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.API
* xref:TokenVoting.adoc[Token Voting]
* xref:multisig.adoc[Multisig]

Large diffs are not rendered by default.

174 changes: 0 additions & 174 deletions packages/contracts/docs/templates/contract.hbs

This file was deleted.

80 changes: 0 additions & 80 deletions packages/contracts/docs/templates/helpers.js

This file was deleted.

4 changes: 0 additions & 4 deletions packages/contracts/docs/templates/page.hbs

This file was deleted.

85 changes: 0 additions & 85 deletions packages/contracts/docs/templates/properties.js

This file was deleted.

4 changes: 4 additions & 0 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"typescript": "^5.2.2",
"lodash.startcase": "^4.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/aragon/token-voting-plugin"
},
"files": [
"/src"
],
Expand Down
Loading

0 comments on commit 59ffafa

Please sign in to comment.