-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs for various rule and macros (#17)
* Add docstrings for user facing rules * Move the cuda_flags grammar docs to cuda_archs_flag rule * Add docstrings for user facing macros * Generate user docs from docstrings by stardoc * Add docstrings for predefined toolchain configurations * Add docstrings for toolchain configuration rules * Generate toolchain configuration docs from docstrings by stardoc * Update providers docstring * Generate providers docs from docstrings by stardoc
- Loading branch information
Showing
20 changed files
with
205 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/bazel-* | ||
/docs/bazel-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") | ||
|
||
bzl_library( | ||
name = "bzl_srcs", | ||
srcs = glob(["**/*.bzl"]), | ||
visibility = ["//visibility:public"], | ||
deps = ["//cuda:bzl_srcs"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") | ||
|
||
package(default_visibility = ["//visibility:private"]) | ||
|
||
bzl_library( | ||
name = "bzl_srcs", | ||
srcs = glob(["**/*.bzl"]), | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"@bazel_skylib//:lib", | ||
"@bazel_skylib//rules:common_settings", | ||
"@bazel_tools//tools/build_defs/repo:http.bzl", | ||
"@bazel_tools//tools/build_defs/repo:utils.bzl", | ||
"@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl", | ||
"@bazel_tools//tools/cpp:toolchain_utils.bzl", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.bazelversion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc") | ||
|
||
stardoc( | ||
name = "user_docs", | ||
out = "user_docs.md", | ||
input = "user_docs.bzl", | ||
deps = ["@rules_cuda//:bzl_srcs"], | ||
) | ||
|
||
stardoc( | ||
name = "toolchain_config_docs", | ||
out = "toolchain_config_docs.md", | ||
input = "toolchain_config_docs.bzl", | ||
deps = ["@rules_cuda//:bzl_srcs"], | ||
) | ||
|
||
stardoc( | ||
name = "providers_docs", | ||
out = "providers_docs.md", | ||
input = "providers_docs.bzl", | ||
deps = ["@rules_cuda//:bzl_srcs"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
workspace(name = "rules_cuda_docs") | ||
|
||
local_repository( | ||
name = "rules_cuda", | ||
path = "..", | ||
) | ||
|
||
load("@rules_cuda//cuda:deps.bzl", "rules_cuda_deps") | ||
|
||
rules_cuda_deps() | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
name = "io_bazel_stardoc", | ||
sha256 = "05fb57bb4ad68a360470420a3b6f5317e4f722839abc5b17ec4ef8ed465aaa47", | ||
urls = [ | ||
"https://mirror.bazel.build/github.com/bazelbuild/stardoc/releases/download/0.5.2/stardoc-0.5.2.tar.gz", | ||
"https://github.com/bazelbuild/stardoc/releases/download/0.5.2/stardoc-0.5.2.tar.gz", | ||
], | ||
) | ||
|
||
load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories") | ||
|
||
stardoc_repositories() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
load( | ||
"@rules_cuda//cuda/private:providers.bzl", | ||
_ArchSpecInfo = "ArchSpecInfo", | ||
_CudaArchsInfo = "CudaArchsInfo", | ||
_CudaInfo = "CudaInfo", | ||
_CudaToolchainConfigInfo = "CudaToolchainConfigInfo", | ||
_CudaToolkitInfo = "CudaToolkitInfo", | ||
_Stage2ArchInfo = "Stage2ArchInfo", | ||
) | ||
|
||
ArchSpecInfo = _ArchSpecInfo | ||
Stage2ArchInfo = _Stage2ArchInfo | ||
|
||
CudaArchsInfo = _CudaArchsInfo | ||
CudaInfo = _CudaInfo | ||
CudaToolkitInfo = _CudaToolkitInfo | ||
CudaToolchainConfigInfo = _CudaToolchainConfigInfo |
Oops, something went wrong.