Skip to content

Commit

Permalink
docs/assets/css/extra.css,ethclient: use h4 for param+result sections
Browse files Browse the repository at this point in the history
This allows more precise deep (anchor) linking.

Fixes the extra css which remove the too-much-information
ul's from the right secondary nav.

Date: 2021-01-21 17:37:47-06:00
Signed-off-by: meows <b5c6@protonmail.com>
  • Loading branch information
meowsbits committed Jan 21, 2021
1 parent b11ef02 commit 8e230e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/assets/css/extra.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.md-nav.md-nav--secondary > ul ul ul {
nav.md-nav.md-nav--secondary > ul ul {
display: none;
}
}
4 changes: 2 additions & 2 deletions ethclient/docsgen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func TestRPCDiscover_BuildStatic(t *testing.T) {
{{ .Summary }}
__Params ({{ .Params | len }})__
#### Params ({{ .Params | len }})
{{ if gt (.Params | len) 0 }}
{{ if eq $methodmap.paramStructure "by-position" }}Parameters must be given _by position_.{{ else if eq $methodmap.paramStructure "by-name" }}Parameters must be given _by name_.{{ end }}
{{ range $index, $param := .Params }}
Expand All @@ -169,7 +169,7 @@ __{{ sum $index 1 }}:__ {{ template "contentDescTpl" $parammap }}
_None_
{{- end}}
__Result__
#### Result
{{ if .Result -}}
{{ $result := .Result | tomap }}
Expand Down

0 comments on commit 8e230e3

Please sign in to comment.