load("//docs/private:stardoc_with_diff_test.bzl", "stardoc_with_diff_test", "update_docs")

package(default_applicable_licenses = ["//:license"])

licenses(["notice"])

stardoc_with_diff_test(
    name = "analysis_test",
    bzl_library_target = "//rules:analysis_test",
    out_label = "//docs:analysis_test_doc.md",
)

stardoc_with_diff_test(
    name = "build_test",
    bzl_library_target = "//rules:build_test",
    out_label = "//docs:build_test_doc.md",
)

stardoc_with_diff_test(
    name = "bzl_library",
    bzl_library_target = "//rules/private:bzl_library",
    out_label = "//docs:bzl_library.md",
)

stardoc_with_diff_test(
    name = "collections",
    bzl_library_target = "//lib:collections",
    out_label = "//docs:collections_doc.md",
)

stardoc_with_diff_test(
    name = "common_settings",
    bzl_library_target = "//rules:common_settings",
    out_label = "//docs:common_settings_doc.md",
)

stardoc_with_diff_test(
    name = "copy_directory",
    bzl_library_target = "//rules:copy_directory",
    out_label = "//docs:copy_directory_doc.md",
)

stardoc_with_diff_test(
    name = "copy_file",
    bzl_library_target = "//rules:copy_file",
    out_label = "//docs:copy_file_doc.md",
)

stardoc_with_diff_test(
    name = "dicts",
    bzl_library_target = "//lib:dicts",
    out_label = "//docs:dicts_doc.md",
)

stardoc_with_diff_test(
    name = "diff_test",
    bzl_library_target = "//rules:diff_test",
    out_label = "//docs:diff_test_doc.md",
)

stardoc_with_diff_test(
    name = "directory",
    bzl_library_target = "//rules/directory:directory",
    out_label = "//docs:directory_doc.md",
)

stardoc_with_diff_test(
    name = "directory_glob",
    bzl_library_target = "//rules/directory:glob",
    out_label = "//docs:directory_glob_doc.md",
)

stardoc_with_diff_test(
    name = "directory_providers",
    bzl_library_target = "//rules/directory:providers",
    out_label = "//docs:directory_providers_doc.md",
)

stardoc_with_diff_test(
    name = "directory_subdirectory",
    bzl_library_target = "//rules/directory:subdirectory",
    out_label = "//docs:directory_subdirectory_doc.md",
)

stardoc_with_diff_test(
    name = "expand_template",
    bzl_library_target = "//rules:expand_template",
    out_label = "//docs:expand_template_doc.md",
)

stardoc_with_diff_test(
    name = "modules",
    bzl_library_target = "//lib:modules",
    out_label = "//docs:modules_doc.md",
)

stardoc_with_diff_test(
    name = "native_binary",
    bzl_library_target = "//rules:native_binary",
    out_label = "//docs:native_binary_doc.md",
)

stardoc_with_diff_test(
    name = "new_sets",
    bzl_library_target = "//lib:new_sets",
    out_label = "//docs:new_sets_doc.md",
)

stardoc_with_diff_test(
    name = "partial",
    bzl_library_target = "//lib:partial",
    out_label = "//docs:partial_doc.md",
)

stardoc_with_diff_test(
    name = "paths",
    bzl_library_target = "//lib:paths",
    out_label = "//docs:paths_doc.md",
)

stardoc_with_diff_test(
    name = "run_binary",
    bzl_library_target = "//rules:run_binary",
    out_label = "//docs:run_binary_doc.md",
)

stardoc_with_diff_test(
    name = "selects",
    bzl_library_target = "//lib:selects",
    out_label = "//docs:selects_doc.md",
)

stardoc_with_diff_test(
    name = "select_file",
    bzl_library_target = "//rules:select_file",
    out_label = "//docs:select_file_doc.md",
)

stardoc_with_diff_test(
    name = "shell",
    bzl_library_target = "//lib:shell",
    out_label = "//docs:shell_doc.md",
)

stardoc_with_diff_test(
    name = "structs",
    bzl_library_target = "//lib:structs",
    out_label = "//docs:structs_doc.md",
)

stardoc_with_diff_test(
    name = "subpackages",
    bzl_library_target = "//lib:subpackages",
    out_label = "//docs:subpackages_doc.md",
)

stardoc_with_diff_test(
    name = "types",
    bzl_library_target = "//lib:types",
    out_label = "//docs:types_doc.md",
)

stardoc_with_diff_test(
    name = "unittest",
    bzl_library_target = "//lib:unittest",
    out_label = "//docs:unittest_doc.md",
)

stardoc_with_diff_test(
    name = "versions",
    bzl_library_target = "//lib:versions",
    out_label = "//docs:versions_doc.md",
)

stardoc_with_diff_test(
    name = "write_file",
    bzl_library_target = "//rules:write_file",
    out_label = "//docs:write_file_doc.md",
)

# update_docs must be at the bottom of the BUILD file
update_docs(
    name = "update",
    docs_folder = "docs",
)
