99
1010# MARK: - Documentation Providers
1111
12- _PROVIDERS_DOC_PROVIDER = doc_providers .create (
13- name = "providers_overview" ,
14- stardoc_input = "//swiftformat:swiftformat.bzl" ,
15- symbols = [
16- "SwiftFormatInfo" ,
17- ],
18- deps = ["//swiftformat" ],
19- )
20-
2112_RULES_AND_MACROS_DOC_PROVIDER = doc_providers .create (
2213 name = "rules_and_macros_overview" ,
2314 stardoc_input = "//swiftformat:swiftformat.bzl" ,
@@ -31,6 +22,15 @@ _RULES_AND_MACROS_DOC_PROVIDER = doc_providers.create(
3122 deps = ["//swiftformat" ],
3223)
3324
25+ _REPOSITORY_RULES_DOC_PROVIDER = doc_providers .create (
26+ name = "repository_rules_overview" ,
27+ stardoc_input = "//swiftformat:load_package.bzl" ,
28+ symbols = [
29+ "swiftformat_load_package" ,
30+ ],
31+ deps = ["//swiftformat:load_package" ],
32+ )
33+
3434_API_SRCS = [
3535 "src_utils" ,
3636]
@@ -47,7 +47,7 @@ _API_DOC_PROVIDERS = [
4747
4848_ALL_DOC_PROVIDERS = [
4949 _RULES_AND_MACROS_DOC_PROVIDER ,
50- _PROVIDERS_DOC_PROVIDER ,
50+ _REPOSITORY_RULES_DOC_PROVIDER ,
5151 doc_providers .create (
5252 name = "api" ,
5353 is_stardoc = False ,
@@ -59,25 +59,25 @@ _ALL_DOC_PROVIDERS = [
5959# MARK: - Headers
6060
6161write_header (
62- name = _PROVIDERS_DOC_PROVIDER .header_label ,
62+ name = _RULES_AND_MACROS_DOC_PROVIDER .header_label ,
6363 header_content = [
64- "# Providers " ,
64+ "# Rules and Macros " ,
6565 "" ,
66- "The providers described below are used by [the rules](/doc/rules_and_macros_overview.md) to " ,
67- "pass along information about the source files and the formatted files." ,
66+ "The rules and macros described below are used to format, test and " ,
67+ "copy Swift source files." ,
6868 ],
69- symbols = _PROVIDERS_DOC_PROVIDER .symbols ,
69+ symbols = _RULES_AND_MACROS_DOC_PROVIDER .symbols ,
7070)
7171
7272write_header (
73- name = _RULES_AND_MACROS_DOC_PROVIDER .header_label ,
73+ name = _REPOSITORY_RULES_DOC_PROVIDER .header_label ,
7474 header_content = [
75- "# Rules and Macros" ,
75+ "# Repository Rules and Macros" ,
7676 "" ,
77- "The rules and macros described below are used to format, test and " ,
78- "copy Swift source files ." ,
77+ "The rules and macros described below are used to configure and download " ,
78+ "dependencies for rules_swiftformat ." ,
7979 ],
80- symbols = _RULES_AND_MACROS_DOC_PROVIDER .symbols ,
80+ symbols = _REPOSITORY_RULES_DOC_PROVIDER .symbols ,
8181)
8282
8383# Write the API headers
0 commit comments