elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.58k stars 24.63k forks source link

[ES|QL] Automate part of doc generation via annotations #104247

Open dej611 opened 8 months ago

dej611 commented 8 months ago

Description

After #103686 I think part of the doc could be automated via scripting, at least for the following fields:

elasticsearchmachine commented 8 months ago

Pinging @elastic/es-analytics-geo (Team:Analytics)

nik9000 commented 8 months ago

We already automate the parameter types and the railroad diagrams. But we could probably generate even more of this stuff. I'm not sure we'd want to generate all of, but a lot more.

dej611 commented 8 months ago

I do not think generate all of it makes sense, but at least the structured part as described in the issue content. We already do that in Kibana and want to leverage the new SHOW FUNCTIONS to use ES as source of truth for it.

nik9000 commented 8 months ago

Right now we generate two files and manually make another "main" file with the description and the name and description and an example. But I'll bet we could generate that "main" file and have it include hand written asciidoc files. That'd be pretty simple.

nik9000 commented 5 months ago

I've automated the generation of the signature, examples, and parameters. And a file that links them all together. Basically all of this. A human being has to manually merge the data in the docs and annotations and replace the hand maintained docs with the generated ones. I'm going to make a list to track them.

nik9000 commented 5 months ago
elasticsearchmachine commented 5 months ago

Pinging @elastic/es-analytical-engine (Team:Analytics)