Skip to content

Commit a5f2161

Browse files
authored
Merge pull request #19 from whyjz/jb
Move from (Sphinx + Private hosting) to (Jupyter Book + Github pages)
2 parents 52fca7e + a1bef14 commit a5f2161

434 files changed

Lines changed: 1031 additions & 27325 deletions

File tree

Some content is hidden

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

.github/workflows/build.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: build-docs
2+
3+
on:
4+
# workflow_dispatch:
5+
# inputs:
6+
# logLevel:
7+
# description: 'Log level'
8+
# Trigger the workflow on push to main & jb branch
9+
push:
10+
branches:
11+
- jb
12+
- main
13+
pull_request:
14+
branches:
15+
- main
16+
17+
jobs:
18+
build-docs:
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up Python 3.8 and conda/mamba
25+
uses: conda-incubator/setup-miniconda@v2
26+
with:
27+
python-version: 3.8
28+
mamba-version: "*"
29+
channels: conda-forge
30+
activate-environment: gmtjb
31+
environment-file: environment_for-building-jb.yml
32+
use-mamba: true
33+
- name: Test environment
34+
shell: bash -l {0}
35+
run: |
36+
conda info
37+
conda list
38+
- name: Build book
39+
shell: bash -l {0}
40+
run: |
41+
bash generate_html.bash
42+
- name: Deploy to gh-pages
43+
# if: github.ref == 'refs/heads/main'
44+
uses: peaceiris/actions-gh-pages@v3.8.0
45+
with:
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
publish_dir: ./docs/_build/html
48+
49+
50+
# uses: s-weigand/setup-conda@v1
51+
# with:
52+
# update-conda: true
53+
# conda-channels: conda-forge
54+
# python-version: 3.8
55+
# - name: Install dependencies
56+
# run: |
57+
# python --version
58+
# conda env create -f environment_for-building-jb.yml
59+
# - name: Build book
60+
# run: |
61+
# conda activate gmtjb
62+
# bash generate_html.bash

.gitignore

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
_build/[dh]*
2-
_build/locale/.doctrees/*
3-
*~
4-
todolist.txt
1+
docs/_build
52
*.mo
6-
.zanata-cache
7-
.zanata-cache/*
83
.ipynb_checkpoints
9-
locales
4+
docs/conf.py

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Commons Attribution 4.0 International (for other content) Licenses. Users can
33
choose either or both licenses according to which part of the work they seek
44
permission.
55

6-
Copyright (c) 2016-2021 Whyjay Zheng. All rights reserved.
6+
Copyright (c) 2016-2022 Whyjay Zheng. All rights reserved.
77

88
## MIT License
99

Makefile

Lines changed: 0 additions & 218 deletions
This file was deleted.

SOURCE_DOCS/_static/favicon.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

SOURCE_DOCS/_static/github_ribbon.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

SOURCE_DOCS/_static/paypal.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)