From f82ca82675b9600bacffc2586955f26520d1bd7e Mon Sep 17 00:00:00 2001 From: Yukai Zou Date: Sat, 29 Jun 2024 15:05:57 +0100 Subject: [PATCH 1/3] Updated docker jekyll for local dev --- .gitignore | 1 + README.md | 18 +++++++++++++++++- pdf/talk.md | 12 ++++++------ pdfs/intro-to-stats.md | 12 ++++++------ 4 files changed, 30 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 39ed8aa..b8045a9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *~ .DS_Store +.jekyll-cache .sass-cache _site __pycache__ diff --git a/README.md b/README.md index dddb90d..a6e51ce 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,8 @@ How to use this template: choose either "ReproNim" (if that's an option) or your own user account and then enter the name of the lesson/repository that you wish to create. -2. Change the following variables in the `_config.yml` file: +2. Change the following variables in the `_confi +.yml` file: - `title` - `repo` - `root` @@ -24,6 +25,21 @@ then enter the name of the lesson/repository that you wish to create. - Add coffee breaks into the lesson. This keeps the timing of each section accurate. +# Running with Docker locally for development + +Instead of installing ruby and jekyll, you can use docker to run a live version of your repo locally. +As you make changes, it will recompile the changes and all you will need to do is refresh the browser. + +The following command it assumes that you are inside your cloned github repo. Adapted from [this blog](https://dev.to/michael/compile-a-jekyll-project-without-installing-jekyll-or-ruby-by-using-docker-4184): + +``` +docker run --rm -it --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" \ + --env JEKYLL_ENV=development --platform linux/amd64 -p 4000:4000 jekyll/jekyll:4.0.1 \ + jekyll serve --config _config.yml,_config_dev.yml +``` + +You should then be able to open the live page at http://localhost:4000/ + # Acknowledgment Please see [LICENSE.md](LICENSE.md) for copyright, license, and how to acknowledge information. diff --git a/pdf/talk.md b/pdf/talk.md index 46dc984..af3c964 100644 --- a/pdf/talk.md +++ b/pdf/talk.md @@ -1,5 +1,5 @@ --- -title: ReproNim workshop: The use of p-values in brain imaging and statistical aspects in reproducibility +title: ReproNim workshop - The use of p-values in brain imaging and statistical aspects in reproducibility shortitle: Evil p-values subtitle: A reproducibility perspective date: Aug 2nd 2018 @@ -7,11 +7,11 @@ author: JB Poline \newline institute: McGill University, UC Berkeley header-include: - - \usefonttheme{professionalfonts} - - \usepackage{fontspec} - - \setsansfont[BoldFont = {Fira Sans Medium}]{Fira Sans} - - \setmonofont{Fira Mono} - - \usepackage{amsmath} +- \usefonttheme{professionalfonts} +- \usepackage{fontspec} +- \setsansfont[BoldFont = {Fira Sans Medium}]{Fira Sans} +- \setmonofont{Fira Mono} +- \usepackage{amsmath} --- Plan diff --git a/pdfs/intro-to-stats.md b/pdfs/intro-to-stats.md index d19c635..179dd41 100644 --- a/pdfs/intro-to-stats.md +++ b/pdfs/intro-to-stats.md @@ -1,5 +1,5 @@ --- -title: ReproNim workshop: The use of p-values in brain imaging and statistical aspects in reproducibility +title: ReproNim workshop - The use of p-values in brain imaging and statistical aspects in reproducibility shortitle: Evil p-values subtitle: A reproducibility perspective date: Aug 2nd 2018 @@ -7,11 +7,11 @@ author: JB Poline \newline institute: McGill University, UC Berkeley header-include: - - \usefonttheme{professionalfonts} - - \usepackage{fontspec} - - \setsansfont[BoldFont = {Fira Sans Medium}]{Fira Sans} - - \setmonofont{Fira Mono} - - \usepackage{amsmath} +- \usefonttheme{professionalfonts} +- \usepackage{fontspec} +- \setsansfont[BoldFont = {Fira Sans Medium}]{Fira Sans} +- \setmonofont{Fira Mono} +- \usepackage{amsmath} --- Plan From 83b6f40d58c4258387b16c15e6f7cff984a02c75 Mon Sep 17 00:00:00 2001 From: Yukai Zou Date: Sat, 29 Jun 2024 15:06:31 +0100 Subject: [PATCH 2/3] Fixed math block rendering --- _includes/javascript.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_includes/javascript.html b/_includes/javascript.html index 03b6a8d..d779744 100644 --- a/_includes/javascript.html +++ b/_includes/javascript.html @@ -11,6 +11,10 @@ + +