From faa480894f7590c4977ea90c05bb6615f57fc7cf Mon Sep 17 00:00:00 2001 From: Pradeep Bhadani Date: Thu, 18 May 2017 15:03:13 +0000 Subject: [PATCH 1/4] Add note in documentation for pow function --- website/source/docs/configuration/interpolation.html.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index bd5c18b31..84eb47a09 100644 --- a/website/source/docs/configuration/interpolation.html.md +++ b/website/source/docs/configuration/interpolation.html.md @@ -314,6 +314,8 @@ The supported built-in functions are: * `pow(x, y)` - Returns the base `x` of exponential `y`. + *NOTE* : This function accepts float values. + Example: * `${pow(3,2)}` = 9 * `${pow(4,0)}` = 1 From c35d2325efa7e7804c4c74c05ee1b0483682872d Mon Sep 17 00:00:00 2001 From: Pradeep Bhadani Date: Thu, 18 May 2017 15:23:12 +0000 Subject: [PATCH 2/4] Update pow function description --- website/source/docs/configuration/interpolation.html.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index 84eb47a09..b3ecf410c 100644 --- a/website/source/docs/configuration/interpolation.html.md +++ b/website/source/docs/configuration/interpolation.html.md @@ -312,14 +312,13 @@ The supported built-in functions are: * `pathexpand(string)` - Returns a filepath string with `~` expanded to the home directory. Note: This will create a plan diff between two different hosts, unless the filepaths are the same. - * `pow(x, y)` - Returns the base `x` of exponential `y`. - - *NOTE* : This function accepts float values. + * `pow(x, y)` - Returns the base `x` of exponential `y` as a float. Example: * `${pow(3,2)}` = 9 * `${pow(4,0)}` = 1 + * `replace(string, search, replace)` - Does a search and replace on the given string. All instances of `search` are replaced with the value of `replace`. If `search` is wrapped in forward slashes, it is treated From d316205cf5f496884c5c10372aa464e4c91a8f30 Mon Sep 17 00:00:00 2001 From: Pradeep Bhadani Date: Fri, 19 May 2017 08:05:18 +0000 Subject: [PATCH 3/4] Remove extra line --- website/source/docs/configuration/interpolation.html.md | 1 - 1 file changed, 1 deletion(-) diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index b3ecf410c..09fc026de 100644 --- a/website/source/docs/configuration/interpolation.html.md +++ b/website/source/docs/configuration/interpolation.html.md @@ -318,7 +318,6 @@ The supported built-in functions are: * `${pow(3,2)}` = 9 * `${pow(4,0)}` = 1 - * `replace(string, search, replace)` - Does a search and replace on the given string. All instances of `search` are replaced with the value of `replace`. If `search` is wrapped in forward slashes, it is treated From 9b3e43016e321e22a55b4db1025a0faa66dfccba Mon Sep 17 00:00:00 2001 From: Pradeep Bhadani Date: Fri, 19 May 2017 14:01:54 +0100 Subject: [PATCH 4/4] Remove extra space --- website/source/docs/configuration/interpolation.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index 09fc026de..9889ed410 100644 --- a/website/source/docs/configuration/interpolation.html.md +++ b/website/source/docs/configuration/interpolation.html.md @@ -312,7 +312,7 @@ The supported built-in functions are: * `pathexpand(string)` - Returns a filepath string with `~` expanded to the home directory. Note: This will create a plan diff between two different hosts, unless the filepaths are the same. - * `pow(x, y)` - Returns the base `x` of exponential `y` as a float. + * `pow(x, y)` - Returns the base `x` of exponential `y` as a float. Example: * `${pow(3,2)}` = 9