Skip to content

Conversation

@jll63
Copy link
Collaborator

@jll63 jll63 commented Nov 23, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the base-url patching mechanism in the Antora documentation build script and switches to using mrdocs-generated tagfiles instead of manually maintained ones. The changes include:

  • Improved logic to detect repository and SHA information from CI environments (CircleCI and GitHub Actions)
  • Updated dependency versions for Antora and related packages
  • Removed manually maintained tagfile in favor of mrdocs-generated versions
  • Minor configuration updates to exclude additional symbols and fix base URL

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
doc/build_antora.sh Enhanced base-url detection logic to properly handle Boost superproject scenarios with improved environment variable handling
doc/mrdocs.yml Updated base-url from 'develop' to 'master' branch and added 'compiler' to exclude-symbols
doc/antora.yml Removed manual tagfile configuration entries, switching to mrdocs-generated tagfiles
doc/package.json Updated Antora and related package versions to latest compatible releases
doc/package-lock.json Regenerated lockfile reflecting updated dependencies
doc/tagfiles/boost-openmethod-doxygen.tag.xml Deleted manually maintained tagfile (907 lines removed)
include/boost/openmethod/preamble.hpp Added blank line for formatting consistency
Files not reviewed (1)
  • doc/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

base_url="https://github.com/${repository}/blob/${sha}"
if [ -n "${BOOST_SRC_DIR:-}" ]; then
if [ -n "${CIRCLE_REPOSITORY_URL:-}" ]; then
if [[ "$CIRCLE_REPOSITORY_URL" =~ boostorg/boost(\.git)?$ ]]; then
Copy link

Copilot AI Nov 23, 2025

Choose a reason for hiding this comment

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

The regex pattern should be anchored more carefully. The pattern boostorg/boost(\.git)?$ could match URLs like https://github.com/user/boostorg/boost.git. Consider using a more specific pattern like [:/]boostorg/boost(\.git)?$ to ensure proper matching.

Suggested change
if [[ "$CIRCLE_REPOSITORY_URL" =~ boostorg/boost(\.git)?$ ]]; then
if [[ "$CIRCLE_REPOSITORY_URL" =~ [:/]boostorg/boost(\.git)?$ ]]; then

Copilot uses AI. Check for mistakes.
LIB=$(basename "$(git rev-parse --show-toplevel)")
REPOSITORY="${ACCOUNT}/${LIB}"
fi
SHA=$(git -C "$BOOST_SRC_DIR/libs" ls-tree HEAD | grep openmethod | awk '{print $3}')
Copy link

Copilot AI Nov 23, 2025

Choose a reason for hiding this comment

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

This command will fail silently if the git command fails or if 'openmethod' is not found. Add error handling: check the exit status and ensure SHA is not empty before proceeding. Consider using || true and then checking if SHA is empty, or use set -o pipefail to catch pipeline failures.

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Nov 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.03%. Comparing base (dac3cf7) to head (5f9557e).
⚠️ Report is 4 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #47   +/-   ##
========================================
  Coverage    92.03%   92.03%           
========================================
  Files           40       40           
  Lines         2838     2838           
  Branches      1354     1354           
========================================
  Hits          2612     2612           
  Misses         187      187           
  Partials        39       39           
Files with missing lines Coverage Δ
include/boost/openmethod/preamble.hpp 71.73% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8da0a1...5f9557e. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jll63 jll63 closed this Nov 23, 2025
@jll63 jll63 deleted the fix/base-url branch November 23, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant