Skip to content

Commit

Permalink
add documentation.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
SevgiAkten committed Aug 13, 2024
1 parent eb92d7e commit 27001f5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Generate Documentation

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
pip install pydoc
- name: Generate HTML Documentation
run: |
mkdir -p docs
pydoc -w optimizer
mv optimizer.html docs/index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
3 changes: 3 additions & 0 deletions src/optimizer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# ------ Optimizer for cga, sync_ga, alpha_cga, ccga and mcccga methods ------ #


# ------------------------------ selection --------------------------------- #
from selection.roulette_wheel_selection import RouletteWheelSelection
from selection.tournament_selection import TournamentSelection
Expand Down

0 comments on commit 27001f5

Please sign in to comment.