diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 8fa4cca..80ffe06 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -7,7 +7,7 @@ on: branches: - master env: - nim-src: src/${{ github.event.repository.name }}.nim + nim-src: ${{ github.event.repository.name }} deploy-dir: .gh-pages jobs: docs: @@ -18,9 +18,9 @@ jobs: with: nim-version: 'devel' - run: nimble install -Y - - run: nimble doc --index:on --project --git.url:https://github.com/${{ github.repository }} --git.commit:master --out:${{ env.deploy-dir }} ${{ env.nim-src }} + - run: for file in ${{ env.nim-src }}/*; do nimble doc --index:on --project --git.url:https://github.com/${{ github.repository }} --git.commit:master --out:${{ env.deploy-dir }} $file; done - name: "Copy to index.html" - run: cp ${{ env.deploy-dir }}/${{ github.event.repository.name }}.html ${{ env.deploy-dir }}/index.html + run: cp ${{ env.deploy-dir }}/theindex.html ${{ env.deploy-dir }}/index.html - name: Deploy documents uses: peaceiris/actions-gh-pages@v3 with: