Skip to content

Commit 3c160e3

Browse files
committed
Merge tag 'v0.14.6'
2 parents f233ccd + 693c3be commit 3c160e3

File tree

74 files changed

+4776
-413
lines changed

Some content is hidden

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

74 files changed

+4776
-413
lines changed

.github/workflows/broken-links.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ on:
4141
jobs:
4242
link-checker:
4343
runs-on: ubuntu-latest
44+
# only run on the main repo
45+
if: github.repository == 'alshedivat/al-folio'
4446
steps:
4547
- uses: actions/checkout@v4
4648

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths:
99
- "assets/**"
1010
- "_sass/**"
11+
- "_scripts/**"
1112
- "**.bib"
1213
- "**.html"
1314
- "**.js"
@@ -36,6 +37,7 @@ on:
3637
paths:
3738
- "assets/**"
3839
- "_sass/**"
40+
- "_scripts/**"
3941
- "**.bib"
4042
- "**.html"
4143
- "**.js"

.github/workflows/update-tocs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Update TOCs
2+
# This workflow automatically updates the Table of Contents (TOC) in markdown files
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
paths:
10+
- "*.md"
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: write
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 5
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
24+
25+
- name: Get changed files
26+
id: changed-files
27+
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46
28+
with:
29+
files: ./*.md
30+
31+
- name: Updated toc on all markdown changed files
32+
env:
33+
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
34+
run: |
35+
curl https://raw.githubusercontent.com/george-gca/github-markdown-toc/main/gh-md-toc -o gh-md-toc
36+
chmod a+x gh-md-toc
37+
for file in ${ALL_CHANGED_FILES}; do
38+
# Check if the file is a markdown file
39+
if [[ "$file" != *.md ]]; then
40+
continue
41+
fi
42+
./gh-md-toc --indent 2 --insert --no-backup --hide-footer $file
43+
done
44+
rm gh-md-toc
45+
46+
- name: Commit changes
47+
if: steps.changed-files.outputs.any_changed == 'true'
48+
uses: stefanzweifel/git-auto-commit-action@v5.0.1
49+
with:
50+
commit_message: Auto update markdown TOC

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ lighthouse_results/**
99
_posts/2015-10-20-math.md
1010
_sass/font-awesome/*.scss
1111
_sass/tabler-icons/*.scss
12-
_scripts/search.liquid.js
12+
_scripts/*

CUSTOMIZE.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
Here we will give you some tips on how to customize the website. One important thing to note is that **ALL** the changes you make should be done on the **main** branch of your repository. The `gh-pages` branch is automatically overwritten every time you make a change to the main branch.
44

5+
<!--ts-->
6+
<!--te-->
7+
58
## Project structure
69

710
The project is structured as follows, focusing on the main components that you will need to modify:
@@ -13,6 +16,7 @@ The project is structured as follows, focusing on the main components that you w
1316
│   └── 📄 resume.json: CV in JSON format (https://jsonresume.org/)
1417
├── 📂 _bibliography/
1518
│   └── 📄 papers.bib: bibliography in BibTeX format
19+
├── 📂 _books/: contains the bookshelf pages
1620
├── 📄 _config.yml: the configuration file of the template
1721
├── 📂 _data/: contains some of the data used in the template
1822
│   ├── 📄 cv.yml: CV in YAML format, used when assets/json/resume.json is not found
@@ -122,7 +126,7 @@ If the entry matches one form of the last names and the first names, it will be
122126
url: https://en.wikipedia.org/wiki/Carl_Philipp_Emanuel_Bach
123127
```
124128
125-
If the entry matches one of the combinations of the last names and the first names, it will be highlighted and linked to the url provided. Note that the keys **MUST BE** lower cased and **MUST NOT** contain accents. This is because the keys are used to match the last names in the BibTeX entries, considering possible variations.
129+
If the entry matches one of the combinations of the last names and the first names, it will be highlighted and linked to the url provided. Note that the keys **MUST BE** lower cased and **MUST NOT** contain accents. This is because the keys are used to match the last names in the BibTeX entries, considering possible variations (see [related discussion](https://github.com/alshedivat/al-folio/discussions/2213)).
126130
127131
### Buttons (through custom bibtex keywords)
128132
@@ -162,10 +166,10 @@ Depending on your specified footer behavior, the sign up form either will appear
162166

163167
## Removing content
164168

165-
Since this template have a lot of content, you may want to remove some of it. The easiest way to achieve this and avoid merge conflicts when updating your code (as [pointed by CheariX ](https://github.com/alshedivat/al-folio/pull/2933#issuecomment-2571271117)) is to add the unwanted files to the `excludes` section in your `_config.yml` file instead of actually deleting them, for example:
169+
Since this template have a lot of content, you may want to remove some of it. The easiest way to achieve this and avoid merge conflicts when updating your code (as [pointed by CheariX ](https://github.com/alshedivat/al-folio/pull/2933#issuecomment-2571271117)) is to add the unwanted files to the `exclude` section in your `_config.yml` file instead of actually deleting them, for example:
166170

167171
```yml
168-
excludes:
172+
exclude:
169173
- _news/announcement_*.md
170174
- _pages/blog.md
171175
- _posts/

0 commit comments

Comments
 (0)