Skip to content

Commit

Permalink
chore: add sugested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
b00ste committed Jul 23, 2023
1 parent 51409c7 commit 7ebc05e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ deployments

.idea

# auto-generated docs
docs/

# Solidity Flattener
flat_contracts/

Expand Down
7 changes: 6 additions & 1 deletion dodoc/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,13 @@ const generateAdditionalErrorInfo = (contract: string, code: string) => {
};

const generateContractLink = (contractName: string) => {
if (contractName === 'UniversalProfile')
if (contractName === 'UniversalProfile') {
return `${linkBase}lsp-smart-contracts/blob/develop/contracts/UniversalProfile.sol`;
}

if (contractName === 'ERC725') {
return 'https://github.com/ERC725Alliance/ERC725/blob/main/implementations/contracts/ERC725.sol';
}

const contractPath = dodocConfig.include.filter((value) => {
if (value.endsWith(`${contractName}.sol`)) return value;
Expand Down
2 changes: 1 addition & 1 deletion dodoc/template.sqrl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{/generateContractSpecsDetails}}

:::
:::info Soldity implementation
:::info Solidity implementation

[`{{it.name}}.sol`]({{@generateContractLink(it.name) /}})

Expand Down

0 comments on commit 7ebc05e

Please sign in to comment.