chore: Update PDF plugin configuration and fix formatting in dishes/semi-finished/豆鼓.md

This commit is contained in:
xuef 2024-06-03 07:26:59 +00:00
parent cffcfaaa47
commit bc9f7ab7bf
No known key found for this signature in database
GPG Key ID: D33FA9407A6BE728
5 changed files with 23 additions and 7 deletions

View File

@ -72,9 +72,13 @@ plugins:
- same-dir - same-dir
- search - search
- with-pdf: - with-pdf:
copyright: CC0 The Unlicense author: GitHub Community
cover_subtitle: How To Cook copyright: The Unlicense
cover_title: How To Cook
cover_subtitle: 程序员做饭指南
back_cover: true
output_path: document.pdf output_path: document.pdf
show_anchors: true
- minify: - minify:
minify_html: true minify_html: true

View File

@ -11,9 +11,10 @@ FROM hub.aiursoft.cn/python:3.11 as python-env
WORKDIR /app WORKDIR /app
COPY --from=node-env /app . COPY --from=node-env /app .
RUN pip install -r requirements.txt && rm node_modules -rf RUN pip install -r requirements.txt && rm node_modules -rf
RUN mkdocs build --strict RUN apt-get update && apt-get install -y weasyprint fonts-noto-cjk
RUN mkdocs build
# ============================ # ============================
# Prepare Runtime Environment # Prepare Runtime Environment
FROM hub.aiursoft.cn/aiursoft/static FROM hub.aiursoft.cn/aiursoft/static
COPY --from=python-env /app/site /data COPY --from=python-env /app/site /data

View File

@ -1,7 +1,7 @@
# 程序员做饭指南 # 程序员做饭指南
[![build](https://github.com/Anduin2017/HowToCook/actions/workflows/build.yml/badge.svg)](https://github.com/Anduin2017/HowToCook/actions/workflows/build.yml) [![build](https://github.com/Anduin2017/HowToCook/actions/workflows/build.yml/badge.svg)](https://github.com/Anduin2017/HowToCook/actions/workflows/build.yml)
[![License](https://img.shields.io/github/license/Anduin2017/HowToCook)](./LICENSE) [![License](https://img.shields.io/github/license/Anduin2017/HowToCook)](https://github.com/Anduin2017/HowToCook/blob/master/LICENSE)
[![GitHub contributors](https://img.shields.io/github/contributors/Anduin2017/HowToCook)](https://github.com/Anduin2017/HowToCook/graphs/contributors) [![GitHub contributors](https://img.shields.io/github/contributors/Anduin2017/HowToCook)](https://github.com/Anduin2017/HowToCook/graphs/contributors)
[![npm](https://img.shields.io/npm/v/how-to-cook)](https://www.npmjs.com/package/how-to-cook) [![npm](https://img.shields.io/npm/v/how-to-cook)](https://www.npmjs.com/package/how-to-cook)
![Man hours](https://manhours.aiursoft.cn/r/github.com/anduin2017/howtocook.svg) ![Man hours](https://manhours.aiursoft.cn/r/github.com/anduin2017/howtocook.svg)
@ -342,6 +342,10 @@
- [英式司康](./dishes/dessert/英式司康/英式司康.md) - [英式司康](./dishes/dessert/英式司康/英式司康.md)
- [芋泥雪媚娘](./dishes/dessert/芋泥雪媚娘/芋泥雪媚娘.md) - [芋泥雪媚娘](./dishes/dessert/芋泥雪媚娘/芋泥雪媚娘.md)
### 示例菜
- [示例菜](./dishes/template/示例菜/示例菜.md)
## 进阶知识学习 ## 进阶知识学习
如果你已经做了许多上面的菜,对于厨艺已经入门,并且想学习更加高深的烹饪技巧,请继续阅读下面的内容: 如果你已经做了许多上面的菜,对于厨艺已经入门,并且想学习更加高深的烹饪技巧,请继续阅读下面的内容:

View File

@ -72,8 +72,11 @@ plugins:
- same-dir - same-dir
- search - search
- with-pdf: - with-pdf:
copyright: CC0 The Unlicense cover_title: How To Cook
cover_subtitle: How To Cook cover_subtitle: 程序员做饭指南
back_cover: true
two_columns_level: 3
render_js: true
output_path: document.pdf output_path: document.pdf
- minify: - minify:
minify_html: true minify_html: true
@ -391,6 +394,9 @@ nav:
- 英式司康: ./dishes/dessert/英式司康/英式司康.md - 英式司康: ./dishes/dessert/英式司康/英式司康.md
- 芋泥雪媚娘: ./dishes/dessert/芋泥雪媚娘/芋泥雪媚娘.md - 芋泥雪媚娘: ./dishes/dessert/芋泥雪媚娘/芋泥雪媚娘.md
- 示例菜:
- 示例菜: ./dishes/template/示例菜/示例菜.md
- 进阶知识学习: - 进阶知识学习:
- 辅料技巧: ./tips/advanced/辅料技巧.md - 辅料技巧: ./tips/advanced/辅料技巧.md
- 高级专业术语: ./tips/advanced/高级专业术语.md - 高级专业术语: ./tips/advanced/高级专业术语.md

View File

@ -2,3 +2,4 @@ mkdocs-material
mkdocs-same-dir mkdocs-same-dir
mkdocs-minify-plugin mkdocs-minify-plugin
mkdocs-with-pdf mkdocs-with-pdf
weasyprint