Remove skydoc (#5208)

Nobody uses it, it’s deprecated anyway.

changelog_begin
changelog_end
This commit is contained in:
Moritz Kiefer 2020-03-26 12:14:34 +01:00 committed by GitHub
parent cacbb3a269
commit c004c90fcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 88 deletions

View File

@ -726,19 +726,6 @@ yarn_install(
},
)
# Bazel Skydoc - Build rule documentation generator
load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
rules_sass_dependencies()
load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
sass_repositories()
load("@io_bazel_skydoc//skylark:skylark.bzl", "skydoc_repositories")
skydoc_repositories()
# We usually use the _deploy_jar target to produce self-contained jars, but here we're using jar_jar because the size
# of codegen tool is substantially reduced (as shown below) and that the presence of JVM internal com.sun classes could
# theoretically stop the codegen running against JVMs other the OpenJDK 8 (the current JVM used for building).

View File

@ -1,17 +0,0 @@
# Copyright (c) 2020 The DAML Authors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load("@io_bazel_skydoc//skylark:skylark.bzl", "skylark_doc")
skylark_doc(
name = "docs",
srcs = [
"//bazel_tools:haskell.bzl",
"//bazel_tools:scala.bzl",
# "//bazel_tools/scalafmt:scalafmt.bzl",
"//bazel_tools/packaging:packaging.bzl",
"//bazel_tools/java_testing:java_test_suite.bzl",
"//rules_daml:daml.bzl",
],
format = "html",
)

View File

@ -143,14 +143,6 @@ def daml_deps():
patch_args = ["-p1"],
)
if "io_bazel_skydoc" not in native.existing_rules():
http_archive(
name = "io_bazel_skydoc",
sha256 = "c2d66a0cc7e25d857e480409a8004fdf09072a1bd564d6824441ab2f96448eea",
strip_prefix = "skydoc-0.3.0",
urls = ["https://github.com/bazelbuild/skydoc/archive/0.3.0.tar.gz"],
)
if "bazel_gazelle" not in native.existing_rules():
http_archive(
name = "bazel_gazelle",

View File

@ -1,50 +0,0 @@
#!/usr/bin/env bash
set -Eeuo pipefail
USAGEMSG="
USAGE: $0 [FLAGS]
Build the Bazel API documentation and serve it via HTTP on the current host.
FLAGS:
-p PORT Serve the API documentation on this port.
"
usage() {
echo "$USAGEMSG"
exit ${1-0}
}
PORT=8000
while getopts "hp:" flag; do
case "$flag" in
h)
usage 0
;;
p)
PORT="$OPTARG"
;;
*)
usage 1
;;
esac
done
# Temporary working directory.
SCRATCH=$(mktemp -d --tmpdir da-bazel-api-docs.XXXX)
cleanup() {
echo Deleting $SCRATCH ...
rm -rf "$SCRATCH"
}
trap cleanup EXIT
bazel build //bazel_tools/docs
mkdir -p "$SCRATCH"
unzip -d "$SCRATCH" bazel-bin/bazel_tools/docs/docs-skydoc.zip
cd "$SCRATCH"
echo "Starting server. This will take a moment. Press CTRL-C to quit" >&2
python -m SimpleHTTPServer "$PORT"