16 Commits

Author SHA1 Message Date
David Pursehouse
8b3324c69e Merge branch 'stable-2.14' into stable-2.15
* stable-2.14:
  Apply buildifier to .bzl files.
  Update Bower to 1.8.2
  Bump commons-io version to 2.2

Change-Id: Ic90865db76a0e34f0f8fef33b83ec7b2fd75c875
2018-07-11 08:35:07 +09:00
Han-Wen Nienhuys
b6a4048986 Apply buildifier to .bzl files.
Buildifier is now also used for formatting .bzl files.

This change was created by running buildifier 0.12 over our source tree.

Change-Id: I9f15112d4fe23e5cec0700cfe47f1ca649f61d2a
2018-07-10 20:38:52 +09:00
Paladox
91e2d3b086 Merge branch 'stable-2.14' into stable-2.15
* stable-2.14:
  Remove the + operator on dicts from .bzl files

Change-Id: I6353f413948312700cc4bde35de9009ca17c1cff
2018-01-08 13:43:24 +00:00
Vladimir Moskva
a10e967160 Remove the + operator on dicts from .bzl files
The + operator on dicts is deprecated and will be removed from future
version of Bazel.

Change-Id: I9f3db02f13c1c56c3afc4cc94b142513f0ae3908
(cherry picked from commit 4c8be85fcfc83582fad77684cff6044e828d4cb6)
2018-01-05 20:34:33 +00:00
David Pursehouse
a345549218 Merge branch 'stable-2.14' into stable-2.15
* stable-2.14:
  Bazel: Fix build on Alpine Linux
  Make bzl files compatible with mutating behavior of += on lists

Change-Id: I242c26fa7ef5c532c78bd5dc06d9f332e6a51f00
2017-11-08 16:19:01 +09:00
David Ostrovsky
509e380a5d Bazel: Fix build on Alpine Linux
It seems that unzip implementation on Alpine Linux doesn't create target
directory. That caused documentation index generation fail with this
error message:

unzip: can't change directory to \
'bazel-out/k8-fastbuild/bin/Documentation/html.zip_tmpdir/Documentation/':
No such file or directory.

Change-Id: I6226bef5758b045ac55a7126d89fc47dac474d54
2017-11-08 15:46:38 +09:00
Dave Borowitz
ae421ae49b Merge branch 'stable-2.14' into stable-2.15
* stable-2.14:
  Bazel: Fix asciidoc.bzl python invocation
  Update jruby and asciidoctorj

Change-Id: Ibf1dc34ab62353cb6021d2ca505174a8706950df
2017-10-30 17:56:58 +00:00
Alon Bar-Lev
9ad949e726 Bazel: Fix asciidoc.bzl python invocation
When invoking Documentation/replace_macros.py, bazel removes environment
using 'env -e', the python script includes '#!env python' shebang, the
result is python not found.

Alignment with js.bzl resolves the issue, explicit python removed.

Change-Id: If33baa7e7449f1a8a4a06cceefeb82dad2dc1577
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2017-10-30 19:35:15 +02:00
David Ostrovsky
e2eed17d37 Bazel: Replace ctx.action with actions#run / actions#run_shell
ctx.action() is deprecated in favor of ctx.actions.run() /
ctx.actions.run_shell(): [1]. See discussion in [2], why we need this.

[1] https://docs.bazel.build/versions/master/skylark/lib/ctx.html#action
[2] https://github.com/bazelbuild/bazel/issues/3589

Change-Id: I11af3afebc0d3c76bb8fb59a790db2e3f3ce982b
2017-08-30 08:49:11 +02:00
David Shevitz
91145c9e5c Implement left navigation table of contents for documentation
Changing the TOC for the documentation to use a floating left navigation
instead of at the top of the page. This will improve content
discoverability and readability.

Change-Id: Ibbdaddbdc2e18a3fe35c126f4074cd9e079449ee
2017-06-22 02:20:09 +00:00
David Pursehouse
2d08500516 Format .bzl files with Bazel Buildifier
Change-Id: I3ab30565e5ac110a18cbe3d34f76307801c30373
2016-12-11 19:00:21 +09:00
David Ostrovsky
bb99707736 Merge "Bazel: Remove output folder before invoking asciidoc" 2016-10-24 21:15:45 +00:00
David Pursehouse
5b637505ed Bazel: Remove output folder before invoking asciidoc
Change-Id: I9b6d83d59f5368be075b61cd09067a356c362db4
2016-10-24 20:41:35 +09:00
Han-Wen Nienhuys
346cb697df bazel: build helper binaries in host configuration.
Collapse common code in asciidoc.bzl

Change-Id: I7099f03db74dbed5b55250cf9aab3589ad471a15
2016-10-24 13:23:06 +02:00
Yuxuan 'fishy' Wang
515c59273c Add ReleaseNotes/BUILD
With both genasciidoc and genasciidoc_zip rules.

Change-Id: Ie796a81cd578a1217ea45b1ab9d449a7b97d5532
2016-10-07 15:20:35 +08:00
Yuxuan 'fishy' Wang
14fdf9342e bazel: genasciidoc and genasciidoc_zip rule
Implement genasciidoc rule for bazel. It's a filegroup containing all
the html and resource files.

Also implement genasciidoc_zip rule for bazel, which is similar to
buck's genasciidoc rule to produce a zip file containing all asciidoctor
generated and resource files.

TEST PLAN:
  bazel build Documentation
  buck build Documentation:html
  diff -u bazel-bin/Documentation/install.html buck-out/gen/Documentation/html__tmp/Documentation/install.html

Change-Id: I3065355800a982c6956d3bb634204baaa60c045e
2016-10-07 15:20:35 +08:00