Skip to content

Commit

Permalink
migration to Franklin
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed Jan 7, 2021
1 parent 1329838 commit 8e6a8e2
Show file tree
Hide file tree
Showing 93 changed files with 1,469 additions and 2,175 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Deploy
on:
push:
branches:
- main
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
# NOTE: Python is necessary for the pre-rendering (minification) step
- name: Install python
uses: actions/setup-python@v2
with:
python-version: '3.8'
# NOTE: Here you can install dependencies such as matplotlib if you use
# packages such as PyPlot.
# - run: pip install matplotlib
- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: 1.5
# NOTE
# The steps below ensure that NodeJS and Franklin are loaded then it
# installs highlight.js which is needed for the prerendering step
# (code highlighting + katex prerendering).
# Then the environment is activated and instantiated to install all
# Julia packages which may be required to successfully build your site.
# The last line should be `optimize()` though you may want to give it
# specific arguments, see the documentation or ?optimize in the REPL.
- run: julia -e '
using Pkg; Pkg.activate("."); Pkg.instantiate();
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
using Franklin;
optimize(minify=false, prerender=false)'
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: __site
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
_site
.sass-cache
.jekyll-metadata
__site/
.DS_Store
franklin
franklin.pub
node_modules/
sandbo*.html
20 changes: 20 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
image: julia:1.5

before_script:
- apt-get -qq update; apt-get -y install git python3-dev python3-pip
- pip3 install css-html-js-minify

pages:
stage: deploy
script:
- julia --project=@. -e 'import Pkg; Pkg.instantiate();
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
using Franklin;
optimize()'
- mv __site public
artifacts:
paths:
- public
only:
- master

24 changes: 0 additions & 24 deletions 404.html

This file was deleted.

5 changes: 5 additions & 0 deletions 404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 404: File not found

The requested file was not found.

Please [click here](/) to go to the home page.
32 changes: 0 additions & 32 deletions Gemfile

This file was deleted.

79 changes: 0 additions & 79 deletions Gemfile.lock

This file was deleted.

3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[deps]
Franklin = "713c75ef-9fc9-4b05-94a9-213340da978e"
NodeJS = "2bd173c7-0d6d-553b-b6af-13a54713934c"
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added _assets/img/lm_logo_min.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _assets/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
58 changes: 0 additions & 58 deletions _config.yml

This file was deleted.

Loading

0 comments on commit 8e6a8e2

Please sign in to comment.