Debian Codegraph @

doc2go-headers.patch

raw
1 --- a/internal/html/tmpl/package.html
2 +++ b/internal/html/tmpl/package.html
3 @@ -6,15 +6,15 @@
4 {{ define "NavbarExtra" }} | <a href="#pkg-index">Index</a>{{ end -}}
5
6 {{ define "Body" -}}
7 -<h2 id="pkg-overview" {{- if pagefind }} data-pagefind-meta="Import path:{{ .ImportPath }}"{{end }}>
8 +<h1 id="pkg-overview" {{- if pagefind }} data-pagefind-meta="Import path:{{ .ImportPath }}"{{end }}>
9 {{- /**/ -}}
10 package {{ .Name -}}
11 -</h2>
12 +</h1>
13 {{ .Import | code }}
14 {{ .Doc | doc 3 -}}
15 {{ template "examples" (dict "Level" 3 "Examples" .Examples) -}}
16
17 -<h3 id="pkg-index" {{- pagefindIgnore -}}>Index</h3>
18 +<h2 id="pkg-index" {{- pagefindIgnore -}}>Index</h2>
19 {{ if or .Constants .Variables .Functions .Types -}}
20 <ul {{- pagefindIgnore -}}>
21 {{ if .Constants }}<li><a href="#pkg-constants">Constants</a></li>{{ end -}}
22 @@ -41,7 +41,7 @@
23 {{- end }}
24
25 {{- with .AllExamples -}}
26 -<h4 id="pkg-examples" {{- pagefindIgnore -}}>Examples</h4>
27 +<h3 id="pkg-examples" {{- pagefindIgnore -}}>Examples</h3>
28 <ul>
29 {{ range . -}}
30 {{- $id := printf "example-%s" .Parent.String -}}
31 @@ -54,20 +54,20 @@
32 {{- end -}}
33
34 {{ with .Constants -}}
35 - <h3 id="pkg-constants" {{- pagefindIgnore -}}>Constants</h3>
36 + <h2 id="pkg-constants" {{- pagefindIgnore -}}>Constants</h2>
37 {{ range . }}{{ template "constOrVar" . }}{{ end -}}
38 {{ end -}}
39
40 {{ with .Variables -}}
41 - <h3 id="pkg-variables" {{- pagefindIgnore -}}>Variables</h3>
42 + <h2 id="pkg-variables" {{- pagefindIgnore -}}>Variables</h2>
43 {{ range . }}{{ template "constOrVar" . }}{{ end -}}
44 {{ end -}}
45
46 {{ with .Functions -}}
47 - <h3 id="pkg-functions" {{- pagefindIgnore -}}>Functions</h3>
48 + <h2 id="pkg-functions" {{- pagefindIgnore -}}>Functions</h2>
49 {{ range . -}}
50 {{ if .Deprecated }}<details class="deprecated"><summary>{{ end -}}
51 - <h3 id="{{ .Name }}">func {{ .Name }} {{- template "deprecatedTag" . }}</h3>
52 + <h2 id="{{ .Name }}">func {{ .Name }} {{- template "deprecatedTag" . }}</h2>
53 {{- if .Deprecated }}</summary>{{ end }}
54 {{ .Decl | code }}
55 {{ .Doc | doc 4 -}}
56 @@ -77,10 +77,10 @@
57 {{ end -}}
58
59 {{ with .Types -}}
60 - <h3 id="pkg-types" {{- pagefindIgnore -}}>Types</h3>
61 + <h2 id="pkg-types" {{- pagefindIgnore -}}>Types</h2>
62 {{ range . -}}
63 {{ if .Deprecated }}<details class="deprecated"><summary>{{ end -}}
64 - <h3 id="{{ .Name }}">type {{ .Name }} {{- template "deprecatedTag" . }}</h3>
65 + <h2 id="{{ .Name }}">type {{ .Name }} {{- template "deprecatedTag" . }}</h2>
66 {{- if .Deprecated }}</summary>{{ end }}
67 {{ .Decl | code }}
68 {{ .Doc | doc 4 -}}
69 @@ -119,7 +119,7 @@
70 {{ $id := .Name -}}
71 {{ with .RecvType }}{{ $id = printf "%s.%s" . $id }}{{ end -}}
72 {{ if .Deprecated }}<details class="deprecated"><summary>{{ end -}}
73 - <h4 id="{{ $id }}">func {{ with .Recv }}({{ . }}) {{end }}{{ .Name }} {{- template "deprecatedTag" . }}</h4>
74 + <h3 id="{{ $id }}">func {{ with .Recv }}({{ . }}) {{end }}{{ .Name }} {{- template "deprecatedTag" . }}</h3>
75 {{- if .Deprecated }}</summary>{{ end }}
76 {{ .Decl | code }}
77 {{ .Doc | doc 5 -}}