14 Commits

Author SHA1 Message Date
li-longjian
beab2f8a21 Merge 6b14185912 into 9f6a77c7dd 2025-04-20 20:22:27 +02:00
Anduin Xue
9f6a77c7dd 压缩图片
Some checks failed
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
2025-04-20 14:36:41 +00:00
Anduin Xue
d4523bdd6a Compress photos 2025-04-20 14:02:13 +00:00
Anduin Xue
1b055031a7 Fix links to油温判断技巧 in beef steak recipe 2025-04-20 12:57:56 +00:00
Anduin Xue
b77202ad05 Merge branch 'master' of github.com:Anduin2017/HowToCook 2025-04-20 12:47:39 +00:00
Anduin Xue
23c9d4f733 Add check for files without extensions in manual linting script 2025-04-20 12:47:35 +00:00
github-actions[bot]
540847a09c [ci skip] Automatic file changes/fix 2025-04-20 12:46:36 +00:00
Anduin Xue
e485b3aa19 Replace 松仁玉米 recipe with an updated version 2025-04-20 12:45:53 +00:00
uname
3ceee48d02 Create 松仁玉米 (#1536)
Updated new dish 松仁玉米

Co-authored-by: Anduin Xue <anduin@aiursoft.com>
2025-04-20 12:40:01 +00:00
Anduin Xue
de6e35a6e3 添加文件大小检查,确保文件不超过1MB限制,并提示用户压缩或分割文件。 2025-04-20 12:39:16 +00:00
Anduin Xue
50f11b1cee 压缩菜谱中超过1MB的图片。 2025-04-20 12:32:09 +00:00
Anduin Xue
6eb2968341 压缩一些过大的图片。 2025-04-20 12:23:15 +00:00
li-longjian
6b14185912 改正格式 2024-10-07 11:31:22 +08:00
li-longjian
b13a703c02 新增《家庭版红烧肉》做法 2024-10-06 22:56:48 +08:00
110 changed files with 143 additions and 5 deletions

View File

@@ -3,11 +3,45 @@ const glob = util.promisify(require('glob'));
const fs = require("fs").promises;
const path = require('path');
const MAX_FILE_SIZE = 1024 * 1024; // 1MB
async function checkFileSize(filePath) {
try {
const stats = await fs.stat(filePath);
return stats.size;
} catch (error) {
console.error(`Error checking file size for ${filePath}: ${error.message}`);
return 0;
}
}
async function main() {
var errors = [];
var directories = await glob(__dirname + '../../dishes/**/*.md');
// Check all files in dishes directory for size
var allFiles = await glob(__dirname + '../../dishes/**/*');
// Check each file size
for (var filePath of allFiles) {
const fileSize = await checkFileSize(filePath);
if (fileSize > MAX_FILE_SIZE) {
errors.push(`文件 ${filePath} 超过了1MB大小限制 (${(fileSize/1048576).toFixed(2)}MB)! 请压缩图片或分割文件。`);
}
}
// Check for files without extensions
for (var filePath of allFiles) {
const stats = await fs.stat(filePath);
// Only check files (not directories)
if (stats.isFile()) {
const extension = path.extname(filePath);
if (extension === '') {
errors.push(`文件 ${filePath} 不符合仓库的规范!文件必须有扩展名!`);
}
}
}
for (var filePath of directories) {
var data = await fs.readFile(filePath, 'utf8');
var filename = path.parse(filePath).base.replace(".md","");

View File

@@ -96,6 +96,7 @@ docker run -d -p 5000:5000 ghcr.io/anduin2017/how-to-cook:latest
- [上汤娃娃菜](dishes/vegetable_dish/上汤娃娃菜/上汤娃娃菜.md)
- [手撕包菜](dishes/vegetable_dish/手撕包菜/手撕包菜.md)
- [水油焖蔬菜](dishes/vegetable_dish/水油焖蔬菜.md)
- [松仁玉米](dishes/vegetable_dish/松仁玉米.md)
- [素炒豆角](dishes/vegetable_dish/素炒豆角.md)
- [酸辣土豆丝](dishes/vegetable_dish/酸辣土豆丝.md)
- [糖拌西红柿](dishes/vegetable_dish/糖拌西红柿/糖拌西红柿.md)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 549 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 MiB

After

Width:  |  Height:  |  Size: 673 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 MiB

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 MiB

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 MiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 444 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 738 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 839 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 321 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 330 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 KiB

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 771 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 507 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 486 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 458 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 825 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 744 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 MiB

After

Width:  |  Height:  |  Size: 586 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 754 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 558 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 705 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 372 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 479 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 799 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 957 KiB

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

@@ -0,0 +1,59 @@
# 家庭版红烧肉的做法
家庭版红烧肉是利用一般家里厨房常见的材料做出美味的一道红烧肉菜肴。
预估烹饪难度:★★★★
## 必备原料和工具
* 五花肉
* 冰糖(或者白砂糖)
* 食用油
* 生抽
* 蚝油
* 老抽
* 姜片
* 蒜头
* 啤酒(或料酒)
*
* 大料:八角,桂皮,香叶,草果
* 干辣椒
*
## 计算
每份:
* 五花肉 300 g
* 冰糖(白砂糖) 100 g
* 食用油 200 g
* 生抽 10 ml
* 蚝油 5 ml
* 老抽 5 ml
* 姜片 2 片
* 蒜头 3 颗
* 料酒 100 ml
* 葱 1 根
* 盐 10 g
## 操作
* 将锅烧热不放油将猪皮朝锅底烫至焦黄1—2min。这步操作可以有效的去除猪肉的异味。
* 用菜刀将猪皮刮干净,洗干净。
* 焯水将猪肉切成两段先不切块冷水下锅放入姜片料酒。开中火将浮沫捞起倒掉。焯水3min.
* 焯水结束把猪肉放凉,切成麻将块大小,厚薄均匀。
* 锅烧热,不放油,将沥干水分的五花肉直接倒入锅中,中火,慢煎,直至五花肉猪油被煎出。这可以极大的减少五花肉的肥腻感,煎出的猪油可以用来炒菜,很香。
* 锅留底油,开小火,开始炒糖色:将冰糖或白砂糖倒入锅中,不断搅拌,使冰糖融化速度加快,直至冰糖化为枣红色并不断冒出密集的小泡。
* 保持最小火,倒入五花肉,将糖色均匀裹满每一块肉。(最小火是为了不使糖色炒过头而发苦)
* 放入大料:干辣椒,八角,桂皮,香叶。与五花肉一起翻炒出香味。
* 倒入生抽,老抽,啤酒,加开水没过五花肉。
* 先不加盐,过早加盐会使瘦肉变柴。
* 盖上锅盖,小火焖煮十五分钟后加盐,放入蒜子。
* 勤查看锅中水的状态
* 剩余少量汤汁时,将辅料捡去不要,大火收汁,不断翻动。
* 装盘,撒上葱花。
![示例菜成品](./红烧肉.jpg)
如果您遵循本指南的制作流程而发现有问题或可以改进的流程,请提出 Issue 或 Pull request 。

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

After

Width:  |  Height:  |  Size: 859 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 195 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 585 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 800 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 847 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 710 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 MiB

After

Width:  |  Height:  |  Size: 924 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

After

Width:  |  Height:  |  Size: 756 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 822 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

After

Width:  |  Height:  |  Size: 774 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 529 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 652 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 717 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 648 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 710 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 626 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 915 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 338 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 MiB

After

Width:  |  Height:  |  Size: 524 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 445 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 124 KiB

View File

@@ -63,7 +63,7 @@
1. 将炉灶打开高火(见附录对于火力大小的说明),同时锅中加入橄榄油,热锅 15-30 秒。
2. 腌制牛排。将海盐和黑胡椒均匀的洒在牛排的全部表面并用手涂抹,揉搓,使得盐和胡椒颗粒尽量嵌入到肉中。注意,腌制完成后牛排**需要立即下锅,不推荐提前腌制牛排**。这是因为外表涂抹的盐会析出牛肉中的水分,影响烹饪的同时丧失风味。
3. 热锅至油温 6-8 成(参见[油温判断技巧](./../../../tips/advanced/油温判断技巧)),将牛排由近及远的缓慢放入锅中。
3. 热锅至油温 6-8 成(参见[油温判断技巧](./../../../tips/advanced/油温判断技巧.md)),将牛排由近及远的缓慢放入锅中。
4. 如果您使用了土豆作为配菜,可以将土豆放入碗中,然后放进微波炉加热 10 分钟,或者放入开水煮 3-5 分钟。
5. 单面煎制 1.5 分钟(这个时间适用于 2-3cm 厚大约的牛排。如果您的牛排更薄,考虑将这个时间缩短为 1 分钟。如果您的牛排更厚,考虑将这个时间增加至 2-2.5 分钟。)
6. 翻面,再煎制 1.5 分钟。
@@ -87,7 +87,7 @@
### 火候的控制
煎制牛排是控制火候的艺术。限于篇幅,这里简单给出一些定量评估火力的方法和本文中用到的与火候相关的术语。更多内容参见[油温判断技巧](./../../../tips/advanced/油温判断技巧)。
煎制牛排是控制火候的艺术。限于篇幅,这里简单给出一些定量评估火力的方法和本文中用到的与火候相关的术语。更多内容参见[油温判断技巧](./../../../tips/advanced/油温判断技巧.md)。
- 对于电磁炉:
- 高火:功率 1.8Kw - 2.2kw。

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 MiB

After

Width:  |  Height:  |  Size: 538 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 587 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 928 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 598 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 426 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 241 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 663 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 MiB

After

Width:  |  Height:  |  Size: 471 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 879 KiB

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 556 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 882 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 MiB

After

Width:  |  Height:  |  Size: 382 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 MiB

After

Width:  |  Height:  |  Size: 555 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 MiB

After

Width:  |  Height:  |  Size: 532 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 538 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 479 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 MiB

After

Width:  |  Height:  |  Size: 309 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 364 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 330 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 MiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 MiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 MiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 751 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 MiB

After

Width:  |  Height:  |  Size: 856 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 657 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 554 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 554 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 586 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 525 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 708 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 564 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 759 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 760 KiB

Some files were not shown because too many files have changed in this diff Show More