From b68100b20e1ea18bf3a1ca398d7af986df26f7fa Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 7 Jan 2026 13:01:30 -0500 Subject: [PATCH] docs: Publish rustdoc for internal crates alongside mdbook The docs workflow now also generates rustdoc for all workspace crates and publishes them as a subdirectory of the main documentation site. This makes internal API documentation available at bootc-dev.github.io/bootc/internals.html with links to each crate. Note this required switching the docs container to CentOS Stream 10 for newer Rust (1.91). Assisted-by: OpenCode (Opus 4.5) Signed-off-by: Colin Walters --- Justfile | 4 ++-- docs/Dockerfile.mdbook | 30 +++++++++++++----------------- docs/src/SUMMARY.md | 4 ++++ docs/src/internals.md | 24 ++++++++++++++++++++++++ 4 files changed, 43 insertions(+), 19 deletions(-) create mode 100644 docs/src/internals.md diff --git a/Justfile b/Justfile index a8172c1d..a364efbc 100644 --- a/Justfile +++ b/Justfile @@ -233,7 +233,7 @@ pullspec-for-os TYPE NAME: @jq -r --arg v "{{NAME}}" '."{{TYPE}}"[$v]' < hack/os-image-map.json build-mdbook: - cd docs && podman build {{base_buildargs}} -t localhost/bootc-mdbook -f Dockerfile.mdbook + podman build {{generic_buildargs}} -t localhost/bootc-mdbook -f docs/Dockerfile.mdbook . # Generate the rendered HTML to the target DIR directory build-mdbook-to DIR: build-mdbook @@ -241,7 +241,7 @@ build-mdbook-to DIR: build-mdbook set -xeuo pipefail # Create a temporary container to extract the built docs container_id=$(podman create localhost/bootc-mdbook) - podman cp ${container_id}:/src/book {{DIR}} + podman cp ${container_id}:/src/docs/book {{DIR}} podman rm -f ${container_id} mdbook-serve: build-mdbook diff --git a/docs/Dockerfile.mdbook b/docs/Dockerfile.mdbook index 3020eeb5..f0d67fdf 100644 --- a/docs/Dockerfile.mdbook +++ b/docs/Dockerfile.mdbook @@ -1,33 +1,29 @@ -FROM registry.access.redhat.com/ubi10/ubi:latest -# An intermediate layer which caches the RPMS +FROM ghcr.io/bootc-dev/devenv-c10s:latest +USER root +# Install mdbook tooling via cargo-binstall RUN <