From 8a6171dce8cb2c1a81e077dec1ce2750ab0ee62f Mon Sep 17 00:00:00 2001 From: SevgiAkten Date: Tue, 13 Aug 2024 15:19:55 +0300 Subject: [PATCH] edit documentation.yml file --- .github/workflows/documentation.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 48fd789..047e038 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -18,18 +18,18 @@ jobs: with: python-version: '3.x' - # - name: Install dependencies - # run: | - # pip install pydoc - - name: Generate HTML Documentation run: | + export PATH="$PATH:/usr/local/bin/python3" mkdir -p docs - pydoc -w optimizer - mv optimizer.html docs/index.html + for file in $(find . -name "*.py"); do + module=$(basename "$file" .py) + python3 -m pydoc -w "$module" + mv "$module.html" docs/ + done - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs \ No newline at end of file + publish_dir: ./docs