Skip to content

Commit

Permalink
Merge pull request #4 from jukent/jupyterbook
Browse files Browse the repository at this point in the history
Change toc and add footer
  • Loading branch information
anissa111 authored Aug 10, 2023
2 parents 036dc79 + 0d09628 commit bffae84
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 138 deletions.
9 changes: 9 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ repository:
html:
use_issues_button: true
use_repository_button: true
extra_footer: |
<img src="_static/logos/footer-logo-nsf.png" style="float:left;width:60px;height:60px;margin-right:1rem;">
This material is based upon work supported by the National
Science Foundation under Grant Nos. ?????. Any
opinions, findings, and conclusions or recommendations expressed
in this material are those of the author(s) and do not necessarily
reflect the views of the National Science Foundation.<br><br>
All code in GeoCAT-Applications is licensed under Apache 2.0. All other non-code content is licensed
under <a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons BY 4.0 (CC BY 4.0)</a>.
3 changes: 3 additions & 0 deletions _static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
footer {
color: white;
}
1 change: 1 addition & 0 deletions _static/logos/NCAR-contemp-logo-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/logos/footer-logo-nsf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
format: jb-book
root: landing-page
parts:
- caption: File I/O
- caption: Applications
chapters:
- file: notebooks/file_io/open_data_sample
- caption: Data Analysis
chapters:
- file: notebooks/data_analysis/open_data_sample
- caption: Models
chapters:
- file: notebooks/models/open_data_sample
- caption: Plot Types
chapters:
- file: notebooks/plot_types/open_data_sample
- file: file_io/file_io
sections:
- file: file_io/sample
- file: data_analysis/data_analysis
sections:
- file: data_analysis/sample
- file: plot_types/plot_types
sections:
- file: plot_types/contour

1 change: 1 addition & 0 deletions data_analysis/data_analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Data Analysis
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Content with notebooks\n",
"# Sample Data Analysis Routine\n",
"\n",
"You can also create content with Jupyter Notebooks. This means that you can include\n",
"code blocks and their outputs in your book.\n",
Expand Down
1 change: 1 addition & 0 deletions file_io/file_io.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# File I/O
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Content with notebooks\n",
"# Sample File I/O Routine\n",
"\n",
"You can also create content with Jupyter Notebooks. This means that you can include\n",
"code blocks and their outputs in your book.\n",
Expand Down
19 changes: 17 additions & 2 deletions landing-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,20 @@ It does not go in-depth into any particular topic - check out [the Jupyter Book

Check out the content pages bundled with this sample book to see more.

```{tableofcontents}
```
::::{grid}
:gutter: 3

:::{grid-item-card} File I/O
Here's the first card.
:::

:::{grid-item-card} Data Analysis
Here's the second card.
:::

:::{grid-item-card} [Plot Types](plot_types/plot_types)
[Contour](plot_types/contour) <br>
Line
:::

::::
122 changes: 0 additions & 122 deletions notebooks/plot_types/open_data_sample.ipynb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Content with notebooks\n",
"# Contour\n",
"\n",
"You can also create content with Jupyter Notebooks. This means that you can include\n",
"code blocks and their outputs in your book.\n",
Expand Down
1 change: 1 addition & 0 deletions plot_types/plot_types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Plot Types

0 comments on commit bffae84

Please sign in to comment.