Skip to content

Commit b90e944

Browse files
authored
Initial commit
0 parents  commit b90e944

File tree

240 files changed

+47596
-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.

240 files changed

+47596
-0
lines changed

.all-contributorsrc

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
"login": "george-gca",
46+
"name": "George",
47+
"avatar_url": "https://avatars.githubusercontent.com/u/31376482?v=4",
48+
"profile": "https://george-gca.github.io/",
49+
"contributions": [
50+
"code"
51+
]
52+
}
53+
],
54+
"commitConvention": "angular"
55+
}

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site/
2+
.git/
3+
assets/
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Acknowledge the following**
11+
- [ ] I carefully read and followed the [Getting Started](https://github.com/alshedivat/al-folio#getting-started) guide.
12+
- [ ] I read through [FAQ](https://github.com/alshedivat/al-folio#faq) and searched through the [past issues](https://github.com/alshedivat/al-folio/issues), none of which addressed my issue.
13+
- [ ] The issue I am raising is a potential bug in al-folio and not just a usage question. <br> [For usage questions, please post in the [Discussions](https://github.com/alshedivat/al-folio/discussions) instead of raising an issue.]
14+
15+
**Describe the bug**
16+
A clear and concise description of what the bug is.
17+
18+
**To Reproduce**
19+
Steps to reproduce the behavior:
20+
1. Go to '...'
21+
2. Click on '....'
22+
3. Scroll down to '....'
23+
4. See error
24+
25+
**Expected behavior**
26+
A clear and concise description of what you expected to happen.
27+
28+
**Screenshots**
29+
If applicable, add screenshots to help explain your problem.
30+
31+
**System (please complete the following information):**
32+
- OS: [e.g. iOS]
33+
- Browser (and its version) [e.g. chrome, safari]
34+
- Jekyll version [e.g. 3.8.7]
35+
- Ruby version [e.g. 2.6.5]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
categories:
6+
- title: new features 🚀
7+
labels:
8+
- enhancement
9+
- title: bug fixes and improvements ✨
10+
labels:
11+
- bug-fix
12+
- title: other changes 🛠️
13+
labels:
14+
- "*"

.github/stale.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 60
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
- enhancement
10+
# Label to use when marking an issue as stale
11+
staleLabel: wontfix
12+
# Comment to post when marking an issue as stale. Set to `false` to disable
13+
markComment: >
14+
This issue has been automatically marked as stale because it has not had
15+
recent activity. It will be closed if no further activity occurs. Thank you
16+
for your contributions.
17+
# Comment to post when closing a stale issue. Set to `false` to disable
18+
closeComment: false
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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@v3
17+
18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@v2
20+
21+
- name: Buildx
22+
uses: docker/setup-buildx-action@v2
23+
24+
-
25+
name: Docker meta
26+
id: meta
27+
uses: docker/metadata-action@v4
28+
with:
29+
images: amirpourmand/al-folio
30+
31+
- name: Login
32+
uses: docker/login-action@v2
33+
with:
34+
username: ${{ secrets.DOCKER_USERNAME }}
35+
password: ${{ secrets.DOCKER_PASSWORD }}
36+
37+
- name: Build and push
38+
uses: docker/build-push-action@v3
39+
with:
40+
context: .
41+
platforms: linux/amd64,linux/arm64/v8
42+
push: ${{ github.event_name != 'pull_request' }}
43+
tags: ${{ steps.meta.outputs.tags }}
44+
labels: ${{ steps.meta.outputs.labels }}
45+

.github/workflows/deploy-image.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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@v3
17+
18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@v2
20+
21+
- name: Buildx
22+
uses: docker/setup-buildx-action@v2
23+
24+
- name: Login
25+
uses: docker/login-action@v2
26+
with:
27+
username: ${{ secrets.DOCKER_USERNAME }}
28+
password: ${{ secrets.DOCKER_PASSWORD }}
29+
30+
- name: Build and push
31+
uses: docker/build-push-action@v4
32+
with:
33+
context: .
34+
push: true
35+
platforms: linux/amd64,linux/arm64/v8
36+
tags: amirpourmand/al-folio

.github/workflows/deploy.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
pull_request:
9+
branches:
10+
- master
11+
- main
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
deploy:
19+
# available images: https://github.com/actions/runner-images#available-images
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout 🛎️
23+
uses: actions/checkout@v3
24+
- name: Setup Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: '3.2.2'
28+
bundler-cache: true
29+
- name: Update _config.yml ⚙️
30+
uses: fjogeleit/yaml-update-action@v0.13.1
31+
with:
32+
commitChange: false
33+
valueFile: '_config.yml'
34+
propertyPath: 'giscus.repo'
35+
value: ${{ github.repository }}
36+
- name: Install and Build 🔧
37+
run: |
38+
pip3 install --upgrade jupyter
39+
npm install -g mermaid.cli
40+
npm install -g purgecss
41+
export JEKYLL_ENV=production
42+
bundle exec jekyll build --lsi
43+
purgecss -c purgecss.config.js
44+
- name: Deploy 🚀
45+
if: github.event_name != 'pull_request'
46+
uses: JamesIves/github-pages-deploy-action@v4
47+
with:
48+
folder: _site
49+

.github/workflows/docker-slim.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Docker Slim
2+
3+
#Only trigger, when the build workflow succeeded
4+
on:
5+
workflow_run:
6+
workflows: ["Docker Image CI"]
7+
types:
8+
- completed
9+
10+
# on:
11+
# push:
12+
# branches:
13+
# - 'master'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
if: github.repository_owner == 'alshedivat'
19+
20+
defaults:
21+
run:
22+
working-directory: ${{ github.workspace }}
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
28+
- name: Login
29+
uses: docker/login-action@v2
30+
with:
31+
username: ${{ secrets.DOCKER_USERNAME }}
32+
password: ${{ secrets.DOCKER_PASSWORD }}
33+
34+
- name: update docker-compose
35+
shell: bash
36+
run: |
37+
sed -i "s|\.:|${{ github.workspace }}:|g" ${{ github.workspace }}/docker-compose.yml
38+
cat ${{ github.workspace }}/docker-compose.yml
39+
40+
- uses: kitabisa/docker-slim-action@v1.0.3
41+
env:
42+
DSLIM_PULL: true
43+
DSLIM_COMPOSE_FILE: ${{ github.workspace }}/docker-compose.yml
44+
DSLIM_TARGET_COMPOSE_SVC: jekyll
45+
DSLIM_CONTINUE_AFTER: signal
46+
with:
47+
target: amirpourmand/al-folio
48+
tag: "slim"
49+
50+
# Push to the registry
51+
- run: docker image push amirpourmand/al-folio:slim

0 commit comments

Comments
 (0)