Skip to content

Commit f44fe09

Browse files
authored
Initial commit
0 parents  commit f44fe09

File tree

230 files changed

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

230 files changed

+47382
-0
lines changed

.all-contributorsrc

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

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site/
2+
.git/
3+
assets/

.github/ISSUE_TEMPLATE/bug_report.md

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

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

+18
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
+45
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

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

+49
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/[email protected]
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

+51
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/[email protected]
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

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
_site
2+
.bundle
3+
.sass-cache
4+
.jekyll-cache
5+
.jekyll-metadata
6+
.DS_store
7+
.ruby-version
8+
.tweet-cache
9+
Gemfile.lock
10+
vendor
11+

.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

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 go back to the <a href="{{ site.baseurl }}/">home page</a>.</p>

CONTRIBUTING.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Contributing to al-folio
2+
Thank you for considering to contribute to al-folio!
3+
4+
5+
## Pull Requests
6+
We welcome your pull requests (PRs).
7+
For minor fixes (e.g., documentation improvements), feel free to submit a PR directly.
8+
If you would like to implement a new feature or a bug, please make sure you (or someone else) has opened an appropriate issue first; in your PR, please mention the issue it addresses.
9+
10+
11+
## Issues
12+
We use GitHub issues to track bugs and feature requests.
13+
Before submitting an issue, please make sure:
14+
15+
1. You have read [the FAQ section](https://github.com/alshedivat/al-folio#faq) of the README and your question is NOT addressed there.
16+
2. You have done your best to ensure that your issue is NOT a duplicate of one of [the previous issues](https://github.com/alshedivat/al-folio/issues).
17+
3. Your issue is either a bug (unexpected/undesirable behavior) or a feature request.
18+
If it is just a question, please ask it in the [Discussions](https://github.com/alshedivat/al-folio/discussions) forum.
19+
20+
When submitting an issue, please make sure to use the appropriate template.
21+
22+
23+
## License
24+
By contributing to al-folio, you agree that your contributions will be licensed
25+
under the LICENSE file in the root directory of the source tree.

0 commit comments

Comments
 (0)