Skip to content

Commit 738dfde

Browse files
committed
resolved ci/cd pipeline build dir struct err
Signed-off-by: Shubham Kumar <chmodshubham@gmail.com>
1 parent 1bc9fbb commit 738dfde

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,25 @@ jobs:
4040
run: |
4141
python -m pip install --upgrade pip
4242
pip install -r requirements.txt
43+
echo "Installed packages:"
44+
pip list | grep -E "(sphinx|furo|myst)" || echo "Core packages listed above"
4345
4446
- name: Build documentation
4547
run: |
48+
# Ensure .sphinx directory exists
49+
mkdir -p .sphinx
4650
export GITHUB_ACTIONS=true
47-
sphinx-build -c . -b dirhtml . _build/html --keep-going -w .sphinx/warnings.txt
51+
sphinx-build -c . -b dirhtml . _build/html --keep-going -w .sphinx/warnings.txt -v
52+
53+
- name: Check build warnings
54+
run: |
55+
if [ -f .sphinx/warnings.txt ]; then
56+
echo "Build warnings found:"
57+
cat .sphinx/warnings.txt
58+
echo "Warnings logged, but build will continue"
59+
else
60+
echo "No warnings file found"
61+
fi
4862
4963
- name: Add .nojekyll file
5064
run: |
@@ -53,10 +67,15 @@ jobs:
5367
- name: Verify build output
5468
run: |
5569
echo "Build directory structure:"
56-
find _build/html -type f -name "*.html" | head -20
70+
find _build/html -type f -name "index" | head -20
71+
echo "HTML directories:"
72+
find _build/html -type d -maxdepth 2 | head -20
5773
echo "Static files:"
5874
find _build/html/_static -type f | head -10
59-
echo "Index file exists:" && ls -la _build/html/index.html
75+
echo "Main index exists:" && ls -la _build/html/index
76+
echo "Checking .nojekyll file:" && ls -la _build/html/.nojekyll
77+
echo "Total files built:" && find _build/html -type f | wc -l
78+
echo "Build completed successfully"
6079
6180
- name: Setup Pages
6281
uses: actions/configure-pages@v3

0 commit comments

Comments
 (0)