|
6 ماه پیش | |
---|---|---|
.. | ||
_snippets | 98a2c711f8 Refine ESQL docs handling of applies_to (#125835) | 6 ماه پیش |
images | 8ffecb408d Additional support for docs for ES|QL operators and version-specific differentiation (#125251) | 6 ماه پیش |
kibana | 98a2c711f8 Refine ESQL docs handling of applies_to (#125835) | 6 ماه پیش |
processing-commands | d5ddb909a4 ESQL autogenerate docs v3 (#124312) | 7 ماه پیش |
README.md | d5ddb909a4 ESQL autogenerate docs v3 (#124312) | 7 ماه پیش |
esql-commands.md | 98a2c711f8 Refine ESQL docs handling of applies_to (#125835) | 6 ماه پیش |
esql-enrich-data.md | f8536aadda ESQL: Add more details on ENRICH vs. LOOKUP JOIN to docs (#125487) | 6 ماه پیش |
esql-examples.md | b7e3a1e14b [docs] Migrate docs from AsciiDoc to Markdown (#123507) | 7 ماه پیش |
esql-functions-operators.md | b7e3a1e14b [docs] Migrate docs from AsciiDoc to Markdown (#123507) | 7 ماه پیش |
esql-implicit-casting.md | b7e3a1e14b [docs] Migrate docs from AsciiDoc to Markdown (#123507) | 7 ماه پیش |
esql-lookup-join.md | ea98166919 ESQL: Improve LOOKUP JOIN page (#125688) (#125798) | 6 ماه پیش |
esql-metadata-fields.md | b7e3a1e14b [docs] Migrate docs from AsciiDoc to Markdown (#123507) | 7 ماه پیش |
esql-multivalued-fields.md | b7e3a1e14b [docs] Migrate docs from AsciiDoc to Markdown (#123507) | 7 ماه پیش |
esql-process-data-with-dissect-grok.md | f0168b4b84 Doc: Update links to logstash plugin docs (#125675) | 6 ماه پیش |
esql-syntax.md | b7e3a1e14b [docs] Migrate docs from AsciiDoc to Markdown (#123507) | 7 ماه پیش |
esql-time-spans.md | efe7379e67 Split ESQL functions/operators docs files (#123904) | 7 ماه پیش |
limitations.md | 1bd80d10a6 ESQL: supplement docs on LIMIT (#125839) | 6 ماه پیش |
The ES|QL documentation is composed of static content and generated content.
The static content exists in this directory and can be edited by hand.
However, the sub-directories _snippets
, images
and kibana
contain mostly
generated content.
In _snippets
there are files that can be included within other files
using the File Inclusion
feature of the Elastic Docs V3 system.
Most, but not all, files in this directory are generated.
In particular the directories _snippets/functions/*
and _snippets/operators/*
contain subdirectories that are mostly generated:
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 functiontypes
- a table of each combination of support type for each parameter. These are generated from tests.layout
- a fully generated description for each functionMost 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.
For example to generate docs for the CASE
function:
./gradlew :x-pack:plugin:esql:test -Dtests.class='CaseTests'
To regenerate the files for all functions run all of ESQL's tests using gradle:
./gradlew :x-pack:plugin:esql:test
The images
directory contains functions
and operators
sub-directories with
the *.svg
files used to describe the syntax of each function or operator.
These are all generated by the same tests that generate the functions and operators docs above.
The kibana
directory contains definition
and docs
sub-directories that are generated:
kibana/definition
- function definitions for kibana's ESQL editorkibana/docs
- the inline docs for kibanaThese are also generated as part of the unit tests described above.