Skip to content

Commit

Permalink
Move skydoc BUILD to its own file
Browse files Browse the repository at this point in the history
This is necessary so that downstream users of the sass rules don't need
to add skydoc to their workspace.
  • Loading branch information
jelbourn committed Jun 4, 2018
1 parent c8efc01 commit 32649e1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ platforms:
- "//..."
# Cannot build the docsite on Windows, see
# https://github.com/bazelbuild/skydoc/issues/58
- "-//sass:docs"
- "-//sass/docs"
test_targets:
- "//..."
16 changes: 2 additions & 14 deletions sass/BUILD
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
package(default_visibility = ["//visibility:public"])

load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")

exports_files(["sass.bzl", "sass_repositories.bzl"])

# Executable for the sass_binary rule
nodejs_binary(
name = "sass",
node_modules = "@build_bazel_rules_sass_compiletime_deps//:node_modules",
entry_point = "sass/sass.js",
)

load("@io_bazel_skydoc//skylark:skylark.bzl", "skylark_doc")

skylark_doc(
name = "docs",
srcs = [
":sass.bzl",
":sass_repositories.bzl",
],
format = "html",
site_root = "/rules_sass",
#strip_prefix = "/",
)
13 changes: 13 additions & 0 deletions sass/docs/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package(default_visibility = ["//visibility:public"])
load("@io_bazel_skydoc//skylark:skylark.bzl", "skylark_doc")

skylark_doc(
name = "docs",
srcs = [
"//sass:sass.bzl",
"//sass:sass_repositories.bzl",
],
format = "html",
site_root = "/rules_sass",
#strip_prefix = "/",
)

0 comments on commit 32649e1

Please sign in to comment.