diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml new file mode 100644 index 0000000000000000000000000000000000000000..54d4917b8d2dfce6d7bc764546b6235f7f374849 --- /dev/null +++ b/.github/workflows/book.yml @@ -0,0 +1,38 @@ +name: deploy-book + +# Only run this when the master branch changes +on: [workflow_dispatch] + #push: + # branches: + # - master + +# This job installs dependencies, build the book, and pushes it to `gh-pages` +jobs: + deploy-book: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # Install dependencies + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + # Install pip dependencies + - name: Install dependencies + run: | + $CONDA/bin/pip install pip -U + $CONDA/bin/pip install -r book/requirements.txt + + # Build the book + - name: Build the book + run: | + $CONDA/bin/jupyter-book build . + + # Push the book's HTML to github-pages + - name: GitHub Pages action + uses: peaceiris/actions-gh-pages@v3.6.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_build/html diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000000000000000000000000000000000000..30caaad338eadd7ce9ab7c4050c7d79d267e6ff9 --- /dev/null +++ b/_config.yml @@ -0,0 +1,6 @@ +# Book settings +title: Image processing with Python for beginners +author: Guillaume Witz +#logo: 'logo.png' +execute: + execute_notebooks: "off" \ No newline at end of file diff --git a/_toc.yml b/_toc.yml new file mode 100644 index 0000000000000000000000000000000000000000..9bfc1bb73c0c24862aa8d8abe7eca8bb22d8cbdd --- /dev/null +++ b/_toc.yml @@ -0,0 +1,15 @@ +format: jb-book +root: Readme +chapters: +- file: 01-Python_essentials +- file: 02-Images_as_arrays +- file: 03-More_on_images +- file: 04-Thresholding +- file: 05-Filtering +- file: 06-Regions +- file: 07-Pipeline +- file: 08-Logical_flow +- file: Appendix_Functions +- file: Appendix_Structures +- file: Cheatsheet +- file: Demo \ No newline at end of file diff --git a/book/requirements.txt b/book/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..a9ae23517911c770e60383befef510bea8eec839 --- /dev/null +++ b/book/requirements.txt @@ -0,0 +1 @@ +jupyter-book>=0.7.0b