Skip to content

feat: add code targets to docs bundles - #677

Open
AlexanderLanin wants to merge 5 commits into
mainfrom
copilot/docs-bundle-code-targets
Open

feat: add code targets to docs bundles#677
AlexanderLanin wants to merge 5 commits into
mainfrom
copilot/docs-bundle-code-targets

Conversation

@AlexanderLanin

@AlexanderLanin AlexanderLanin commented Jul 31, 2026

Copy link
Copy Markdown
Member

Summary

  • add code_targets to docs_bundle() and docs()
  • collect direct source files from implementation targets (verified for Python and C++)
  • preserve scan_code compatibility and deduplicate merged source links

open points

  • IMHO code_targets is a much better name than scan_code, as what we want to pass in here are the actual product code targets.
  • Should we use our extensions for dogfooding this feature?

@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //src:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.6.0) and connecting to it...
INFO: Invocation ID: 8264808c-e2db-4733-b280-aad29af58372
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: src
WARNING: Target pattern parsing failed.
ERROR: Skipping '//src:license-check': no such target '//src:license-check': target 'license-check' not declared in package 'src' defined by /home/runner/work/docs-as-code/docs-as-code/src/BUILD
ERROR: no such target '//src:license-check': target 'license-check' not declared in package 'src' defined by /home/runner/work/docs-as-code/docs-as-code/src/BUILD
INFO: Elapsed time: 7.956s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

@github-actions

Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

@AlexanderLanin
AlexanderLanin force-pushed the copilot/docs-bundle-code-targets branch from 2c27741 to 6101543 Compare July 31, 2026 16:02
@AlexanderLanin
AlexanderLanin marked this pull request as ready for review July 31, 2026 16:02
@AlexanderLanin
AlexanderLanin marked this pull request as draft July 31, 2026 16:03
@AlexanderLanin
AlexanderLanin force-pushed the copilot/docs-bundle-code-targets branch from 6101543 to fc59863 Compare July 31, 2026 16:04
@AlexanderLanin
AlexanderLanin marked this pull request as ready for review July 31, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant