@@ -44,7 +44,6 @@ load("@rules_pkg//pkg:mappings.bzl", "pkg_files")
4444load ("@rules_pkg//pkg:tar.bzl" , "pkg_tar" )
4545load ("@rules_python//sphinxdocs:sphinx.bzl" , "sphinx_build_binary" , "sphinx_docs" )
4646load ("@rules_python//sphinxdocs:sphinx_docs_library.bzl" , "sphinx_docs_library" )
47- load ("@score_docs_as_code//src/extensions/score_source_code_linker:collect_source_files.bzl" , "parse_source_files_for_needs_links" )
4847load ("@score_python_basics//:defs.bzl" , "score_virtualenv" )
4948
5049sphinx_requirements = all_requirements + [
@@ -66,13 +65,6 @@ def docs(source_files_to_scan_for_needs_links = None, source_dir = "docs", conf_
6665 * only callable from 'docs/BUILD'
6766 """
6867
69- # Parse source files for needs links
70- # This needs to be created to generate a target, otherwise it won't execute as dependency for other macros
71- parse_source_files_for_needs_links (
72- name = "score_source_code_parser" ,
73- srcs_and_deps = source_files_to_scan_for_needs_links if source_files_to_scan_for_needs_links else [],
74- )
75-
7668 # We are iterating over all provided 'targets' in order to allow for automatic generation of them without
7769 # needing to modify the underlying 'docs.bzl' file.
7870 for target in docs_targets :
@@ -137,7 +129,7 @@ def _incremental(incremental_name = "incremental", live_name = "live_preview", s
137129 srcs = ["@score_docs_as_code//src:incremental.py" ],
138130 deps = dependencies ,
139131 # TODO: Figure out if we need all dependencies as data here or not.
140- data = [":score_source_code_parser" , " @score_docs_as_code//src:plantuml" , "@score_docs_as_code//src:docs_assets" ] + dependencies + external_needs_deps ,
132+ data = ["@score_docs_as_code//src:plantuml" , "@score_docs_as_code//src:docs_assets" ] + dependencies + external_needs_deps ,
141133 env = {
142134 "SOURCE_DIRECTORY" : source_dir ,
143135 "CONF_DIRECTORY" : conf_dir ,
@@ -205,7 +197,6 @@ def _docs(name = "docs", suffix = "", format = "html", external_needs_deps = lis
205197 "manual" ,
206198 ],
207199 tools = [
208- ":score_source_code_parser" ,
209200 "@score_docs_as_code//src:plantuml" ,
210201 "@score_docs_as_code//src:docs_assets" ,
211202 ] + external_needs_deps ,
0 commit comments