Skip to content

Commit

Permalink
edit documentation.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
SevgiAkten committed Aug 13, 2024
1 parent 9ac4fb3 commit 8a6171d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
publish_dir: ./docs

0 comments on commit 8a6171d

Please sign in to comment.