view all functions list WIP

pull/55/head
Scott Anderson 2019-02-11 09:07:11 -07:00
parent d7f4cc6bcb
commit c6ea4639fa
3 changed files with 18 additions and 33 deletions

View File

@ -0,0 +1,11 @@
---
title: Complete list of Flux functions
description: View the full library of documented Flux functions.
menu:
v2_0_ref:
name: View all functions
parent: Flux functions
weight: 299
---
{{< list-all-functions >}}

View File

@ -1,33 +0,0 @@
{{ $category := (.Get "category") }}
{{ $menu := (.Get "menu")}}
<ul>
{{ range (index .Site.Menus $menu) }}
{{ if .HasChildren}}
{{ range .Children }}
{{ if eq .Parent $category }}
{{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
{{ if .HasChildren}}
{{ range .Children }}
{{ if eq .Parent $category }}
{{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
{{ if .HasChildren}}
{{ range .Children }}
{{ if eq .Parent $category }}
{{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</ul>

View File

@ -0,0 +1,7 @@
{{ $currentVersion := (index (findRE "[^/]+.*?" .Page.URL) 0) }}
{{ $menuID := print (replaceRE `\.` "_" $currentVersion) "_ref" }}
{{ $functionsPath := print "/" $currentVersion "/reference/flux/functions" }}
{{ $currentVersion}}
{{ $menuID }}
{{ $functionsPath }}