Skip to content

Commit

Permalink
updated makefile, layout
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Oct 24, 2024
1 parent eac0804 commit efe82b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
13 changes: 2 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
BASE="jupyterhub.cirrus.carlboettiger.info"
## Makefile to build JupyterBook for this repository
## - html-hub: build static website so it can be viewed on hosted JupyterHub (via URL proxy).

.PHONY: html-hub
html-hub: html
@echo
@echo "To start the Python http server, use:"
@echo "python -m http.server --directory ${PWD}/_build/html"
@echo "and visit this link with your browser:"
@echo "https://${BASE}${JUPYTERHUB_SERVICE_PREFIX}proxy/8000/index.html"

## - html : Build static website for local display
.PHONY: html
html:
jupyter-book build .
BASE_URL="/user/${JUPYTERHUB_USER}/proxy/8000" myst build --html

.PHONY: serve
serve:
@echo "preview at: https://${BASE}${JUPYTERHUB_SERVICE_PREFIX}proxy/8000/index.html"
python -m http.server --directory ${PWD}/_build/html
npx serve -p 8000 _build/html 2>/dev/null


.PHONY: install
Expand Down
8 changes: 4 additions & 4 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
layout: default
cover: https://climate.nasa.gov/system/internal_resources/details/original/417_1263_banner-science-1600x500.jpg
banner: https://climate.nasa.gov/system/internal_resources/details/original/417_1263_banner-science-1600x500.jpg
title: "ESPM-157: Data Science in Global Change Ecology"

---

::::{grid} 1 1 1 1

![](https://climate.nasa.gov/system/internal_resources/details/original/417_1263_banner-science-1600x500.jpg)

<center>
<h1>ESPM-157: Data Science in Global Change Ecology</h1>
</center>
::::


::::{grid} 1 1 2 2
Expand Down

0 comments on commit efe82b9

Please sign in to comment.