Adds the new `--direct_html` argument while building the docs to line up
with the change in the global docs build made by elastic/docs#1645. This
cuts the time to build the docs in half.
When we merged X-Pack into the Kibana repo and started the multi-phase
process of merging the docs together, it became necessary to specify a
resource argument to the docs build script that indicates where to find
the x-pack docs. This requirement will go away once we complete the docs
merge, but for now it needs to be specified by our docs CLI.
In order to make the license that applies to each file as clear as possible, and to be consistent with elasticsearch, we are adding Apache 2.0 license headers to the top of each file.
Existence of this header is enforced by eslint and tslint and missing headers were automatically added in the last commit by running:
```
node scripts/eslint --fix && node scripts/tslint --fix
```
* Shortcut to build asciidocs
The command to build the Kibana docs using the elastic/docs repo can be
easy to forget, so this script is an easy to way to do it right every
time.
* Configurable docs repo location
For folks that clone the elastic docs repo to a different location than
as a sibling of kibana.