Skip to content

Commit

Permalink
Merge branch 'mirkobunse-devel' into devel
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMoreo committed Jul 2, 2024
2 parents 781ce82 + 868aa34 commit 7fb4102
Show file tree
Hide file tree
Showing 53 changed files with 185 additions and 14,380 deletions.
33 changes: 32 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- main
- master
- devel

jobs:
Expand All @@ -31,3 +31,34 @@ jobs:
python -m pip install -e .[bayes,composable,tests]
- name: Test with unittest
run: python -m unittest

# build and push documentation to gh-pages (only if pushed to the master branch)
docs:
name: Documentation
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v1
- name: Build documentation
uses: ammaraskar/sphinx-action@master
with:
pre-build-command: |
apt-get --allow-releaseinfo-change update -y && apt-get install -y git && git --version
python -m pip install --upgrade pip setuptools wheel "jax[cpu]"
python -m pip install -e .[composable,neural,docs]
docs-folder: "docs/"
- name: Publish documentation
run: |
git clone ${{ github.server_url }}/${{ github.repository }}.git --branch gh-pages --single-branch __gh-pages/
cp -r docs/build/html/* __gh-pages/
cd __gh-pages/
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -am "Documentation based on ${{ github.sha }}" || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: gh-pages
directory: __gh-pages/
github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ are provided:

## Acknowledgments:

<img src="SoBigData.png" alt="SoBigData++" width="250"/>
<img src="docs/source/SoBigData.png" alt="SoBigData++" width="250"/>
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
15 changes: 1 addition & 14 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,7 @@ help:

.PHONY: help Makefile

# Convert Markdown files to reStructuredText before building HTML
markdown_to_rst:
@echo "Converting Markdown files to reStructuredText"
@mkdir -p $(SOURCEDIR)/wiki/wiki_examples/selected_plots
@cp $(SOURCEDIR)/wiki_editable/wiki_examples/selected_plots/* $(SOURCEDIR)/wiki/wiki_examples/selected_plots/
@find $(SOURCEDIR)/wiki_editable -name '*.md' -exec sh -c 'pandoc -f markdown -t rst "$$1" -o "$(SOURCEDIR)/wiki/$$(basename "$$1" .md).rst"' _ {} \;
@echo "Conversion complete."

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
html: markdown_to_rst
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

# # Catch-all target: route all unknown targets to Sphinx using the new
# # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
# %: Makefile
# @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
58 changes: 0 additions & 58 deletions docs/build/html/_sources/index.rst.txt

This file was deleted.

7 changes: 0 additions & 7 deletions docs/build/html/_sources/modules.rst.txt

This file was deleted.

45 changes: 0 additions & 45 deletions docs/build/html/_sources/quapy.classification.rst.txt

This file was deleted.

46 changes: 0 additions & 46 deletions docs/build/html/_sources/quapy.data.rst.txt

This file was deleted.

69 changes: 0 additions & 69 deletions docs/build/html/_sources/quapy.method.rst.txt

This file was deleted.

80 changes: 0 additions & 80 deletions docs/build/html/_sources/quapy.rst.txt

This file was deleted.

Loading

0 comments on commit 7fb4102

Please sign in to comment.