Skip to content

Fixed bugs

Fixed bugs #2

Workflow file for this run

name: "Sphinx: Render docs"
<<<<<<< HEAD

Check failure on line 3 in .github/workflows/sphinx.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sphinx.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
<<<<<<< HEAD
# on: push
on:
workflow_call:
=======
on: push
>>>>>>> c029ef6 (initial loading of sphinx api documentation)
=======
# on: push
on:
workflow_call:
>>>>>>> 90b2a92 (docker container and ci workflow)
jobs:
build:
runs-on: ubuntu-latest
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> d276d08 (without docker)
# container:
# image: ghcr.io/llnl/gplasdi/lasdi_env:latest
# options: --user 1001 --privileged
# volumes:
# - /mnt:/mnt
permissions:
contents: write
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- name: Build HTML
<<<<<<< HEAD
<<<<<<< HEAD
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
build-command: "sphinx-build -b html source build"
pre-build-command: "pip install --upgrade pip && pip install sphinx-autoapi sphinx_rtd_theme"
=======
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
<<<<<<< HEAD
build-command: "sphinx-build -b html . build"
pre-build-command: "pip install sphinx-autoapi sphinx_rtd_theme"
>>>>>>> 830ee33 (another try..)
=======
build-command: "sphinx-build -b html source build"
pre-build-command: "pip install --upgrade pip && pip install sphinx-autoapi sphinx_rtd_theme"
>>>>>>> d276d08 (without docker)
# run: |
# sphinx-build --version
# cd ${GITHUB_WORKSPACE}/docs
# mkdir build
# sphinx-build -b html source/ build/
<<<<<<< HEAD
<<<<<<< HEAD
- name: check resulting files
run: |
ls ${GITHUB_WORKSPACE}/docs/build
=======
=======
container:
image: ghcr.io/llnl/gplasdi/lasdi_env:latest
options: --user 1001 --privileged
volumes:
- /mnt:/mnt
>>>>>>> 90b2a92 (docker container and ci workflow)
permissions:
contents: write
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- name: Build HTML
uses: ammaraskar/sphinx-action@master
>>>>>>> c029ef6 (initial loading of sphinx api documentation)
=======
# uses: ammaraskar/sphinx-action@master
run: |
sphinx-build --version
sphinx-build -b html source/ build/
>>>>>>> 9528f00 (custom build command instead of github action)
=======
>>>>>>> 830ee33 (another try..)
=======
- name: check resulting files
run: |
ls ${GITHUB_WORKSPACE}/docs/build
<<<<<<< HEAD
ls ${GITHUB_WORKSPACE}/docs/build/html
>>>>>>> 3afbe7f (check resulting file)
=======
>>>>>>> 6a4851d (fix artifact path)
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
<<<<<<< HEAD
<<<<<<< HEAD
path: docs/build/
=======
path: docs/build/html/
>>>>>>> c029ef6 (initial loading of sphinx api documentation)
=======
path: docs/build/
>>>>>>> 6a4851d (fix artifact path)
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
<<<<<<< HEAD
<<<<<<< HEAD
publish_dir: docs/build
=======
publish_dir: docs/build/html
>>>>>>> c029ef6 (initial loading of sphinx api documentation)
=======
publish_dir: docs/build
>>>>>>> 6a4851d (fix artifact path)