-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
7 additions
and
92 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,4 @@ | ||
#!/bin/bash | ||
set -x # Print commands as they are executed | ||
|
||
# Print environment info | ||
echo "=== Environment Info ===" | ||
echo "PWD: $(pwd)" | ||
echo "Node version: $(node --version)" | ||
echo "NPM version: $(npm --version)" | ||
|
||
echo "=== Antora Version ===" | ||
npx antora --version | ||
|
||
echo "=== Setting Environment Variables ===" | ||
export ANTORA_LOG_LEVEL=info | ||
export DEBUG=antora:* | ||
|
||
echo "=== Checking Playbook ===" | ||
echo "Playbook path: $1" | ||
ls -l "$1" | ||
|
||
echo "=== Running Antora ===" | ||
|
||
# Ensure we capture all output | ||
if [ "$CI" = "true" ]; then | ||
# CI run with explicit logging | ||
ANTORA_LOG_LEVEL=all ANTORA_LOG_FORMAT=json npx antora --stacktrace "$1" 2>&1 | ||
else | ||
# Regular local run | ||
ANTORA_LOG_LEVEL=info npx antora --stacktrace "$1" 2>&1 | ||
fi | ||
|
||
echo "=== Antora Run Complete ===" | ||
# Run Antora with stacktrace for better error reporting | ||
npx antora --stacktrace "$1" 2>&1 |