diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3ace9c28..ad231ef9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/Makefile b/Makefile index 802789af..915f43d7 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/r-jl-requirements.txt b/r-jl-requirements.txt new file mode 100644 index 00000000..c869e882 --- /dev/null +++ b/r-jl-requirements.txt @@ -0,0 +1,2 @@ +# Python requirements to build jupyter-lite site for Simon book +./jupyterlite-webr-kernel diff --git a/source/_quarto.yml.template b/source/_quarto.yml.template index d6be2003..e863a7fa 100644 --- a/source/_quarto.yml.template +++ b/source/_quarto.yml.template @@ -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