Skip to content

Commit d2e3dd0

Browse files
authored
fix: correct author name spelling (#477)
* fix: correct author name spelling * fix: check in ci steps if articles were added
1 parent 5a36a0d commit d2e3dd0

File tree

3 files changed

+42
-34
lines changed

3 files changed

+42
-34
lines changed

.github/workflows/pr-article-details.yml

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,24 @@ jobs:
4343
4444
- name: Validate year and month folder
4545
run: |
46-
CURRENT_YEAR=$(date +%Y)
47-
CURRENT_MONTH=$(date +%m)
48-
49-
while IFS= read -r folder; do
50-
if [[ "$folder" =~ ^content/blog/([0-9]{4})/([0-9]{2})/ ]]; then
51-
year="${BASH_REMATCH[1]}"
52-
month="${BASH_REMATCH[2]}"
53-
if [[ "$year" != "$CURRENT_YEAR" || "$month" != "$CURRENT_MONTH" ]]; then
54-
echo "$folder" >> temp/incorrect-yyyy-mm.txt
46+
if [ -f temp/folders.txt ]; then
47+
CURRENT_YEAR=$(date +%Y)
48+
CURRENT_MONTH=$(date +%m)
49+
50+
while IFS= read -r folder; do
51+
if [[ "$folder" =~ ^content/blog/([0-9]{4})/([0-9]{2})/ ]]; then
52+
year="${BASH_REMATCH[1]}"
53+
month="${BASH_REMATCH[2]}"
54+
if [[ "$year" != "$CURRENT_YEAR" || "$month" != "$CURRENT_MONTH" ]]; then
55+
echo "$folder" >> temp/incorrect-yyyy-mm.txt
56+
fi
57+
else
58+
echo "$folder" >> temp/no-yyyy-mm.txt
5559
fi
56-
else
57-
echo "$folder" >> temp/no-yyyy-mm.txt
58-
fi
59-
done < temp/folders.txt
60+
done < temp/folders.txt
61+
else
62+
echo "✅ No blog articles added"
63+
fi
6064
6165
- name: Make sure folders are under current YYYY/MM
6266
run: |
@@ -82,26 +86,30 @@ jobs:
8286
- name: Check index.md dates
8387
if: always()
8488
run: |
85-
error_found=0
86-
today=$(date +%Y-%m-%d)
87-
88-
while IFS= read -r mdfile; do
89-
if [[ -f "$mdfile" ]]; then
90-
post_date=$(awk '/^date:/ {gsub(/["'\''"]/,"",$2); print $2}' "$mdfile")
91-
92-
if [[ ! "$post_date" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]]; then
93-
echo "❌ In '$mdfile': Invalid date format. Use YYYY-MM-DD."
94-
error_found=1
95-
elif [[ "$post_date" < "$today" ]]; then
96-
echo "❌ In '$mdfile': Date is in the past. Update the publishing date after the article is approved (found: $post_date, today: $today)."
97-
error_found=1
98-
else
99-
echo "✅ In '$mdfile': Date format is valid and not in the past."
89+
if [ -f temp/index.txt ]; then
90+
error_found=0
91+
today=$(date +%Y-%m-%d)
92+
93+
while IFS= read -r mdfile; do
94+
if [[ -f "$mdfile" ]]; then
95+
post_date=$(awk '/^date:/ {gsub(/["'\''"]/,"",$2); print $2}' "$mdfile")
96+
97+
if [[ ! "$post_date" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]]; then
98+
echo "❌ In '$mdfile': Invalid date format. Use YYYY-MM-DD."
99+
error_found=1
100+
elif [[ "$post_date" < "$today" ]]; then
101+
echo "❌ In '$mdfile': Date is in the past. Update the publishing date after the article is approved (found: $post_date, today: $today)."
102+
error_found=1
103+
else
104+
echo "✅ In '$mdfile': Date format is valid and not in the past."
105+
fi
100106
fi
101-
fi
102-
done < temp/index.txt
107+
done < temp/index.txt
103108
104-
exit $error_found
109+
exit $error_found
110+
else
111+
echo "✅ No blog articles added"
112+
fi
105113
106114
- name: Check summaries in index.md files
107115
if: always()

archetypes/blog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ summary: "Replace it with a brief summary that capture the essence of (1) what t
99
# - Add your personal data at `data/authors/<author-name>.json`
1010
# - Add your author name(s) below
1111
authors:
12-
- "author-name"
12+
- "author-name" # same as in the file paths above
1313
# Add tags
1414
tags: ["Tag1", "Tag2"]
1515
---

content/blog/2025/04/esp-fourcc-introduction/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Introduction to ESP FOURCC"
33
date: 2025-04-24
44
showAuthor: false
55
authors:
6-
- Jason Mao
6+
- jason-mao
77
tags:
88
- Multimedia
99
- ESP-GMF
@@ -106,4 +106,4 @@ In the ESP-GMF framework, various modules (such as video decoders, audio process
106106
## Conclusion
107107
ESP FOURCC provides a unified and efficient way to identify multimedia data formats across embedded systems, addressing common challenges such as inconsistent identifiers, high conversion overhead, and debugging complexity. By leveraging the compact and expressive FOURCC encoding method, the ESP-GMF framework ensures standardized communication between modules while optimizing for performance and maintainability.
108108

109-
Through clear macro definitions, helper utilities, and an extensible set of format codes, ESP FOURCC enables developers to build scalable and interoperable multimedia applications with ease. Whether working with audio, video, images, or pixel data, ESP FOURCC lays a solid foundation for future-proof, modular embedded multimedia development.
109+
Through clear macro definitions, helper utilities, and an extensible set of format codes, ESP FOURCC enables developers to build scalable and interoperable multimedia applications with ease. Whether working with audio, video, images, or pixel data, ESP FOURCC lays a solid foundation for future-proof, modular embedded multimedia development.

0 commit comments

Comments
 (0)