2024-03-25 21:22:20 +08:00
|
|
|
The files in these subdirectories are generated by ESQL's test suite:
|
2024-03-23 04:30:59 +08:00
|
|
|
* `description` - description of each function scraped from `@FunctionInfo#description`
|
|
|
|
* `examples` - examples of each function scraped from `@FunctionInfo#examples`
|
|
|
|
* `parameters` - description of each function's parameters scraped from `@Param`
|
|
|
|
* `signature` - railroad diagram of the syntax to invoke each function
|
|
|
|
* `types` - a table of each combination of support type for each parameter. These are generated from tests.
|
|
|
|
* `layout` - a fully generated description for each function
|
2024-04-10 02:19:48 +08:00
|
|
|
* `kibana/definition` - function definitions for kibana's ESQL editor
|
|
|
|
* `kibana/docs` - the inline docs for kibana
|
2024-03-23 04:30:59 +08:00
|
|
|
|
|
|
|
Most functions can use the generated docs generated in the `layout` directory.
|
|
|
|
If we need something more custom for the function we can make a file in this
|
|
|
|
directory that can `include::` any parts of the files above.
|
|
|
|
|
|
|
|
To regenerate the files for a function run its tests using gradle:
|
|
|
|
```
|
2024-03-28 21:02:47 +08:00
|
|
|
./gradlew :x-pack:plugin:esql:test -Dtests.class='*SinTests'
|
2024-03-23 04:30:59 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
To regenerate the files for all functions run all of ESQL's tests using gradle:
|
|
|
|
```
|
2024-03-28 21:02:47 +08:00
|
|
|
./gradlew :x-pack:plugin:esql:test
|
2024-03-23 04:30:59 +08:00
|
|
|
```
|