From c6ea4639fae57afabe2f6f1659217c6cc21c0b11 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 11 Feb 2019 09:07:11 -0700 Subject: [PATCH] view all functions list WIP --- .../reference/flux/functions/all-functions.md | 11 +++++++ layouts/shortcodes/function-list.html | 33 ------------------- layouts/shortcodes/list-all-functions.html | 7 ++++ 3 files changed, 18 insertions(+), 33 deletions(-) create mode 100644 content/v2.0/reference/flux/functions/all-functions.md delete mode 100644 layouts/shortcodes/function-list.html create mode 100644 layouts/shortcodes/list-all-functions.html diff --git a/content/v2.0/reference/flux/functions/all-functions.md b/content/v2.0/reference/flux/functions/all-functions.md new file mode 100644 index 000000000..49ad31e2a --- /dev/null +++ b/content/v2.0/reference/flux/functions/all-functions.md @@ -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 >}} diff --git a/layouts/shortcodes/function-list.html b/layouts/shortcodes/function-list.html deleted file mode 100644 index 34a256068..000000000 --- a/layouts/shortcodes/function-list.html +++ /dev/null @@ -1,33 +0,0 @@ -{{ $category := (.Get "category") }} -{{ $menu := (.Get "menu")}} - diff --git a/layouts/shortcodes/list-all-functions.html b/layouts/shortcodes/list-all-functions.html new file mode 100644 index 000000000..9095b4c32 --- /dev/null +++ b/layouts/shortcodes/list-all-functions.html @@ -0,0 +1,7 @@ +{{ $currentVersion := (index (findRE "[^/]+.*?" .Page.URL) 0) }} +{{ $menuID := print (replaceRE `\.` "_" $currentVersion) "_ref" }} +{{ $functionsPath := print "/" $currentVersion "/reference/flux/functions" }} + +{{ $currentVersion}} +{{ $menuID }} +{{ $functionsPath }}