|
|
@@ -1,7 +1,7 @@
|
|
|
{
|
|
|
result :[
|
|
|
{{- range where .Site.Pages "Section" "docs" -}}
|
|
|
- {{ $titles := findRE "<h(2|3).*?>(.|\n)*?</h(2|3)>" .Content -}}
|
|
|
+ {{ $titles := findRE "<h(1|2).*?>(.|\n)*?</h(1|2)>" .Content -}}
|
|
|
{{ $plain := apply $titles "plainify" "." -}}
|
|
|
{{ $cleaned := $plain | complement (slice "constructor" "Signature" "Members") -}}
|
|
|
{{ $quoted := apply $cleaned "replaceRE" ".*" "'$0'" "." -}}
|