Skip to content

Commit 7fd2e0b

Browse files
committed
md review
minor clean, tangential to the work on the other docs sites
1 parent 2472710 commit 7fd2e0b

19 files changed

+78
-63
lines changed

docs/build.bat

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@echo off
2+
3+
REM Make sure we're running this from the context of the script file location
4+
pushd %~dp0
5+
6+
REM Build through docfx, using the docfx.json configuration file
7+
REM This will generate the static site in the _site folder
8+
REM note that docfx needs to be installed and available in the PATH
9+
10+
REM Install docfx: dotnet tool install -g docfx
11+
REM Docos: https://dotnet.github.io/docfx/tutorial/docfx_getting_started.html
12+
13+
docfx docfx.json

docs/faq/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Why have a schema definition for Data Warehouse Automation?
44

5-
The reason work on the schema definition started is based on a desire to collaborate with various likeminded professionals in the industry, but who all had different (proprietary) ways to record metadata. The challenge was how to collaborate on at least the patterns, without necessarily agreeing on ‘the best’ back-end solution to store metadata.
5+
The reason work on the schema definition started is based on a desire to collaborate with various like-minded professionals in the industry, but who all had different (proprietary) ways to record metadata. The challenge was how to collaborate on at least the patterns, without necessarily agreeing on ‘the best’ back-end solution to store metadata.
66

77
The interface for Data Warehouse Automation was started as an initiative that would support each to use the back-end of their choosing, while still be able to cooperate on the design and improvement of Data Warehouse implementation patterns and ETL generation concepts.
88

@@ -16,11 +16,11 @@ The decision to start the format with an array / list that contains potentially
1616

1717
For example, consider the loading of a Core Business Concept (‘Hub’) type entity from various different data sources. If you would use these different mappings to generate ETL processes you would create one physical ETL object for each mapping. However, if you are seeking to generate a view that represents the target table you would use the collection (list) of mappings to generate separate statements that are 'unioned' in a single view object.
1818

19-
Example: [https://github.com/RoelantVos/Data-Warehouse-Automation-Metadata-Schema/blob/master/ClassLibrary/DataWarehouseAutomation/Sample_Metadata/sampleBasic.json].
19+
Example: [https://github.com/RoelantVos/Data-Warehouse-Automation-Metadata-Schema/blob/master/ClassLibrary/DataWarehouseAutomation/Sample_Metadata/sampleBasic.json](https://github.com/RoelantVos/Data-Warehouse-Automation-Metadata-Schema/blob/master/ClassLibrary/DataWarehouseAutomation/Sample_Metadata/sampleBasic.json).
2020

2121
Or below, an even more simplified example of a single Data Object Mapping (with only one source, one target and a single Data Item Mapping) being part of the list dataObjectMappings.
2222

23-
````json
23+
```json
2424
{
2525
"dataObjectMappings": [
2626
{
@@ -48,7 +48,7 @@ Or below, an even more simplified example of a single Data Object Mapping (with
4848
}
4949
]
5050
}
51-
`````
51+
```
5252

5353
## Why are Data Objects and Data Items defined as arrays when they are used as sources?
5454

@@ -58,7 +58,7 @@ The downside is that either a loop or array index needs to be used to pinpoint t
5858

5959
Example: using Handlebars will give you the name of the first source object:
6060

61-
```JSON
61+
```handlebars
6262
{{sourceDataObjects.0.name}}
6363
```
6464

@@ -76,7 +76,7 @@ The easiest way to get started is to either copy and modify the example project,
7676

7777
A simple C# example to generate some quick ETL (taken from the example project):
7878

79-
```json
79+
```cs
8080
// Load a template (pattern) from file
8181
stringTemplate = File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + @"..\\..\\TemplateSampleBasic.handlebars");
8282

@@ -94,4 +94,4 @@ result = template(deserialisedMapping);
9494

9595
// Display the results to the user
9696
Console.WriteLine(result);
97-
``````
97+
```

docs/handlebars/extension_exists.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ Only the *multiActiveKey* and *targetDataItem* properties are currently supporte
88

99
## Usage
1010

11-
``` handlebars
11+
```handlebars
1212
{{#exists "<category / json segment>" "<optional value>"}}
1313
```
1414

1515
## Example
1616

17-
``` handlebars
17+
```handlebars
1818
{{#exists multiActiveKey}}There is a multi-active key!{{else}}No multi-active key is found in this data object mapping.{{/exists}}
1919
{{#exists multiActiveKey "DATE_OF_BIRTH"}}There is a multi-active key which is not DATE_OF_BIRTH{{else}}No multi-active key with DATE_OF_BIRTH is found in this data object mapping.{{/exists}}
2020
{{#exists targetDataItem}}There is a target data item in this mapping!{{else}}No target data items are defined in this mapping.{{/exists}}
2121
```
2222

2323
Depending on the metadata, this may result in:
2424

25-
```dotnetcli
25+
```text
2626
There is a multi-active key!
2727
No multi-active key with DATE_OF_BIRTH is found in this data object mapping.
2828
There is a target data item in this mapping!

docs/handlebars/extension_lookupextension.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ Pass in the extensions list and the string key value.
88

99
## Usage
1010

11-
``` handlebars
11+
```handlebars
1212
{{lookupExtension <extension list> "<string value>"}}
1313
```
1414

1515
## Example
1616

17-
``` handlebars
17+
```handlebars
1818
The lookup value for the 'type' extension is '{{lookupExtension sourceDataObjects.0.extensions "type"}}'.
1919
```
2020

2121
Depending on the metadata, this may result in:
2222

23-
```dotnetcli
23+
```text
2424
The lookup value for the 'type' extension is 'procedure'.
2525
```

docs/handlebars/extension_now.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Get the date and time at the moment of execution.
44

55
## Usage
66

7-
``` handlebars
7+
```handlebars
88
{{now}}
99
```
1010

1111
## Example
1212

13-
``` handlebars
13+
```handlebars
1414
The time is {{now}}.
1515
```
1616

docs/handlebars/extension_randomdate.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ This was originally added to generate test data, and is used for referential-int
66

77
## Usage
88

9-
``` handlebars
9+
```handlebars
1010
{{randomdate 2020}}
1111
```
1212

1313
## Example
1414

15-
``` handlebars
15+
```handlebars
1616
Here is a random date: {{randomdate 2020}}.
1717
```
1818

1919
This may return:
2020

21-
```dotnetcli
21+
```text
2222
2022-08-03T00:00:00.000000
2323
```

docs/handlebars/extension_randomnumber.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ This was originally added to generate test data, and is used for referential-int
66

77
## Usage
88

9-
``` handlebars
9+
```handlebars
1010
{{randomnumber 5}}
1111
```
1212

1313
## Example
1414

15-
``` handlebars
15+
```handlebars
1616
And here is a random string: {{randomnumber 5}}.
1717
```
1818

1919
This may return:
2020

21-
```dotnetcli
21+
```text
2222
1346
2323
```

docs/handlebars/extension_randomstring.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ Generate a random string no longer than the provided characters as integer input
44

55
## Usage
66

7-
``` handlebars
7+
```handlebars
88
{{randomstring 10}}
99
```
1010

1111
## Example
1212

13-
``` handlebars
13+
```handlebars
1414
And here is a random string: {{randomstring 10}}.
1515
```
1616

1717
This returns:
1818

19-
```dotnetcli
19+
```text
2020
Cg8uKuBFS5
2121
```

docs/handlebars/extension_replicate.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ This is often used to generate test data.
66

77
## Usage
88

9-
``` handlebars
9+
```handlebars
1010
{{#replicate 10}}
1111
```
1212

1313
## Example
1414

15-
``` handlebars
15+
```handlebars
1616
{{#replicate 3}}
1717
This value is replicated 3 times!
1818
{{/replicate}}
1919
```
2020

2121
This returns:
2222

23-
```dotnetcli
23+
```text
2424
This value is replicated 3 times!
2525
This value is replicated 3 times!
2626
This value is replicated 3 times!

docs/handlebars/extension_space.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ Space will space out (!?) the name of the input value to 30 characters using tab
44

55
## Usage
66

7-
``` handlebars
7+
```handlebars
88
{{space "<value>"}}
99
```
1010

1111
## Example
1212

13-
``` handlebars
13+
```handlebars
1414
This is {{space "Hello World"}} ...spaced out.
1515
```
1616

1717
This results in:
1818

19-
```dotnetcli
19+
```text
2020
This is Hello World ...spaced out.
2121
```

0 commit comments

Comments
 (0)