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 documentation #89

Merged
merged 9 commits into from
Dec 17, 2023
Merged

Initialize Jupyter Book documentation #89

merged 9 commits into from
Dec 17, 2023

Conversation

weiji14
Copy link
Contributor

@weiji14 weiji14 commented Dec 15, 2023

What I am changing

How I did it

TODO in this PR:

  • Add jupyter-book dependency
  • Initialize minimal Jupyter-Book site
  • Setup GitHub Actions CI to build docs and push to GitHub Pages
  • Add more sections on sidebar

How you can test it

  • Run jupyter-book build docs/ locally

Related Issues

Build a book with Jupyter Notebooks and Sphinx!
Starting with a minimally modified Jupyter Book initialized with `jupyter-book create docs/`. Changed the `_config.yml` to use a proper title and the Clay logo. Included a Binder launch button and a footer with CC-BY-4.0 license.

Deleted the sample notebooks.ipynb and markdown-notebooks.md files, and excluded the book/requirements.txt (dependencies will be installed from environment.yml). Put in a placeholder installation page for now in the Table of Contents.
@weiji14 weiji14 added the documentation Improvements or additions to documentation label Dec 15, 2023
@weiji14 weiji14 self-assigned this Dec 15, 2023
Continuous Integration workflow to build the Jupyter Book's html pages and publish it online to GitHub Pages. Based on https://jupyterbook.org/en/stable/publish/gh-pages.html#automatically-host-your-book-with-github-actions, but modernized to use GitHub Actions based publishing source, see https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta
The package list is shown in the Setup Micromamba step already.
Comment on lines +6 to +10
parts:
- caption: Getting Started
chapters:
- title: Installation
file: installation
Copy link
Contributor Author

Choose a reason for hiding this comment

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

What sections/subsections should we put on the sidebar? My initial ideas are:

  • Getting started
    • Installation
  • Data Preparation
    • Preparing the datacube
    • Preparing labels for evaluation model performance
  • Running the model
    • Self-supervised learning
      • Linear Probing?
    • Generating embeddings

Copy link
Member

Choose a reason for hiding this comment

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

  • I would add a paragraph about the clay foundation and a link to the linkedin page.
  • We could add a section about how to run the datacube in batch

Copy link
Contributor Author

@weiji14 weiji14 Dec 17, 2023

Choose a reason for hiding this comment

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

Ok, added a link to the LinkedIn (and GitHub) page at commit bcbf080. Gonna merge this PR soon, so I'll open a separate issue to discuss about what sections/sub-sections to add later. I actually think the batch run could be a sub-section under 'Preparing the datacube, but we can discuss about this.

Add external links to Clay's GitHub organization page, and LinkedIn.
Add badges pointing to the Jupyter Book page, and for the deploy-book.yml/test.yml GitHub Action statuses below the title in the main README.md page. Also modified the description into something more compelling.
@weiji14 weiji14 marked this pull request as ready for review December 17, 2023 20:19
@weiji14 weiji14 merged commit a9cfeff into main Dec 17, 2023
2 checks passed
@weiji14 weiji14 deleted the init/jupyter-book branch December 17, 2023 20:39
brunosan pushed a commit that referenced this pull request Dec 27, 2023
* ➕ Add jupyter-book

Build a book with Jupyter Notebooks and Sphinx!

* 📝 Initialize Jupyter Book

Starting with a minimally modified Jupyter Book initialized with `jupyter-book create docs/`. Changed the `_config.yml` to use a proper title and the Clay logo. Included a Binder launch button and a footer with CC-BY-4.0 license.

Deleted the sample notebooks.ipynb and markdown-notebooks.md files, and excluded the book/requirements.txt (dependencies will be installed from environment.yml). Put in a placeholder installation page for now in the Table of Contents.

* 🚀 Deploy Jupyter Book to GitHub Pages via GitHub Actions

Continuous Integration workflow to build the Jupyter Book's html pages and publish it online to GitHub Pages. Based on https://jupyterbook.org/en/stable/publish/gh-pages.html#automatically-host-your-book-with-github-actions, but modernized to use GitHub Actions based publishing source, see https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta

* 📝 Add 'About Clay' section with links to GitHub and LinkedIn pages

Add external links to Clay's GitHub organization page, and LinkedIn.

* 🔍 Add badges to main README.md

Add badges pointing to the Jupyter Book page, and for the deploy-book.yml/test.yml GitHub Action statuses below the title in the main README.md page. Also modified the description into something more compelling.
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