Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize Jupyter Book #3

Merged
merged 8 commits into from
May 7, 2022
Merged

Initialize Jupyter Book #3

merged 8 commits into from
May 7, 2022

Conversation

weiji14
Copy link
Member

@weiji14 weiji14 commented May 5, 2022

Starting with a minimally modified Jupyter Book initialized with jupyter-book create book/. Changed the _config.yml to use a proper title and the EGU22 logo. Included a Binder launch button and a footer with CC-BY-4.0 license. Also added a JupyterBook badge to the main README.md.

Preview it at https://www.generic-mapping-tools.org/egu22pygmt/intro.html

Jupyter Book page

Steps to run locally:

cd egu22pygmt
mamba env create --file environment.yml
mamba activate egu22pygmt

jupyter-book create book/
jupyter-book build book/

TODO:

References:

Starting with a minimally modified Jupyter Book initialized with `jupyter-book create book/`. Changed the `_config.yml` to use a proper title and the EGU22 logo. Included a Binder launch button and a footer with CC-BY-4.0 license. Also added a JupyterBook badge to the main README.md.
@weiji14 weiji14 added the documentation Improvements or additions to documentation label May 5, 2022
@weiji14 weiji14 self-assigned this May 5, 2022
@weiji14 weiji14 marked this pull request as ready for review May 5, 2022 20:12
Comment on lines +25 to +29
# Install dependencies
- name: Set up Python 3.9
uses: actions/setup-python@v3.1.2
with:
python-version: 3.9
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will need to change this to use miniconda/mambaforge in a follow up PR, because GMT needs to be installed using conda. But this will suffice for now.

@weiji14 weiji14 requested review from leouieda and maxrjones May 6, 2022 18:51

title: Crafting beautiful maps with PyGMT
author: The PyGMT Team
logo: logo.svg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to make the logo clickable to follow the policy at https://www.egu.eu/visual-identity/?

Copy link
Member Author

@weiji14 weiji14 May 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went down a deep rabbit hole... Apparently it was possible in jupyter-book 0.7 but they did a refactor that removed this feature, see jupyter-book/jupyter-book#740. It might actually need to be done through the sphinx theme? See also executablebooks/sphinx-book-theme#325

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still couldn't find a way to add a link to the logo after looking at https://jupyterbook.org/en/stable/advanced/sphinx.html, so I've just added a link to https://www.egu22.eu on the sidebar. Done in 896e555 and looks like this now
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants