-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathGenerate-Docs-JoinAlgorithm.pq
More file actions
30 lines (26 loc) · 944 Bytes
/
Generate-Docs-JoinAlgorithm.pq
File metadata and controls
30 lines (26 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
let
// generates docs for join type. sorta generic.
GenerateDocs_JoinAlgorithm = (sourceType as type) =>
let
root = Value.Metadata( sourceType ),
desc = root[Description]? ?? null,
docsLong_Html = root[Documentation.LongDescription]? ?? null,
Custom1 = Table,
Html_simple = Html.Table(
docsLong_Html, { { "Item", "li"} }
),
Html_details = Html.Table(
docsLong_Html,
{ { "li", "li", (x) as record => x, type record } } ),
// The last list value appears to be the type of it?
SelectedHtml = Html_simple,
split_header = Table.SplitColumn(
SelectedHtml, "Item",
Splitter.SplitTextByEachDelimiter({": "}, QuoteStyle.Csv, false),
{"JoinAlgorithm.Type", "Description"}
)
in
split_header,
docs = GenerateDocs_JoinAlgorithm( JoinAlgorithm.Type )
in
docs