Skip to content

Commit 363108a

Browse files
authored
Merge pull request #205 from dpshelio/updating-jekyll
jekyll's updates
2 parents e701f8a + 1a99e56 commit 363108a

File tree

5 files changed

+18
-26
lines changed

5 files changed

+18
-26
lines changed

.github/workflows/build_site.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: actions/cache@v2 # FIXME: add pip + latex + gems
14+
- uses: actions/cache@v2 # FIXME: add apt(latex)
1515
with:
1616
path: vendor/bundle
1717
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
1818
restore-keys: |
1919
${{ runner.os }}-gems-
20+
- uses: actions/cache@v2
21+
with:
22+
path: ~/.cache/pip
23+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '.github/python/requirements.txt') }}
24+
restore-keys: |
25+
${{ runner.os }}-pip-
2026
- name: Install TeXLive
2127
uses: DanySK/[email protected]
2228
- id: setup-python

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
source 'https://rubygems.org'
22

3-
gem 'jekyll', '~> 3.1.6'
4-
gem 'redcarpet', '~> 3.5.0'
3+
gem 'jekyll', '~> 4.2.1'
4+
gem 'kramdown', '~> 2.3.1'
5+
gem "jekyll-remote-theme"

Makefile

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,7 @@ notes.tex: combined.ipynb $(PNGS) Makefile
5959
notebooks.zip: ${NBV2}
6060
zip -r notebooks $^
6161

62-
master.zip: Makefile
63-
rm -f master.zip
64-
wget https://github.com/UCL-RITS/indigo-jekyll/archive/master.zip
65-
66-
ready: indigo $(HTMLS) # notes.pdf notebooks.zip
67-
68-
indigo-jekyll-master: Makefile master.zip
69-
rm -rf indigo-jekyll-master
70-
unzip master.zip
71-
touch indigo-jekyll-master
72-
73-
indigo: indigo-jekyll-master Makefile
74-
cp -r indigo-jekyll-master/indigo/images .
75-
cp -r indigo-jekyll-master/indigo/js .
76-
cp -r indigo-jekyll-master/indigo/css .
77-
cp -r indigo-jekyll-master/indigo/_includes .
78-
cp -r indigo-jekyll-master/indigo/_layouts .
79-
cp -r indigo-jekyll-master/indigo/favicon* .
80-
touch indigo
62+
ready: $(HTMLS) # notes.pdf notebooks.zip
8163

8264
plantuml.jar:
8365
wget http://sourceforge.net/projects/plantuml/files/plantuml.jar/download -O plantuml.jar

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ INFO[0001] ☁ git clone 'https://github.com/helaili/jekyll-action' # ref=v2
7373
Alternatively, if you want to only run the jekyll build step once you've run the whole action, you can use the official jekyll containers with:
7474

7575
```bash
76-
$ docker run --rm --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" -p 4000:4000 -it jekyll/jekyll:3.1.6 jekyll serve
76+
$ docker run --rm --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" -p 4000:4000 -it jekyll/jekyll:latest jekyll serve
7777
```
7878

7979
and open http://localhost:4000/rsd-engineeringcourse (or the link provided).

_config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ defaults:
1010

1111
baseurl: /rsd-engineeringcourse
1212

13+
remote_theme: dpshelio/indigo-jekyll
14+
1315
crumbs:
1416
- link: http://www.ucl.ac.uk/ISD
1517
text: ISD
@@ -20,10 +22,11 @@ crumbs:
2022
- link: http://www.ucl.ac.uk/isd/services/research-it/training
2123
text: Training
2224

23-
markdown: redcarpet
24-
redcarpet:
25-
extensions: ["strikethrough","tables"]
25+
kramdown:
26+
hard_wrap: false
2627

28+
plugins:
29+
- jekyll-remote-theme
2730

2831
include: # NOTE: This is not a path, but the directories name, wherever they are
2932
- _static

0 commit comments

Comments
 (0)