Skip to content

feat: docs_bundle - #671

Open
AlexanderLanin wants to merge 10 commits into
mainfrom
bundles
Open

feat: docs_bundle#671
AlexanderLanin wants to merge 10 commits into
mainfrom
bundles

Conversation

@AlexanderLanin

Copy link
Copy Markdown
Member

Bundles!

📌 Description

🚨 Impact Analysis

  • This change does not violate any tool requirements and is covered by existing tool requirements
  • This change does not violate any design decisions
  • Otherwise I have created a ticket for new tool qualification

✅ Checklist

  • Added/updated documentation for new or changed features
  • Added/updated tests to cover the changes
  • Followed project coding standards and guidelines

@github-actions

github-actions Bot commented Jul 28, 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: fde5d1bc-5192-4536-b6e6-3e2e3b1d153f
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
DEBUG: /home/runner/.bazel/external/rules_python+/python/private/repo_utils.bzl:101:16: 
rules_python:coverage_dep WARNING: rules_python's bundled coverage tool has no wheel for python_version=3.12.13, platform=ppc64le-unknown-linux-gnu. `bazel coverage` will produce empty lcov for py_test targets in this configuration. Either pin python_version to a version in the bundled set (see python/private/coverage_deps.bzl), or configure coverage manually via py_runtime.coverage_tool. See docs/coverage.md.
DEBUG: /home/runner/.bazel/external/rules_python+/python/private/repo_utils.bzl:101:16: 
rules_python:coverage_dep WARNING: rules_python's bundled coverage tool has no wheel for python_version=3.12.13, platform=riscv64-unknown-linux-gnu. `bazel coverage` will produce empty lcov for py_test targets in this configuration. Either pin python_version to a version in the bundled set (see python/private/coverage_deps.bzl), or configure coverage manually via py_runtime.coverage_tool. See docs/coverage.md.
DEBUG: /home/runner/.bazel/external/rules_python+/python/private/repo_utils.bzl:101:16: 
rules_python:coverage_dep WARNING: rules_python's bundled coverage tool has no wheel for python_version=3.12.13, platform=s390x-unknown-linux-gnu. `bazel coverage` will produce empty lcov for py_test targets in this configuration. Either pin python_version to a version in the bundled set (see python/private/coverage_deps.bzl), or configure coverage manually via py_runtime.coverage_tool. See docs/coverage.md.
DEBUG: /home/runner/.bazel/external/rules_python+/python/private/repo_utils.bzl:101:16: 
rules_python:coverage_dep WARNING: rules_python's bundled coverage tool has no wheel for python_version=3.12.13, platform=x86_64-unknown-linux-musl. `bazel coverage` will produce empty lcov for py_test targets in this configuration. Either pin python_version to a version in the bundled set (see python/private/coverage_deps.bzl), or configure coverage manually via py_runtime.coverage_tool. See docs/coverage.md.
Loading: 0 packages loaded
    currently loading: src
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.950s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

Comment thread src/extensions/score_mounts/__init__.py Fixed
Comment thread src/tests/docs_e2e/support.py Fixed
env["SCORE_SOURCELINKS"] = str(sourcelinks)

return subprocess.run(
[str(docs_binary)],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a build system. No need to be defensive here.

Comment thread src/extensions/score_mounts/__init__.py Fixed
Comment thread src/tests/docs_e2e/support.py Fixed
env["SCORE_SOURCELINKS"] = str(sourcelinks)

return subprocess.run(
[str(docs_binary)],
Comment thread docs.bzl

docs_sources_env["ACTION"] = "incremental"
py_binary(
name = "docs_combo",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving too fast. Keep docs_combo for backwards-compatibility.

Comment thread docs.bzl
exec root in a sandbox) is the caller's responsibility.
"""
manifest_path = Path(manifest_path)
data = json.loads(manifest_path.read_text(encoding="utf-8"))
Comment thread src/tests/mounts_contract/test_mount_docs_e2e.py Fixed
Comment thread src/tests/mounts_contract/test_mount_docs_e2e.py Fixed
Comment thread src/tests/mounts_contract/test_mount_docs_e2e.py Fixed
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| `bazel run //:docs` | Builds documentation (also writes `metrics.json`) |
| `bazel run //:docs_check` | Verifies documentation correctness |
| `bazel run //:docs_combo` | Builds combined documentation with all external dependencies included |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please avoid the breaking change of removing :docs_combo

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs_combo only works in ref int, and we will add it there as an alias. We need to change BUILD file anyway.

@AlexanderLanin
AlexanderLanin marked this pull request as ready for review July 29, 2026 10:12

The pieces fit together like this:

.. code-block:: text

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use mermaid or at least plantuml for such diagrams.

real, editable sources.


How the wiring works

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is explanation and not a how-to.

"""Write full config, so the final configuration is visible in one file."""

config_setdefault(app.config, "needscfg_exclude_defaults", True)
config_setdefault(app.config, "needscfg_exclude_defaults", False)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hä?

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.

3 participants