Skip to content

docs: make the logging docs mountable by integrating projects - #446

Merged
antonkri merged 1 commit into
mainfrom
docs/mountable-docs
Nov 23, 2026
Merged

antonkri merged 1 commit into
mainfrom
docs/mountable-docs

Conversation

@antonkri

Copy link
Copy Markdown
Contributor

Problem

reference_integration mounts the logging documentation into its own Sphinx build (docs-as-code bundles). Two things break there and are currently fixed with local patches in reference_integration:

  • 003-relative-verification-report-links.patch: chklst_impl_inspection.rst of the datarouter links the verification report with an absolute docname (</verification_report/module_verification_report>). In a mounted tree, the absolute docname points to the root of the integrating project, not to logging's own report.
  • 007-docs-drop-generated-dependency-pages.patch: the dependency pages (dependencies, backend_dependencies, frontend_dependencies) are generated by docs/conf.py via bazel query and are gitignored. Mounted docs do not run logging's conf.py, so the pages are missing and the toctree entries and :doc: links are broken.

Fix

  • Use a relative docname for the verification report link; it resolves both in logging's own build and when mounted.
  • Commit the generated dependency pages (no longer gitignored), so every consumer of the docs tree has them. docs/conf.py still regenerates them for local docs builds.
  • New workflow Dependency reports up to date runs scripts/generate_dependency_report.py ... --check, so the committed pages cannot drift from the Bazel graph.

With this, reference_integration can drop both patches.

Note: on current main the generator marks dependencies (datarouter) and backend_dependencies as incomplete because targets depend on the missing package score/mw/log/detail/dlt_trace. The committed pages show that warning, exactly as logging's own docs build does today; fixing the dangling dependency is out of scope here.

Use a relative docname for the verification report link and commit the generated dependency pages, so projects that mount the logging docs (e.g. reference_integration) resolve both without running docs/conf.py. A new workflow checks that the committed pages match the Bazel dependency graph.

Signed-off-by: Anton Krivoborodov <anton.krivoborodov@bmw.de>
@github-actions

Copy link
Copy Markdown
Contributor

License Check Results

🚀 The license check job ran with the Bazel command:

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

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.8.2) and connecting to it...
INFO: Invocation ID: dbe519bc-4bdf-419d-acc3-43c11ed0a40e
Computing main repo mapping: 
Computing main repo mapping: 
WARNING: For repository 'rules_cc', the root module requires module version rules_cc@0.2.17, but got rules_cc@0.2.25 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
WARNING: /home/runner/.bazel/external/score_baselibs+/score/json/BUILD:25:12: target '@@score_baselibs+//score/json:base_library' is deprecated: base_library no longer has any effect, vaJson is the only parser backend. Remove this flag from your build configuration; it will be deleted in a future release.
Loading: 
Loading: 3 packages loaded
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:license-check': no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/logging/logging/BUILD
ERROR: no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/logging/logging/BUILD
INFO: Elapsed time: 15.741s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-446: https://eclipse-score.github.io/logging/pr-446/

@github-project-automation github-project-automation Bot moved this from Backlog to On Hold in LOG - Logging FT Nov 23, 2026
@rmaddikery
rmaddikery added this pull request to the merge queue Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 23, 2026
@antonkri
antonkri added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit ed80fbe Nov 23, 2026
24 of 25 checks passed
@antonkri
antonkri deleted the docs/mountable-docs branch November 23, 2026 13:29
@github-project-automation github-project-automation Bot moved this from On Hold to Done in LOG - Logging FT Nov 23, 2026

This branch was previously deployed

1 inactive deployment
workflow-approval — 73474140 Deployed Nov 23, 2026 by antonkri via run-tests / coverage approval gate #1862
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants