generated from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b2fe4bf
Showing
252 changed files
with
51,145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"files": ["README.md"], | ||
"imageSize": 100, | ||
"commit": false, | ||
"contributorsPerLine": 7, | ||
"projectName": "al-folio", | ||
"projectOwner": "alshedivat", | ||
"repoType": "github", | ||
"repoHost": "https://github.com", | ||
"badgeTemplate": "[core_contributors]: https://img.shields.io/badge/core_contributors-<%= contributors.length %>-orange.svg 'Number of core contributors'", | ||
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" width=\"<%= options.imageSize %>px;\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>", | ||
"skipCi": true, | ||
"contributors": [ | ||
{ | ||
"login": "alshedivat", | ||
"name": "Maruan", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/2126561?v=4", | ||
"profile": "http://maruan.alshedivat.com", | ||
"contributions": ["design", "code"] | ||
}, | ||
{ | ||
"login": "rohandebsarkar", | ||
"name": "Rohan Deb Sarkar", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/50144004?v=4", | ||
"profile": "http://rohandebsarkar.github.io", | ||
"contributions": ["code"] | ||
}, | ||
{ | ||
"login": "pourmand1376", | ||
"name": "Amir Pourmand", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/32064808?v=4", | ||
"profile": "https://amirpourmand.ir", | ||
"contributions": ["code"] | ||
}, | ||
{ | ||
"login": "george-gca", | ||
"name": "George", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/31376482?v=4", | ||
"profile": "https://george-gca.github.io/", | ||
"contributions": ["code"] | ||
} | ||
], | ||
"commitConvention": "angular" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
_site/ | ||
.git/ | ||
assets/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Template taken from https://github.com/v8/v8/blob/master/.git-blame-ignore-revs. | ||
# | ||
# This file contains a list of git hashes of revisions to be ignored by git blame. These | ||
# revisions are considered "unimportant" in that they are unlikely to be what you are | ||
# interested in when blaming. Most of these will probably be commits related to linting | ||
# and code formatting. | ||
# | ||
# Instructions: | ||
# - Only large (generally automated) reformatting or renaming CLs should be | ||
# added to this list. Do not put things here just because you feel they are | ||
# trivial or unimportant. If in doubt, do not put it on this list. | ||
# - Precede each revision with a comment containing the PR title and number. | ||
# For bulk work over many commits, place all commits in a block with a single | ||
# comment at the top describing the work done in those commits. | ||
# - Only put full 40-character hashes on this list (not short hashes or any | ||
# other revision reference). | ||
# - Append to the bottom of the file (revisions should be in chronological order | ||
# from oldest to newest). | ||
# - Because you must use a hash, you need to append to this list in a follow-up | ||
# PR to the actual reformatting PR that you are trying to ignore. | ||
|
||
# Format all the code using prettier.io. (#2048, #2062) | ||
beb6f27d596e753014cb9bff1939e5f78d66431c | ||
2d34024961c3a3d27d6fd18ce06a551657983234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "" | ||
labels: bug | ||
assignees: "" | ||
--- | ||
|
||
**Acknowledge the following** | ||
|
||
- [ ] I carefully read and followed the [Getting Started](../../README.md#getting-started) guide. | ||
- [ ] I read through [FAQ](../../FAQ.md) and searched through the [past issues](https://github.com/alshedivat/al-folio/issues), none of which addressed my issue. | ||
- [ ] 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.] | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**System (please complete the following information):** | ||
|
||
- OS: [e.g. iOS] | ||
- Browser (and its version) [e.g. chrome, safari] | ||
- Jekyll version [e.g. 3.8.7] | ||
- Ruby version [e.g. 2.6.5] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "" | ||
labels: enhancement | ||
assignees: "" | ||
--- | ||
|
||
**Acknowledge the following** | ||
|
||
- [ ] I carefully read and followed the [Getting Started](../../README.md#getting-started) guide. | ||
- [ ] I read through [FAQ](../../FAQ.md) and searched through the [past issues](https://github.com/alshedivat/al-folio/issues), none of which addressed my issue. | ||
- [ ] The issue I am raising is a potential improvement 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.] | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
categories: | ||
- title: new features 🚀 | ||
labels: | ||
- enhancement | ||
- title: bug fixes and improvements ✨ | ||
labels: | ||
- bug-fix | ||
- title: other changes 🛠️ | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 60 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- pinned | ||
- security | ||
- enhancement | ||
# Label to use when marking an issue as stale | ||
staleLabel: wontfix | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Axe accessibility testing | ||
|
||
on: | ||
# if you want to run this on every push uncomment the following lines | ||
# push: | ||
# branches: | ||
# - master | ||
# - main | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# - main | ||
workflow_dispatch: | ||
inputs: | ||
url: | ||
description: "URL to be checked (e.g.: blog/)" | ||
required: false | ||
|
||
permissions: | ||
contents: write | ||
|
||
env: | ||
URL: "" | ||
|
||
jobs: | ||
check: | ||
# available images: https://github.com/actions/runner-images#available-images | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.2" | ||
bundler-cache: true | ||
- name: Update _config.yml ⚙️ | ||
uses: fjogeleit/yaml-update-action@main | ||
with: | ||
commitChange: false | ||
valueFile: "_config.yml" | ||
changes: | | ||
{ | ||
"giscus.repo": "${{ github.repository }}", | ||
"baseurl": "" | ||
} | ||
- name: Install and Build 🔧 | ||
run: | | ||
pip3 install --upgrade jupyter | ||
npm install -g mermaid.cli | ||
export JEKYLL_ENV=production | ||
bundle exec jekyll build --lsi | ||
- name: Purge unused CSS 🧹 | ||
run: | | ||
npm install -g purgecss | ||
purgecss -c purgecss.config.js | ||
- name: Run axe 🪓 | ||
# https://github.com/dequelabs/axe-core-npm/tree/develop/packages/cli | ||
run: | | ||
npm install -g @axe-core/cli | ||
npm install -g http-server | ||
http-server _site/ & | ||
axe http://localhost:8080/${{ github.event.inputs.url || env.URL }} --load-delay=1500 --exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Check for broken links on site | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Deploy site] | ||
types: [completed] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
check-links-on-site: | ||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-based-on-the-conclusion-of-another-workflow | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
# available images: https://github.com/actions/runner-images#available-images | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.2" | ||
bundler-cache: true | ||
- name: Update _config.yml ⚙️ | ||
uses: fjogeleit/yaml-update-action@main | ||
with: | ||
commitChange: false | ||
valueFile: "_config.yml" | ||
changes: | | ||
{ | ||
"giscus.repo": "${{ github.repository }}", | ||
"baseurl": "" | ||
} | ||
- name: Install and Build 🔧 | ||
run: | | ||
pip3 install --upgrade jupyter | ||
npm install -g mermaid.cli | ||
export JEKYLL_ENV=production | ||
bundle exec jekyll build --lsi | ||
- name: Purge unused CSS 🧹 | ||
run: | | ||
npm install -g purgecss | ||
purgecss -c purgecss.config.js | ||
- name: Link Checker 🔗 | ||
uses: lycheeverse/[email protected] | ||
with: | ||
fail: true | ||
# only check local links | ||
args: --offline --remap '_site(/?.*)/assets/(.*) _site/assets/$2' --verbose --no-progress '_site/**/*.html' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Check for broken links | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
paths: | ||
- "assets/**" | ||
- "**.html" | ||
- "**.js" | ||
- "**.liquid" | ||
- "**/*.md" | ||
- "**.yml" | ||
- "!.github/workflows/axe.yml" | ||
- "!.github/workflows/deploy-docker-tag.yml" | ||
- "!.github/workflows/deploy-image.yml" | ||
- "!.github/workflows/docker-slim.yml" | ||
- "!.github/workflows/prettier.yml" | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
paths: | ||
- "assets/**" | ||
- "**.html" | ||
- "**.js" | ||
- "**.liquid" | ||
- "**/*.md" | ||
- "**.yml" | ||
- "!.github/workflows/axe.yml" | ||
- "!.github/workflows/deploy-docker-tag.yml" | ||
- "!.github/workflows/deploy-image.yml" | ||
- "!.github/workflows/docker-slim.yml" | ||
- "!.github/workflows/prettier.yml" | ||
|
||
jobs: | ||
link-checker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Link Checker 🔗 | ||
uses: lycheeverse/[email protected] | ||
with: | ||
fail: true | ||
# removed md files that include liquid tags | ||
args: --exclude-path README.md --exclude-path _pages/404.md --exclude-path _pages/blog.md --exclude-path _posts/2018-12-22-distill.md --verbose --no-progress './**/*.md' './**/*.html' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Docker Image CI (Upload Tag) | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
paths: | ||
- "bin/entry_point.sh" | ||
- "Dockerfile" | ||
- "Gemfile" | ||
- "Gemfile.lock" | ||
- "package.json" | ||
- "package-lock.json" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: amirpourmand/al-folio | ||
|
||
- name: Login | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64/v8 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
Oops, something went wrong.