From a4fc50c501ad078d8705715c4a10ea98c52180fb Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Fri, 20 Nov 2020 13:37:22 -0300 Subject: [PATCH] Only display own modifiers in contract docs index (cherry picked from commit e12cb97e16768115e40f879822883dad3d5801a5) --- docs/contract.hbs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/contract.hbs b/docs/contract.hbs index 04a8c81a5..091a45ff2 100644 --- a/docs/contract.hbs +++ b/docs/contract.hbs @@ -12,19 +12,12 @@ {{natspec.devdoc}} -{{#if modifiers}} +{{#if ownModifiers}} [.contract-index] .Modifiers -- -{{#each inheritedItems}} -{{#unless @first}} -[.contract-subindex-inherited] -.{{contract.name}} -{{/unless}} -{{#each modifiers}} +{{#each ownModifiers}} * {xref-{{slug anchor~}} }[`++{{name}}({{args.names}})++`] -{{/each}} - {{/each}} -- {{/if}}