Skip to content

Commit 2076942

Browse files
committed
Initial structure
0 parents  commit 2076942

34 files changed

+1961
-0
lines changed

.github/workflows/Deploy.yml

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

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__site/
2+
_libs/
3+
.DS_Store
4+
node_modules/
5+
package-lock.json
6+
.vscode

.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.6
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+
- main
20+

404.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@def title = "404"
2+
3+
~~~
4+
<div style="margin-top: 40px; font-size: 40px; text-align: center;">
5+
6+
<br>
7+
8+
<div style="font-weight: bold;">
9+
404
10+
</div>
11+
12+
<br>
13+
<br>
14+
15+
The requested page was not found
16+
17+
<br>
18+
<br>
19+
<br>
20+
<br>
21+
22+
<div style="margin-bottom: 300px; font-size: 24px">
23+
<a href="/">Click here</a> to go back to the homepage.
24+
</div>
25+
26+
</div>
27+
~~~

0 commit comments

Comments
 (0)