Skip to content

Commit f0e940c

Browse files
committed
Modify the right function
1 parent e6ebd96 commit f0e940c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

docs.bzl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,28 @@ load("@docs_as_code_hub_env//:requirements.bzl", "all_requirements")
4646
load("@rules_python//sphinxdocs:sphinx.bzl", "sphinx_build_binary", "sphinx_docs")
4747

4848
def _rewrite_needs_json_to_docs_sources(labels):
49-
"""Replace '@repo//:needs_json' -> '@repo//:docs_sources' for every item.
50-
Note: Else path has been commented out as this prevented inclusion of CPP files
51-
for case when fragment of code shall be displayed as literal include.
52-
"""
49+
"""Replace '@repo//:needs_json' -> '@repo//:docs_sources' for every item."""
5350
out = []
5451
for x in labels:
5552
s = str(x)
5653
if s.endswith("//:needs_json"):
5754
out.append(s.replace("//:needs_json", "//:docs_sources"))
58-
#else:
59-
#out.append(s)
55+
else:
56+
out.append(s)
6057
return out
6158

6259
def _rewrite_needs_json_to_sourcelinks(labels):
63-
"""Replace '@repo//:needs_json' -> '@repo//:sourcelinks_json' for every item."""
60+
"""Replace '@repo//:needs_json' -> '@repo//:sourcelinks_json' for every item.
61+
Note: Else path has been commented out as this prevented inclusion of CPP files
62+
for case when fragment of code shall be displayed as literal include.
63+
"""
6464
out = []
6565
for x in labels:
6666
s = str(x)
6767
if s.endswith("//:needs_json"):
6868
out.append(s.replace("//:needs_json", "//:sourcelinks_json"))
69-
else:
70-
out.append(s)
69+
#else:
70+
#out.append(s)
7171
return out
7272

7373
def _merge_sourcelinks(name, sourcelinks, known_good = None):

0 commit comments

Comments
 (0)