mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(docs-infra): include manually defined api reference docs in adev (#54356)
Include the manual defined api reference docs in adev PR Close #54356
This commit is contained in:
committed by
Jessica Janiuk
parent
6b345133e3
commit
fbaf989aa1
@@ -65,10 +65,13 @@ copy_to_directory(
|
||||
"//packages/upgrade:upgrade_docs",
|
||||
"//packages/upgrade/static:upgrade_static_docs",
|
||||
"//packages/upgrade/static/testing:upgrade_static_testing_docs",
|
||||
"//tools/manual_api_docs/blocks:blocks_docs",
|
||||
"//tools/manual_api_docs/elements:elements_docs",
|
||||
],
|
||||
replace_prefixes = {
|
||||
"adev/src/content": "",
|
||||
"packages/**/": "api/",
|
||||
"tools/**/": "api/",
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
@@ -98,5 +98,7 @@ generate_api_manifest(
|
||||
"//packages/upgrade:upgrade_docs_extraction",
|
||||
"//packages/upgrade/static:upgrade_static_docs_extraction",
|
||||
"//packages/upgrade/static/testing:upgrade_static_testing_docs_extraction",
|
||||
"//tools/manual_api_docs/blocks",
|
||||
"//tools/manual_api_docs/elements",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
load("//tools/manual_api_docs:generate_block_api_json.bzl", "generate_block_api_json")
|
||||
load("@npm//@angular/build-tooling/bazel/api-gen/rendering:render_api_to_html.bzl", "render_api_to_html")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
generate_block_api_json(
|
||||
name = "blocks",
|
||||
srcs = glob(["*.md"]),
|
||||
)
|
||||
|
||||
render_api_to_html(
|
||||
name = "blocks_docs",
|
||||
srcs = [
|
||||
":blocks",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
load("//tools/manual_api_docs:generate_element_api_json.bzl", "generate_element_api_json")
|
||||
load("@npm//@angular/build-tooling/bazel/api-gen/rendering:render_api_to_html.bzl", "render_api_to_html")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
generate_element_api_json(
|
||||
name = "elements",
|
||||
srcs = glob(["*.md"]),
|
||||
)
|
||||
|
||||
render_api_to_html(
|
||||
name = "elements_docs",
|
||||
srcs = [
|
||||
":elements",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -27,7 +27,14 @@ function main() {
|
||||
};
|
||||
});
|
||||
|
||||
writeFileSync(outputFileExecRootRelativePath, JSON.stringify(entries), {encoding: 'utf8'});
|
||||
writeFileSync(
|
||||
outputFileExecRootRelativePath,
|
||||
JSON.stringify({
|
||||
moduleName: '@angular/core',
|
||||
entries,
|
||||
}),
|
||||
{encoding: 'utf8'},
|
||||
);
|
||||
}
|
||||
|
||||
main();
|
||||
|
||||
@@ -27,7 +27,14 @@ function main() {
|
||||
};
|
||||
});
|
||||
|
||||
writeFileSync(outputFileExecRootRelativePath, JSON.stringify(entries), {encoding: 'utf8'});
|
||||
writeFileSync(
|
||||
outputFileExecRootRelativePath,
|
||||
JSON.stringify({
|
||||
moduleName: '@angular/core',
|
||||
entries,
|
||||
}),
|
||||
{encoding: 'utf8'},
|
||||
);
|
||||
}
|
||||
|
||||
main();
|
||||
|
||||
Reference in New Issue
Block a user