-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set up GH pages for reports (#2)
- Loading branch information
Showing
11 changed files
with
188 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: deploy | ||
|
||
on: | ||
# Trigger the workflow on push to main branch | ||
push: | ||
branches: | ||
- main | ||
|
||
# This job installs dependencies, build the book, and pushes it to `gh-pages` | ||
jobs: | ||
build-and-deploy-book: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.8] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Install dependencies | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
# Copy README into build folder to include it as intro | ||
- name: Copy README | ||
run: | | ||
cp README.md reports/index.md | ||
# Build the book | ||
- name: Build the book | ||
run: | | ||
jupyter-book build reports | ||
- name: Clean notebook outputs for nicer HTML render | ||
run: curl -s -S https://gist.githubusercontent.com/AlFontal/896e180f9f7772c4825067591f34c94b/raw > clean_notebook.py; | ||
python clean_notebook.py --path reports | ||
|
||
# Deploy the book's HTML to gh-pages branch | ||
- name: GitHub Pages action | ||
uses: peaceiris/actions-gh-pages@v3.6.1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: reports/_build/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# yaml-language-server: $schema=./_config.yaml | ||
####################################################################################### | ||
# A default configuration that will be loaded for all jupyter books | ||
# See the documentation for help and more options: | ||
# https://jupyterbook.org/customize/config.html | ||
|
||
####################################################################################### | ||
# Book settings | ||
title : Japan's Environmental Data # The title of the book. Will be placed in the left navbar. | ||
author : Alejandro Fontal # The author of the book | ||
copyright : "2022" # Copyright year to be placed in the footer | ||
logo : images/logo.png # A path to the book logo | ||
|
||
execute: | ||
execute_notebooks: "off" | ||
|
||
repository: | ||
url: https://github.com/AlFontal/environmental-data-japan | ||
branch: main | ||
html: | ||
use_repository_button: true | ||
use_issues_button: true | ||
favicon: images/favicon.ico | ||
baseurl: 'https://alfontal.github.io/environmental-data-japan' | ||
comments: | ||
utterances: | ||
repo: 'AlFontal/environmental-data-japan' | ||
extra_navbar: | | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<div> | ||
<hr> | ||
<a href="https://helical-itn.eu/"> | ||
<img src="https://helical-itn.eu/wp-content/uploads/2020/01/cropped-HELICAL_logo-3.png" width=200px> | ||
</a> | ||
<p></p> | ||
<a href="https://www.isglobal.org/en/-/clima-y-salud"> | ||
<img src="https://www.isglobal.org/isglobal-new-theme/assets/images/isglobal/logo-isglobal-en.png" width=200px> | ||
</a> | ||
<hr> | ||
<a href="https://www.linkedin.com/in/alfontal/"> | ||
<img class="profile" src="https://avatars.githubusercontent.com/u/10958332?s=400&u=51edd1406d2af0c2f1723a0bf8f111d48a1b7fe7&v=4" alt="Alejandro Fontal"> | ||
<p style="text-align: center; font-size:16px"><b>Alejandro Fontal</b></p> | ||
</a> | ||
<a href="https://github.com/AlFontal" class="fa fa-github" style="font-size: 25px;"></a> | ||
<a href="https://www.linkedin.com/in/alfontal/" class="fa fa-linkedin" style="font-size: 25px;"></a></a> | ||
<a href="https://twitter.com/alefontal" class="fa fa-twitter" style="font-size: 25px;"></a></a> | ||
<a href="mailto:alejandro.fontal.92@gmail.com" class="fa fa-envelope" style="font-size: 25px;"></a></a> | ||
</div> | ||
bibtex_bibfiles: references.bib | ||
|
||
sphinx: | ||
config: | ||
html_js_files: | ||
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js | ||
bibtex_reference_style: author_year | ||
|
||
html_baseurl: 'https://alfontal.github.io/environmental-data-japan/' | ||
|
||
extra_extensions: | ||
- sphinx_sitemap | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro&family=Noto+Serif&display=swap'); | ||
|
||
div.cell div.cell_input { | ||
padding-left: 0em; | ||
padding-right: 0em; | ||
border: 1px #ccc solid; | ||
background-color: #f7f7f7; | ||
/* I am overriding the default green left sidebar for code cells */ | ||
/*! border-left-color: green; */ | ||
/*! border-left-width: medium; */ | ||
} | ||
|
||
:root { | ||
--pst-font-family-base-system: 'Noto serif', serif; | ||
} | ||
|
||
p { | ||
text-align: justify; | ||
} | ||
|
||
.fa { | ||
margin: 0 10px 0 0; | ||
color: #083466; | ||
text-decoration: none; | ||
} | ||
|
||
|
||
|
||
|
||
.fa:hover { | ||
opacity: 0.7; | ||
} | ||
|
||
img.profile { | ||
display: block; | ||
border-radius: 50%; | ||
margin: 0 auto; | ||
width: 120px; | ||
height: 120px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
format: jb-article | ||
root: index | ||
sections: | ||
- file: prefecture_weighted_averages | ||
title: From station to prefectural data | ||
|
||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
bs4 | ||
html5lib | ||
jupyter-book==v0.12.3 | ||
matplotlib | ||
numpy | ||
ghp-import | ||
sphinxcontrib-bibtex==2.2.0 | ||
sphinx-sitemap |