From cf75f06805a775dfba18cee13d1416d548a546fa Mon Sep 17 00:00:00 2001 From: lovestaco Date: Sat, 22 Jul 2023 11:52:57 +0530 Subject: [PATCH] Make mkdocs, documentation --- docs/Lama2/docs/reference/parser.md | 12 ++++++------ docs/Lama2/docs/reference/preprocess.md | 6 +++--- docs/Lama2/site/reference/parser.html | 12 ++++++------ docs/Lama2/site/reference/preprocess.html | 6 +++--- docs/Lama2/site/sitemap.xml.gz | Bin 402 -> 402 bytes 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/Lama2/docs/reference/parser.md b/docs/Lama2/docs/reference/parser.md index 5ef8ca8e..8002689c 100644 --- a/docs/Lama2/docs/reference/parser.md +++ b/docs/Lama2/docs/reference/parser.md @@ -82,7 +82,7 @@ var DataInputType string ``` -## func [CustomPairMerge]() +## func [CustomPairMerge]() ```go func CustomPairMerge(destination, source interface{}) interface{} @@ -122,7 +122,7 @@ func (p *Lama2Parser) AnyType() (*gabs.Container, error) AnyType is the top\-most element of a JSON structure It consists of Complex and Primitive Types -### func \(\*Lama2Parser\) [Boolean]() +### func \(\*Lama2Parser\) [Boolean]() ```go func (p *Lama2Parser) Boolean() (*gabs.Container, error) @@ -320,7 +320,7 @@ func (p *Lama2Parser) Lama2File() (*gabs.Container, error) -### func \(\*Lama2Parser\) [List]() +### func \(\*Lama2Parser\) [List]() ```go func (p *Lama2Parser) List() (*gabs.Container, error) @@ -329,7 +329,7 @@ func (p *Lama2Parser) List() (*gabs.Container, error) List is a slightly lenient version of standard JSON list. In Lama2 List, it is OK to have a trailing comma after the last element \(whereas in strict JSON, it is not OK to have trailing comma\) -### func \(\*Lama2Parser\) [Map]() +### func \(\*Lama2Parser\) [Map]() ```go func (p *Lama2Parser) Map() (*gabs.Container, error) @@ -347,7 +347,7 @@ func (p *Lama2Parser) Multipart() (*gabs.Container, error) -### func \(\*Lama2Parser\) [Null]() +### func \(\*Lama2Parser\) [Null]() ```go func (p *Lama2Parser) Null() (*gabs.Container, error) @@ -374,7 +374,7 @@ func (p *Lama2Parser) OneNine() (*gabs.Container, error) -### func \(\*Lama2Parser\) [Pair]() +### func \(\*Lama2Parser\) [Pair]() ```go func (p *Lama2Parser) Pair() (*gabs.Container, error) diff --git a/docs/Lama2/docs/reference/preprocess.md b/docs/Lama2/docs/reference/preprocess.md index e839408e..b37ed095 100644 --- a/docs/Lama2/docs/reference/preprocess.md +++ b/docs/Lama2/docs/reference/preprocess.md @@ -70,7 +70,7 @@ func ExpandURL(block *gabs.Container, vm *goja.Runtime) -## func [GetL2EnvVariables]() +## func [GetL2EnvVariables]() ```go func GetL2EnvVariables(dir string) ([]byte, error) @@ -79,7 +79,7 @@ func GetL2EnvVariables(dir string) ([]byte, error) -## func [GetLamaFileAsString]() +## func [GetLamaFileAsString]() ```go func GetLamaFileAsString(path string) string @@ -88,7 +88,7 @@ func GetLamaFileAsString(path string) string -## func [LamaFile]() +## func [LamaFile]() ```go func LamaFile(inputFile string) (string, string) diff --git a/docs/Lama2/site/reference/parser.html b/docs/Lama2/site/reference/parser.html index 9a015bc4..65887c0f 100644 --- a/docs/Lama2/site/reference/parser.html +++ b/docs/Lama2/site/reference/parser.html @@ -1194,7 +1194,7 @@

Variables
var DataInputType string
 

-

func CustomPairMerge

+

func CustomPairMerge

func CustomPairMerge(destination, source interface{}) interface{}
 

CustomPairMerge uses a gabs feature to deal with merge conflicts. More here: https://github.com/HexmosTech/gabs/blob/master/gabs.go#L511

@@ -1217,7 +1217,7 @@

func (*Lama2Parser)

-

func (*Lama2Parser) Boolean

+

func (*Lama2Parser) Boolean

func (p *Lama2Parser) Boolean() (*gabs.Container, error)
 

@@ -1314,12 +1314,12 @@

func (*Lama2Parser)
func (p *Lama2Parser) Lama2File() (*gabs.Container, error)
 

-

func (*Lama2Parser) List

+

func (*Lama2Parser) List

func (p *Lama2Parser) List() (*gabs.Container, error)
 

List is a slightly lenient version of standard JSON list. In Lama2 List, it is OK to have a trailing comma after the last element (whereas in strict JSON, it is not OK to have trailing comma)

-

func (*Lama2Parser) Map

+

func (*Lama2Parser) Map

func (p *Lama2Parser) Map() (*gabs.Container, error)
 

Map is a slightly lenient version of standard JSON map. In Lama2 Map, it is OK to have a trailing comma after the last element (whereas in strict JSON, it is not OK to have trailing comma)

@@ -1328,7 +1328,7 @@

func (*Lama2Parser)
func (p *Lama2Parser) Multipart() (*gabs.Container, error)
 

-

func (*Lama2Parser) Null

+

func (*Lama2Parser) Null

func (p *Lama2Parser) Null() (*gabs.Container, error)
 

@@ -1341,7 +1341,7 @@

func (*Lama2Parser)
func (p *Lama2Parser) OneNine() (*gabs.Container, error)
 

-

func (*Lama2Parser) Pair

+

func (*Lama2Parser) Pair

func (p *Lama2Parser) Pair() (*gabs.Container, error)
 

diff --git a/docs/Lama2/site/reference/preprocess.html b/docs/Lama2/site/reference/preprocess.html index aaeedc11..809bdfb5 100644 --- a/docs/Lama2/site/reference/preprocess.html +++ b/docs/Lama2/site/reference/preprocess.html @@ -823,15 +823,15 @@

func
func ExpandURL(block *gabs.Container, vm *goja.Runtime)
 

-

func GetL2EnvVariables

+

func GetL2EnvVariables

func GetL2EnvVariables(dir string) ([]byte, error)
 

-

func GetLamaFileAsString

+

func GetLamaFileAsString

func GetLamaFileAsString(path string) string
 

-

func LamaFile

+

func LamaFile

func LamaFile(inputFile string) (string, string)
 

LamaFile takes in a path to an API file. It moves into the API file directory, reads the API contents, loads the `l2.env` file if available, and finally substitutes environment vars in the API contents Once done, it reverts back to the original directory, and returns the processed l2 file.

diff --git a/docs/Lama2/site/sitemap.xml.gz b/docs/Lama2/site/sitemap.xml.gz index f6c0ee17aa905da3812966b6b4350fed46d58404..8775d5c9c8d32f47a8879b2f322bace94c4c2018 100644 GIT binary patch delta 15 WcmbQlJc*f2zMF$%Md?Pi9!3BmPy|c> delta 15 WcmbQlJc*f2zMF$1Cu1X94