Skip to content

Commit fccc3c9

Browse files
committed
Generate new site by Franklin.jl
1 parent dc82b0c commit fccc3c9

File tree

344 files changed

+4088
-0
lines changed

Some content is hidden

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

344 files changed

+4088
-0
lines changed

.github/workflows/Deploy.yml

+47
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

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__site/
2+
.DS_Store
3+
node_modules/
4+
package-lock.json

.gitlab-ci.yml

+20
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

+27
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+
~~~

Project.toml

+3
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"

_assets/favicon.png

1.26 KB
Loading

_assets/hamburger.svg

+1
Loading

_assets/rndimg.jpg

18.1 KB
Loading

_assets/scripts/generate_results.jl

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Parent file to run all scripts which may generate
2+
# some output that you want to display on the website.
3+
# this can be used as a tester to check that all the code
4+
# on your website runs properly.
5+
6+
dir = @__DIR__
7+
8+
"""
9+
genplain(s)
10+
11+
Small helper function to run some code and redirect the output (stdout) to a file.
12+
"""
13+
function genplain(s::String)
14+
open(joinpath(dir, "output", "$(splitext(s)[1]).txt"), "w") do outf
15+
redirect_stdout(outf) do
16+
include(joinpath(dir, s))
17+
end
18+
end
19+
end
20+
21+
# output
22+
23+
genplain("script1.jl")
24+
25+
# plots
26+
27+
include("script2.jl")

_assets/scripts/output/script1.out

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*---------1.3
2+
**--------1.3
3+
***-------1.3
4+
****------1.3
5+
*****-----1.3

0 commit comments

Comments
 (0)