diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..5e20e74 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,41 @@ +name: Publish documentation to GitHub Pages + +on: + release: + types: [created] + +permissions: + contents: read + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python 3.8 + uses: actions/setup-python@v5 + with: + python-version: "3.8" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r docs/requirements.txt + + - name: Build documentation + run: cd docs && make html + + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: './docs/build/html' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/Makefile b/Makefile deleted file mode 100644 index 9313944..0000000 --- a/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -.PHONY: doc - -all: doc - -# declare your targets here & implement them with '_' prefix -doc: -# target name is formatted: -# bold - \033[1m, purple - \033[095m, normal text - \033[0m - @echo -e "Executing \033[1m\033[095m$@\033[0m target:" - @$(MAKE) --no-print-directory _$@ - @echo - -_doc: requirements.txt - rm -fr docsvenv build; mkdir build - python3.8 -m venv docsvenv - . docsvenv/bin/activate; \ - pip install -r docs/requirements_docs.txt; \ - pip install -r requirements.txt; \ - cd docs; make clean && make html - zip -r build/parfun_docs.zip docs/build/html/* diff --git a/docs/requirements_docs.txt b/docs/requirements.txt similarity index 93% rename from docs/requirements_docs.txt rename to docs/requirements.txt index 8a9310f..6c62171 100644 --- a/docs/requirements_docs.txt +++ b/docs/requirements.txt @@ -4,3 +4,4 @@ sphinx_rtd_theme sphinx-substitution-extensions dask[distributed] pandas +scaler diff --git a/parfun/about.py b/parfun/about.py index b2ea6c2..e32e0f2 100644 --- a/parfun/about.py +++ b/parfun/about.py @@ -1 +1 @@ -__version__ = "7.0.2" +__version__ = "7.0.3"