Repository navigation
docs: read the sibling packages' local inventories only on request - #1075
Merged
Merged
Conversation
A local build read ../<Sibling>/docs/build/1/objects.inv before the published inventory. InterLinks takes the first source that loads for the whole package, so an old local build (CTModels 0.19.7 against 0.21.1 published) shadowed the published inventory and broke every @extref added since. The local builds are now read only with CT_LOCAL_INVENTORIES=true, and the build names each one and its version. Refs control-toolbox/ct-conventions#69. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs control-toolbox/ct-conventions#69 (
SITE4).Problem
Outside CI,
docs/make.jllisted each sibling's local build (../<Sibling>/docs/build/1/objects.inv) before its published inventory.InterLinkstakes the first source that loads for the whole package, so an old local build shadows the published inventory. With an old../CTModels.jl/docs/build/1(0.19.7, against 0.21.1 published) and../CTFlows.jl/docs/build/1(0.18.0-beta, against 0.18.3), a plain local build stopped on four@extrefs that CI resolves:Setting
CI=trueto skip the local inventories is no workaround: DocumenterVitepress then builds for the/OptimalControl.jl/prefix (!haskey(ENV, "CI")), and the local preview served fromdocs/build/1returns 404 for every asset.Change
IN_CIis gone.CT_LOCAL_INVENTORIES=true julia --project=docs docs/make.jlreads the local builds first, for cross-repository development before a release; the build then names each local inventory and its version (@info), so a stale one shows.Verification
With a stale CTModels inventory (0.19.7) placed as a sibling build,
draft = true:julia --project=docs docs/make.jlCT_LOCAL_INVENTORIES=true julia --project=docs docs/make.jl@extrefs, withInterLinks: local inventory of CTModels.jl (version 0.19.7)in the logChangelog: one bullet under
📚 Documentationof[Unreleased];release.jl lint-changelogis green.🤖 Generated with Claude Code