Skip to content

Commit 180e78c

Browse files
authored
MNT: move to pydata-sphinx-theme (#2)
* MNT: move to pydata-sphinx-theme * MNT: zip and upload artifact * MNT: fixup environment.yml * FIX: zip file name
1 parent ac0d595 commit 180e78c

File tree

254 files changed

+1476
-40472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

254 files changed

+1476
-40472
lines changed

.github/workflows/deploy-website.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: deploy-website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
# This job installs dependencies, build the website, and pushes it to `gh-pages`
12+
jobs:
13+
deploy-website:
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
shell: bash -l {0}
18+
strategy:
19+
matrix:
20+
python-version: ["3.11"]
21+
if: github.repository == 'wradlib/wradlib.github.io'
22+
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 0
26+
- name: Install micromamba environment
27+
uses: mamba-org/provision-with-micromamba@main
28+
with:
29+
environment-name: wradlib-dev
30+
environment-file: environment.yml
31+
extra-specs: |
32+
python=${{ matrix.python-version }}
33+
# Build the website
34+
- name: Build the site
35+
run: |
36+
make dirhtml
37+
# Zip and Upload artifact
38+
- name: Zip the site
39+
run: |
40+
set -x
41+
set -e
42+
if [ -f landing-page.zip ]; then
43+
rm -rf landing-page.zip
44+
fi
45+
zip -r landing-page.zip ./_build/dirhtml
46+
- name: Upload zipped site artifact
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: landing-page-zip-${{github.event.number}}
50+
path: ./landing-page.zip
51+
# Push the book's HTML to github-pages
52+
- name: Deploy GitHub Pages
53+
uses: peaceiris/actions-gh-pages@v3
54+
if: github.ref == 'refs/heads/main'
55+
with:
56+
github_token: ${{ secrets.GITHUB_TOKEN }}
57+
publish_dir: ./_build/dirhtml
58+
force_orphan: true
59+
user_email: "[email protected]"
60+
user_name: "wradlib-docs-bot"
61+
commit_message: ${{ github.event.head_commit.message }}
62+
cname: wradlib.org

.readthedocs.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
conda:
3+
environment: environment.yml
4+
build:
5+
os: 'ubuntu-20.04'
6+
tools:
7+
python: 'mambaforge-4.10'

2016/02/index.html

-228
This file was deleted.

0 commit comments

Comments
 (0)