OpenSearch/modules
Nik Everett 8a2d424d68 Generate reference links for painless API (#22775)
Adds "Appending B. Painless API Reference", a reference of all classes
and methods available from Painless. Removes links to java packages
because they contain methods that we don't expose and don't contain
methods that we do expose (the ones in Augmentation). Instead this
generates a list of every class and every exposed method using the same
type information available to the
interpreter/compiler/whatever-we-call-it. From there you can jump to
the relevant docs.

Right now you build all the asciidoc files by running
```
gradle generatePainlessApi
```

These files are expected to be committed because we build the docs
without running `gradle`.

Also changes the output of `Debug.explain` so that it is easy to
search for the class in the generated reference documentation.

You can also run it in an IDE safely if you pass the path to the
directory in which to generate the docs as the first parameter. It'll
blow away the entire directory an recreate it from scratch so be careful.

And then you can build the docs by running something like:
```
../docs/build_docs.pl --out ../built_docs/ --doc docs/reference/index.asciidoc --open
```

That is, if you have checked out https://github.com/elastic/docs in
`../docs`. Wait a minute or two and your browser will pop open in with
all of Elasticsearch's reference documentation. If you go to
`http://localhost:8000/painless-api-reference.html` you can see this
list. Or you can get there by following the links to `Modules` and
`Scripting` and `Painless` and then clicking the link in the paragraphs
below titled `Appendix B. Painless API Reference`.

I like having these in asciidoc because we can deep link to them from the
rest of the guide with constructs like
`<<painless-api-reference-Object-hashCode-0>>` and
`<<painless-api-reference->>` and we get link checking. Then the only
brittle link maintenance bit is the link generation for javadoc. Which
sucks. But I think it is important that we link to the methods directly
so they are easy to find.

Relates to #22720
2017-01-26 10:39:19 -05:00
..
aggs-matrix-stats Remove InternalAggregation.Type (#22511) 2017-01-10 11:57:19 -05:00
ingest-common fix date-processor to a new default year for every new pipeline execution. (#22601) 2017-01-25 15:09:07 -08:00
lang-expression Add single static instance of SpecialPermission (#22726) 2017-01-21 12:03:52 -06:00
lang-mustache Add single static instance of SpecialPermission (#22726) 2017-01-21 12:03:52 -06:00
lang-painless Generate reference links for painless API (#22775) 2017-01-26 10:39:19 -05:00
percolator replace custom functional interface with CheckedFunction in percolate module 2017-01-16 13:57:58 +01:00
reindex Support Preemptive Authentication with RestClient (#21336) 2017-01-24 11:34:05 -05:00
repository-url Add repository-url module and move URLRepository (#22752) 2017-01-25 17:09:25 -06:00
transport-netty4 Add single static instance of SpecialPermission (#22726) 2017-01-21 12:03:52 -06:00
build.gradle Build: Change `gradle run` to use zip distribution (#21001) 2016-10-18 11:48:58 -07:00