1*60517a1eSAndroid Build Coastguard Worker# Copyright 2023 The Bazel Authors. All rights reserved. 2*60517a1eSAndroid Build Coastguard Worker# 3*60517a1eSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 4*60517a1eSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 5*60517a1eSAndroid Build Coastguard Worker# You may obtain a copy of the License at 6*60517a1eSAndroid Build Coastguard Worker# 7*60517a1eSAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 8*60517a1eSAndroid Build Coastguard Worker# 9*60517a1eSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 10*60517a1eSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 11*60517a1eSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*60517a1eSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 13*60517a1eSAndroid Build Coastguard Worker# limitations under the License. 14*60517a1eSAndroid Build Coastguard Worker 15*60517a1eSAndroid Build Coastguard Workerload("@bazel_skylib//:bzl_library.bzl", "bzl_library") 16*60517a1eSAndroid Build Coastguard Workerload("//python:proto.bzl", "py_proto_library") 17*60517a1eSAndroid Build Coastguard Workerload("//python:py_binary.bzl", "py_binary") 18*60517a1eSAndroid Build Coastguard Workerload("//python:py_library.bzl", "py_library") 19*60517a1eSAndroid Build Coastguard Worker 20*60517a1eSAndroid Build Coastguard Workerpackage( 21*60517a1eSAndroid Build Coastguard Worker default_visibility = ["//sphinxdocs:__subpackages__"], 22*60517a1eSAndroid Build Coastguard Worker) 23*60517a1eSAndroid Build Coastguard Worker 24*60517a1eSAndroid Build Coastguard Worker# These are only exported because they're passed as files to the //sphinxdocs 25*60517a1eSAndroid Build Coastguard Worker# macros, and thus must be visible to other packages. They should only be 26*60517a1eSAndroid Build Coastguard Worker# referenced by the //sphinxdocs macros. 27*60517a1eSAndroid Build Coastguard Workerexports_files( 28*60517a1eSAndroid Build Coastguard Worker [ 29*60517a1eSAndroid Build Coastguard Worker "readthedocs_install.py", 30*60517a1eSAndroid Build Coastguard Worker "sphinx_build.py", 31*60517a1eSAndroid Build Coastguard Worker "sphinx_server.py", 32*60517a1eSAndroid Build Coastguard Worker "sphinx_run_template.sh", 33*60517a1eSAndroid Build Coastguard Worker ], 34*60517a1eSAndroid Build Coastguard Worker visibility = ["//visibility:public"], 35*60517a1eSAndroid Build Coastguard Worker) 36*60517a1eSAndroid Build Coastguard Worker 37*60517a1eSAndroid Build Coastguard Workerbzl_library( 38*60517a1eSAndroid Build Coastguard Worker name = "sphinx_docs_library_macro_bzl", 39*60517a1eSAndroid Build Coastguard Worker srcs = ["sphinx_docs_library_macro.bzl"], 40*60517a1eSAndroid Build Coastguard Worker deps = [ 41*60517a1eSAndroid Build Coastguard Worker ":sphinx_docs_library_bzl", 42*60517a1eSAndroid Build Coastguard Worker "//python/private:util_bzl", 43*60517a1eSAndroid Build Coastguard Worker ], 44*60517a1eSAndroid Build Coastguard Worker) 45*60517a1eSAndroid Build Coastguard Worker 46*60517a1eSAndroid Build Coastguard Workerbzl_library( 47*60517a1eSAndroid Build Coastguard Worker name = "sphinx_docs_library_bzl", 48*60517a1eSAndroid Build Coastguard Worker srcs = ["sphinx_docs_library.bzl"], 49*60517a1eSAndroid Build Coastguard Worker deps = [":sphinx_docs_library_info_bzl"], 50*60517a1eSAndroid Build Coastguard Worker) 51*60517a1eSAndroid Build Coastguard Worker 52*60517a1eSAndroid Build Coastguard Workerbzl_library( 53*60517a1eSAndroid Build Coastguard Worker name = "sphinx_docs_library_info_bzl", 54*60517a1eSAndroid Build Coastguard Worker srcs = ["sphinx_docs_library_info.bzl"], 55*60517a1eSAndroid Build Coastguard Worker) 56*60517a1eSAndroid Build Coastguard Worker 57*60517a1eSAndroid Build Coastguard Workerbzl_library( 58*60517a1eSAndroid Build Coastguard Worker name = "sphinx_bzl", 59*60517a1eSAndroid Build Coastguard Worker srcs = ["sphinx.bzl"], 60*60517a1eSAndroid Build Coastguard Worker deps = [ 61*60517a1eSAndroid Build Coastguard Worker ":sphinx_docs_library_info_bzl", 62*60517a1eSAndroid Build Coastguard Worker "//python:py_binary_bzl", 63*60517a1eSAndroid Build Coastguard Worker "@bazel_skylib//:bzl_library", 64*60517a1eSAndroid Build Coastguard Worker "@bazel_skylib//lib:paths", 65*60517a1eSAndroid Build Coastguard Worker "@bazel_skylib//lib:types", 66*60517a1eSAndroid Build Coastguard Worker "@bazel_skylib//rules:build_test", 67*60517a1eSAndroid Build Coastguard Worker "@bazel_skylib//rules:common_settings", 68*60517a1eSAndroid Build Coastguard Worker "@io_bazel_stardoc//stardoc:stardoc_lib", 69*60517a1eSAndroid Build Coastguard Worker ], 70*60517a1eSAndroid Build Coastguard Worker) 71*60517a1eSAndroid Build Coastguard Worker 72*60517a1eSAndroid Build Coastguard Workerbzl_library( 73*60517a1eSAndroid Build Coastguard Worker name = "sphinx_stardoc_bzl", 74*60517a1eSAndroid Build Coastguard Worker srcs = ["sphinx_stardoc.bzl"], 75*60517a1eSAndroid Build Coastguard Worker deps = [ 76*60517a1eSAndroid Build Coastguard Worker ":sphinx_docs_library_macro_bzl", 77*60517a1eSAndroid Build Coastguard Worker "//python/private:util_bzl", 78*60517a1eSAndroid Build Coastguard Worker "//sphinxdocs:sphinx_bzl", 79*60517a1eSAndroid Build Coastguard Worker "@bazel_skylib//:bzl_library", 80*60517a1eSAndroid Build Coastguard Worker "@bazel_skylib//lib:paths", 81*60517a1eSAndroid Build Coastguard Worker "@bazel_skylib//lib:types", 82*60517a1eSAndroid Build Coastguard Worker "@bazel_skylib//rules:build_test", 83*60517a1eSAndroid Build Coastguard Worker "@io_bazel_stardoc//stardoc:stardoc_lib", 84*60517a1eSAndroid Build Coastguard Worker ], 85*60517a1eSAndroid Build Coastguard Worker) 86*60517a1eSAndroid Build Coastguard Worker 87*60517a1eSAndroid Build Coastguard Workerbzl_library( 88*60517a1eSAndroid Build Coastguard Worker name = "readthedocs_bzl", 89*60517a1eSAndroid Build Coastguard Worker srcs = ["readthedocs.bzl"], 90*60517a1eSAndroid Build Coastguard Worker deps = ["//python:py_binary_bzl"], 91*60517a1eSAndroid Build Coastguard Worker) 92*60517a1eSAndroid Build Coastguard Worker 93*60517a1eSAndroid Build Coastguard Workerpy_binary( 94*60517a1eSAndroid Build Coastguard Worker name = "inventory_builder", 95*60517a1eSAndroid Build Coastguard Worker srcs = ["inventory_builder.py"], 96*60517a1eSAndroid Build Coastguard Worker # Only public because it's an implicit attribute 97*60517a1eSAndroid Build Coastguard Worker visibility = ["//visibility:public"], 98*60517a1eSAndroid Build Coastguard Worker) 99*60517a1eSAndroid Build Coastguard Worker 100*60517a1eSAndroid Build Coastguard Workerpy_binary( 101*60517a1eSAndroid Build Coastguard Worker name = "proto_to_markdown", 102*60517a1eSAndroid Build Coastguard Worker srcs = ["proto_to_markdown.py"], 103*60517a1eSAndroid Build Coastguard Worker # Only public because it's an implicit attribute 104*60517a1eSAndroid Build Coastguard Worker visibility = ["//visibility:public"], 105*60517a1eSAndroid Build Coastguard Worker deps = [":proto_to_markdown_lib"], 106*60517a1eSAndroid Build Coastguard Worker) 107*60517a1eSAndroid Build Coastguard Worker 108*60517a1eSAndroid Build Coastguard Workerpy_library( 109*60517a1eSAndroid Build Coastguard Worker name = "proto_to_markdown_lib", 110*60517a1eSAndroid Build Coastguard Worker srcs = ["proto_to_markdown.py"], 111*60517a1eSAndroid Build Coastguard Worker # Only public because it's an implicit attribute 112*60517a1eSAndroid Build Coastguard Worker visibility = ["//visibility:public"], 113*60517a1eSAndroid Build Coastguard Worker deps = [ 114*60517a1eSAndroid Build Coastguard Worker ":stardoc_output_proto_py_pb2", 115*60517a1eSAndroid Build Coastguard Worker ], 116*60517a1eSAndroid Build Coastguard Worker) 117*60517a1eSAndroid Build Coastguard Worker 118*60517a1eSAndroid Build Coastguard Workerpy_proto_library( 119*60517a1eSAndroid Build Coastguard Worker name = "stardoc_output_proto_py_pb2", 120*60517a1eSAndroid Build Coastguard Worker deps = [ 121*60517a1eSAndroid Build Coastguard Worker "@io_bazel_stardoc//stardoc/proto:stardoc_output_proto", 122*60517a1eSAndroid Build Coastguard Worker ], 123*60517a1eSAndroid Build Coastguard Worker) 124