Skip to content

Commit fc9b02f

Browse files
committed
update to version 0.8.0 of ai-folio template
1 parent 5455561 commit fc9b02f

Some content is hidden

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

104 files changed

+2487
-1017
lines changed

.all-contributorsrc

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"files": [
3+
"README.md"
4+
],
5+
"imageSize": 100,
6+
"commit": false,
7+
"contributorsPerLine": 7,
8+
"projectName": "al-folio",
9+
"projectOwner": "alshedivat",
10+
"repoType": "github",
11+
"repoHost": "https://github.com",
12+
"badgeTemplate": "[core_contributors]: https://img.shields.io/badge/core_contributors-<%= contributors.length %>-orange.svg 'Number of core contributors'",
13+
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" width=\"<%= options.imageSize %>px;\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>",
14+
"skipCi": true,
15+
"contributors": [
16+
{
17+
"login": "alshedivat",
18+
"name": "Maruan",
19+
"avatar_url": "https://avatars.githubusercontent.com/u/2126561?v=4",
20+
"profile": "http://maruan.alshedivat.com",
21+
"contributions": [
22+
"design",
23+
"code"
24+
]
25+
},
26+
{
27+
"login": "rohandebsarkar",
28+
"name": "Rohan Deb Sarkar",
29+
"avatar_url": "https://avatars.githubusercontent.com/u/50144004?v=4",
30+
"profile": "http://rohandebsarkar.github.io",
31+
"contributions": [
32+
"code"
33+
]
34+
},
35+
{
36+
"login": "pourmand1376",
37+
"name": "Amir Pourmand",
38+
"avatar_url": "https://avatars.githubusercontent.com/u/32064808?v=4",
39+
"profile": "https://amirpourmand.ir",
40+
"contributions": [
41+
"code"
42+
]
43+
}
44+
]
45+
}
+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Docker Image CI (Upload Tag)
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Buildx
18+
uses: docker/setup-buildx-action@v1
19+
20+
-
21+
name: Docker meta
22+
id: meta
23+
uses: docker/metadata-action@v4
24+
with:
25+
images: amirpourmand/al-folio
26+
27+
- name: Login
28+
uses: docker/login-action@v1
29+
with:
30+
username: ${{ secrets.DOCKER_USERNAME }}
31+
password: ${{ secrets.DOCKER_PASSWORD }}
32+
33+
- name: Build and push
34+
uses: docker/build-push-action@v3
35+
with:
36+
context: .
37+
push: ${{ github.event_name != 'pull_request' }}
38+
tags: ${{ steps.meta.outputs.tags }}
39+
labels: ${{ steps.meta.outputs.labels }}
40+

.github/workflows/deploy-image.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
if: github.repository_owner == 'alshedivat'
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Buildx
18+
uses: docker/setup-buildx-action@v1
19+
20+
- name: Login
21+
uses: docker/login-action@v1
22+
with:
23+
username: ${{ secrets.DOCKER_USERNAME }}
24+
password: ${{ secrets.DOCKER_PASSWORD }}
25+
26+
- name: Build and push
27+
uses: docker/build-push-action@v2
28+
with:
29+
context: .
30+
push: true
31+
tags: amirpourmand/al-folio

.github/workflows/deploy.yml

+10-18
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy
1+
name: deploy
22

33
on:
44
push:
@@ -15,36 +15,28 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
1919
- name: Setup Ruby
2020
uses: ruby/setup-ruby@v1
2121
with:
22-
ruby-version: '2.7'
23-
- name: Enable bundler cache
24-
uses: actions/cache@v2
25-
with:
26-
path: vendor/bundle
27-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
28-
restore-keys: |
29-
${{ runner.os }}-gems-
22+
ruby-version: '3.0.2'
23+
bundler-cache: true
3024
- name: Install deps
3125
run: |
32-
gem install bundler
33-
bundle config path vendor/bundle
34-
bundle install --jobs 4 --retry 3
26+
npm install -g mermaid.cli
3527
- name: Setup deploy options
3628
id: setup
3729
run: |
3830
git config --global user.name "GitHub Action"
3931
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
4032
if [[ ${GITHUB_REF} = refs/pull/*/merge ]]; then # pull request
41-
echo "::set-output name=SRC_BRANCH::${GITHUB_HEAD_REF}"
42-
echo "::set-output name=NO_PUSH::--no-push"
33+
echo "SRC_BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_OUTPUT
34+
echo "NO_PUSH=--no-push" >> $GITHUB_OUTPUT
4335
elif [[ ${GITHUB_REF} = refs/heads/* ]]; then # branch, e.g. master, source etc
44-
echo "::set-output name=SRC_BRANCH::${GITHUB_REF#refs/heads/}"
36+
echo "SRC_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
4537
fi
46-
echo "::set-output name=DEPLOY_BRANCH::gh-pages"
38+
echo "DEPLOY_BRANCH=gh-pages" >> $GITHUB_OUTPUT
4739
- name: Deploy website
48-
run: yes | bin/deploy --verbose ${{ steps.setup.outputs.NO_PUSH }}
40+
run: yes | bash bin/deploy --verbose ${{ steps.setup.outputs.NO_PUSH }}
4941
--src ${{ steps.setup.outputs.SRC_BRANCH }}
5042
--deploy ${{ steps.setup.outputs.DEPLOY_BRANCH }}

.pre-commit-config.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.3.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files

.travis.yml

-19
This file was deleted.

404.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: page
3+
permalink: /404.html
4+
title: "Page not found"
5+
description: "Looks like there has been a mistake. Nothing exists here."
6+
redirect: true
7+
---
8+
9+
<p>You will be redirected to the main page within 3 seconds. If not redirected, please click <a href="{{ site.baseurl }}/">here</a>.</p>

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM jekyll/jekyll
2+
Label MAINTAINER Amir Pourmand
3+
#install imagemagick tool for convert command
4+
RUN apk add --no-cache --virtual .build-deps \
5+
libxml2-dev \
6+
shadow \
7+
autoconf \
8+
g++ \
9+
make \
10+
&& apk add --no-cache imagemagick-dev imagemagick
11+
WORKDIR /srv/jekyll
12+
ADD Gemfile /srv/jekyll/
13+
RUN bundle install

Gemfile

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
source 'https://rubygems.org'
22
group :jekyll_plugins do
3-
gem 'jekyll'
3+
gem 'jekyll'
4+
gem 'jekyll-archives'
5+
gem 'jekyll-diagrams'
46
gem 'jekyll-email-protect'
57
gem 'jekyll-feed'
6-
gem 'jekyll-github-metadata'
8+
gem 'jekyll-imagemagick'
9+
gem 'jekyll-minifier'
710
gem 'jekyll-paginate-v2'
811
gem 'jekyll-scholar'
9-
gem 'jekyll-twitter-plugin'
1012
gem 'jekyll-sitemap'
13+
gem 'jekyll-link-attributes'
14+
gem 'jekyll-twitter-plugin'
1115
gem 'jemoji'
16+
gem 'mini_racer'
1217
gem 'unicode_utils'
1318
gem 'webrick'
1419
gem 'kramdown-parser-gfm'
1520
end
21+
group :other_plugins do
22+
gem 'httparty'
23+
gem 'feedjira'
24+
end

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Maruan Al-Shedivat.
3+
Copyright (c) 2022 Maruan Al-Shedivat.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)