added view all flux functions doc

pull/55/head
Scott Anderson 2019-02-11 14:26:13 -07:00
parent c6ea4639fa
commit cb71fe1699
3 changed files with 13 additions and 5 deletions

View File

@ -8,4 +8,6 @@ menu:
weight: 299
---
This list below contains all documented Flux functions:
{{< list-all-functions >}}

View File

@ -27,7 +27,7 @@
<ul>
{{ range $pages.ByWeight }}
{{ $title := replaceRE `\(\)\ function` "" .Title }}
{{ $title := replaceRE `\ function` "" .Title }}
<li><a href="{{ .RelPermalink }}">{{ $title }}</a></li>
{{ end }}
<ul>

View File

@ -1,7 +1,13 @@
{{ $currentVersion := (index (findRE "[^/]+.*?" .Page.URL) 0) }}
{{ $menuID := print (replaceRE `\.` "_" $currentVersion) "_ref" }}
{{ $functionsPath := print "/" $currentVersion "/reference/flux/functions" }}
{{ $currentVersion}}
{{ $menuID }}
{{ $functionsPath }}
<ul>
{{ range where $.Site.RegularPages.ByTitle "Section" $currentVersion }}
{{ if in .Title "() function" }}
{{ $title := replaceRE `\ function` "" .Title }}
<li>
<a href="{{ .URL }}">{{ $title }}</a>
</li>
{{ end }}
{{ end }}
</ul>