mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
6eac1b3f22
Move the api-gen pipeline into the shared-docs directory. PR Close #57241
22 lines
766 B
Python
22 lines
766 B
Python
load("//adev/shared-docs/pipeline/api-gen/extraction:extract_api_to_json.bzl", "extract_api_to_json")
|
|
load("//adev/shared-docs/pipeline/api-gen/rendering:render_api_to_html.bzl", "render_api_to_html")
|
|
|
|
def generate_api_docs(name, module_name, entry_point, srcs, import_map = {}, extra_entries = []):
|
|
"""Generates API documentation reference pages for the given sources."""
|
|
json_outfile = name + "_api.json"
|
|
|
|
extract_api_to_json(
|
|
name = name + "_extraction",
|
|
module_name = module_name,
|
|
entry_point = entry_point,
|
|
srcs = srcs,
|
|
output_name = json_outfile,
|
|
import_map = import_map,
|
|
extra_entries = extra_entries,
|
|
)
|
|
|
|
render_api_to_html(
|
|
name = name,
|
|
srcs = [json_outfile],
|
|
)
|