You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _mydocs/contribute/index.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ You can follow these steps to add a new package to DAX Lib:
15
15
16
16
1.**Clone** the GitHub repository [https://github.com/sql-bi/daxlib/](https://github.com/sql-bi/daxlib/).
17
17
18
-
2.**Create a folder** for your package in `/packages/`, for example by copying the daxlib.sample package.
18
+
2.**Create a folder** for your package in `/packages/`, for example by copying the `DaxLib.Sample` package.
19
19
20
20
a. Name the folder after your package using lowercase names (e.g., `test.functions`), while the package should have a pascal naming convention (e.g., `Test.Functions`).
21
21
@@ -33,20 +33,22 @@ You can follow these steps to add a new package to DAX Lib:
33
33
34
34
3.**Create the DAX functions** in `functions.tmdl`
35
35
36
-
a. The file `lib/functions.tmdl` contains the source code of the DAX functions in a TMDL createOrReplace command. For example, in `test.functions` the name is `/packages/t/test.functions/lib/functions.tmdl`
36
+
a. The file `lib/functions.tmdl` contains the source code of the DAX functions in a TMDL `createOrReplace` command. For example, in `test.functions` the name is `/packages/t/test.functions/lib/functions.tmdl`
37
37
38
38
b. The `functions.tmdl` file contains the function definition using the TMDL syntax following the `createOrReplace` statement
39
39
40
40
c. Include mandatory annotations for each function of the library:
41
41
42
-
annotation DAXLIB_PackageId = <name of library>`
43
-
annotation DAXLIB_PackageVersion = <version of library>
44
-
42
+
```
43
+
annotation DAXLIB_PackageId = <name of library>
44
+
annotation DAXLIB_PackageVersion = <version of library>
45
+
```
46
+
45
47
4.**Create the manifest** in the `manifest.daxlib` file
46
48
47
49
a. For example, in `test.functions` the name is `/packages/t/test.functions/manifest.daxlib`
48
50
49
-
b. The `manifest.daxlib` file includes the properties of the package in JSON format. See [https://daxlib.org/package/DaxLib.Sample/#code](https://daxlib.org/package/DaxLib.Sample/#code) to get an example
51
+
b. The `manifest.daxlib` file contains the package properties in JSON format. See the [DaxLib.Sample](https://daxlib.org/package/DaxLib.Sample/#code) package for an example and refer to the [JSON schema](https://github.com/sql-bi/daxlib/blob/main/schemas/manifest/1.0.0/manifest.1.0.0.schema.json) for the complete specification of available properties.
50
52
51
53
5.**Create a pull request** to publish the library on daxlib.org
0 commit comments