Skip to content

Commit

Permalink
Try R book build
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Jul 10, 2024
1 parent ac9da89 commit ed79c8e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:

- name: Build R book
run: |
make r-book
make r-book-jl
cp website/r-README.md r-book/README.md
touch r-book/.nojekyll
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ python-book-jl: python-book
r-book: ## Build the R version of the book
r-book: ninja-config
cd $(SOURCE_DIR) && ninja r-book

r-book-jl: r-book
$(PIP_INSTALL_CMD) -r r-jl-requirements.txt
$(PYTHON) -m jupyter lite build --contents $(PYTHON_BOOK_DIR)/notebooks --output-dir $(PYTHON_BOOK_DIR)/notebooks
$(PYTHON) -m jupyter lite build --contents $(R_BOOK_DIR)/notebooks --output-dir $(R_BOOK_DIR)/notebooks

_source-clean:
cd $(SOURCE_DIR) && ninja clean
Expand Down
2 changes: 2 additions & 0 deletions r-jl-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Python requirements to build jupyter-lite site for Simon book
./jupyterlite-webr-kernel
4 changes: 1 addition & 3 deletions source/_quarto.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ noteout:
nb-flatten-divspans: {nb_flatten_divspans}
nb-format: {nb_format}
strip-header-nos: false
binder-url: https://resampling-stats.github.io/python-book/notebooks/lab/index.html?path=
binder-url: "https://resampling-stats.github.io/python-book/notebooks/lab/index.html?path="
nb-dir: notebooks
# This allows the interact link directory to differ from that for the download link.
link-nb-dir: null

https://resampling-stats.github.io/python-book/jupyterlite/lab/index.html?path=/paired_differences_solution.ipynb

0 comments on commit ed79c8e

Please sign in to comment.