File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,28 +46,28 @@ load("@docs_as_code_hub_env//:requirements.bzl", "all_requirements")
4646load ("@rules_python//sphinxdocs:sphinx.bzl" , "sphinx_build_binary" , "sphinx_docs" )
4747
4848def _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
6259def _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
7373def _merge_sourcelinks (name , sourcelinks , known_good = None ):
You can’t perform that action at this time.
0 commit comments