Kaynağa Gözat

fix(docs): List TS docs alphabetically

Michael Bromley 6 yıl önce
ebeveyn
işleme
ce413a91e7

+ 1 - 1
docs/layouts/docs/list.html

@@ -8,7 +8,7 @@
     {{ if gt (len $list) 0 }}
     <h3>Contents:</h3>
     <ul class="contents-list">
-        {{ range ($list.ByParam "Title").ByParam "Weight" }}
+        {{ range $list.ByParam "title" }}
         <li>
             <a href="{{ .RelPermalink }}">{{ .Title }}</a>
         </li>

+ 1 - 1
docs/layouts/searchindex/searchindex.html

@@ -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'" "." -}}