Skip to content

Commit

Permalink
debug workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alleria1809 committed Jun 30, 2024
1 parent 2a5a260 commit 501a5a9
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Ensure full git history is fetched
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -34,34 +34,25 @@ jobs:
poetry config virtualenvs.create false
poetry install
- name: List installed packages
- name: Check working directory and conf.py existence
run: |
poetry run pip list
- name: Print Sphinx version
run: |
poetry run sphinx-build --version
echo "Current Working Directory: $(pwd)"
ls -la ./docs/source/
if [ -f "./docs/source/conf.py" ]; then
echo "conf.py found."
else
echo "conf.py not found."
fi
- name: Build documentation
run: |
echo "Current Working Directory: $(pwd)"
echo "Python path before Sphinx build: $PYTHONPATH"
poetry run sphinx-build -b html ./docs/source/ ./docs/build/ -vvv
echo "Listing detailed contents of build directory:"
find ./docs/build/ -type f
working-directory: ${{ github.workspace }}

- name: Test module import
- name: List built documentation
run: |
poetry run python -c "import lightrag; print('Lightrag module loaded from:', lightrag.__file__)"
- name: Print effective Sphinx conf
run: |
poetry run python -c "from sphinx.config import Config; config = Config.read('./docs/source/conf.py'); print(config.values)"
- name: Check API documentation files
run: |
echo "Checking API documentation directory for components:"
ls -la ./docs/build/apis/components/
find ./docs/build/ -type f
- name: Create .nojekyll file
run: |
Expand Down

0 comments on commit 501a5a9

Please sign in to comment.