Skip to content

Commit

Permalink
Task to generate Painless API's per context (#41233)
Browse files Browse the repository at this point in the history
This adds a gradle task called generateContextDoc in the Painless module. The 
task will start a cluster, issue commands against the context rest api for 
Painless, and generate documentation for each API per context. Each context 
has a first page of classes sorted by package first and class name second, 
along with a page per package with each classes' constructors, methods, and 
fields. A link is generated for each constructor, method, and field to a JavaDoc 
page when possible.
  • Loading branch information
jdconrad authored Apr 23, 2019
1 parent ce5e076 commit 9fc0e81
Show file tree
Hide file tree
Showing 362 changed files with 10,277 additions and 6,427 deletions.
3 changes: 1 addition & 2 deletions docs/Versions.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ release-state can be: released | prerelease | unreleased
///////
Javadoc roots used to generate links from Painless's API reference
///////
:java8-javadoc: https://docs.oracle.com/javase/8/docs/api
:java9-javadoc: https://docs.oracle.com/javase/9/docs/api
:java11-javadoc: https://docs.oracle.com/en/java/javase/11/docs/api
:joda-time-javadoc: http://www.joda.org/joda-time/apidocs
:lucene-core-javadoc: http://lucene.apache.org/core/{lucene_version_path}/core

Expand Down
14 changes: 6 additions & 8 deletions docs/painless/painless-api-reference.asciidoc
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
[[painless-api-reference]]
== Painless API Reference

Painless has a strict whitelist for methods and classes to ensure all
painless scripts are secure. Most of these methods are exposed directly
from the Java Runtime Environment (JRE) while others are part of
Elasticsearch or Painless itself. Below is a list of all available
classes grouped with their respected methods. Clicking on the method
name takes you to the documentation for that specific method. Methods
defined in the JRE also have a `(java 9)` link which can be used to see
the method's documentation in Java 9.
Painless has a strict whitelist for methods and classes per context to
ensure all painless scripts are secure. Most of these methods are
exposed directly from the Java Runtime Environment (JRE) while others
are part of Elasticsearch or Painless itself. Below is a list of the available
APIs per context. The shared API is available to all contexts, while the
specialized API available differs between contexts.

include::painless-api-reference/index.asciidoc[]

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions docs/painless/painless-api-reference/AbstractList.asciidoc

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions docs/painless/painless-api-reference/AbstractMap.asciidoc

This file was deleted.

7 changes: 0 additions & 7 deletions docs/painless/painless-api-reference/AbstractQueue.asciidoc

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions docs/painless/painless-api-reference/AbstractSet.asciidoc

This file was deleted.

9 changes: 0 additions & 9 deletions docs/painless/painless-api-reference/Annotation.asciidoc

This file was deleted.

8 changes: 0 additions & 8 deletions docs/painless/painless-api-reference/Appendable.asciidoc

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions docs/painless/painless-api-reference/ArrayDeque.asciidoc

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions docs/painless/painless-api-reference/ArrayList.asciidoc

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions docs/painless/painless-api-reference/Arrays.asciidoc

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9fc0e81

Please sign in to comment.