diff options
author | David Chen <dzc@google.com> | 2016-07-05 09:05:22 +0000 |
---|---|---|
committer | Klaus Aehlig <aehlig@google.com> | 2016-07-05 10:27:45 +0000 |
commit | c3112c2dea86cc64c6f68f4b7c9c620e014e620e (patch) | |
tree | 8330a2069ff1636a022c43a46f8216a3eeb3ce8f /scripts/serve-docs.sh | |
parent | e8d9c4cb9b7ce0a41cde67622997a86be876ede9 (diff) |
Display all allowed types for SkylarkSignature Params that allow multiple
types.
Fixes #921
Certain parameters, such as the `executable` and `command` parameters of
ctx.action, allow multiple types. However, the allowed types are not enumerated
in the SkylarkSignature annotation, causing the generated Skylark Library
document to not display any type information for those params.
This change adds a new field, `allowedTypes`, to `SkylarkSignature` that is a
list of `ParamType` objects. If the param can accept multiple types, then
`type` is set to `Object.class`, and `allowedTypes` is set to the list of types
that can be accepted.
--
MOS_MIGRATED_REVID=126617047
Diffstat (limited to 'scripts/serve-docs.sh')
-rwxr-xr-x | scripts/serve-docs.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/serve-docs.sh b/scripts/serve-docs.sh index 811fed7cbf..d064b3cdf1 100755 --- a/scripts/serve-docs.sh +++ b/scripts/serve-docs.sh @@ -52,6 +52,7 @@ function build_and_serve { pkill -9 jekyll || true if [ -z "$TARGET" ]; then + echo "Serving bazel.io site at port $PORT" jekyll serve --detach --quiet --port $PORT --source $WORKING_DIR else TMP_TARGET=$(mktemp -d) |