Skip to content

Commit 3e37e79

Browse files
authored
Merge pull request #13 from JuliaDiff/ox/replace
Replace basically everything
2 parents 589324a + 7ef70cc commit 3e37e79

File tree

121 files changed

+4215
-770
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+4215
-770
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
persist-credentials: false
15+
# NOTE: Python is necessary for the pre-rendering (minification) step
16+
- name: Install python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: '3.8'
20+
# NOTE: Here you can install dependencies such as matplotlib if you use
21+
# packages such as PyPlot.
22+
# - run: pip install matplotlib
23+
- name: Install Julia
24+
uses: julia-actions/setup-julia@v1
25+
with:
26+
version: 1.5
27+
# NOTE
28+
# The steps below ensure that NodeJS and Franklin are loaded then it
29+
# installs highlight.js which is needed for the prerendering step
30+
# (code highlighting + katex prerendering).
31+
# Then the environment is activated and instantiated to install all
32+
# Julia packages which may be required to successfully build your site.
33+
# The last line should be `optimize()` though you may want to give it
34+
# specific arguments, see the documentation or ?optimize in the REPL.
35+
- run: julia -e '
36+
using Pkg; Pkg.activate("."); Pkg.instantiate();
37+
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
38+
using Franklin;
39+
optimize()'
40+
- name: Build and Deploy
41+
uses: JamesIves/github-pages-deploy-action@releases/v3
42+
with:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
BRANCH: gh-pages
45+
FOLDER: __site

JuliaDiff/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__site/
2+
.DS_Store
3+
franklin
4+
franklin.pub
5+
node_modules/

JuliaDiff/.gitlab-ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
image: julia:1.5
2+
3+
before_script:
4+
- apt-get -qq update; apt-get -y install git python3-dev python3-pip
5+
- pip3 install css-html-js-minify
6+
7+
pages:
8+
stage: deploy
9+
script:
10+
- julia --project=@. -e 'import Pkg; Pkg.instantiate();
11+
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
12+
using Franklin;
13+
optimize()'
14+
- mv __site public
15+
artifacts:
16+
paths:
17+
- public
18+
only:
19+
- master
20+

JuliaDiff/404.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 404: File not found
2+
3+
The requested file was not found.
4+
5+
Please [click here](/) to go to the home page.

JuliaDiff/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[deps]
2+
Franklin = "713c75ef-9fc9-4b05-94a9-213340da978e"
3+
NodeJS = "2bd173c7-0d6d-553b-b6af-13a54713934c"
Binary file not shown.

JuliaDiff/_assets/et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg

Lines changed: 243 additions & 0 deletions
Loading
Binary file not shown.

0 commit comments

Comments
 (0)