mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2025-01-30 13:32:56 +08:00
chore: Update PDF plugin configuration and fix formatting in dishes/semi-finished/豆鼓.md
This commit is contained in:
parent
bc9f7ab7bf
commit
3d2d3c1eb8
1
.github/templates/mkdocs_template.yml
vendored
1
.github/templates/mkdocs_template.yml
vendored
@ -79,6 +79,7 @@ plugins:
|
||||
back_cover: true
|
||||
output_path: document.pdf
|
||||
show_anchors: true
|
||||
toc_level: 4
|
||||
- minify:
|
||||
minify_html: true
|
||||
|
||||
|
@ -11,7 +11,13 @@ FROM hub.aiursoft.cn/python:3.11 as python-env
|
||||
WORKDIR /app
|
||||
COPY --from=node-env /app .
|
||||
RUN pip install -r requirements.txt && rm node_modules -rf
|
||||
RUN apt-get update && apt-get install -y weasyprint fonts-noto-cjk
|
||||
RUN apt-get update && apt-get install -y weasyprint fonts-noto-cjk wget unzip
|
||||
RUN wget https://gitlab.aiursoft.cn/anduin/anduinos/-/raw/master/Config/fonts.conf -O /etc/fonts/local.conf
|
||||
RUN wget -P /tmp https://gitlab.aiursoft.cn/anduin/anduinos/-/raw/master/Assets/fonts.zip
|
||||
RUN unzip -o /tmp/fonts.zip -d /usr/share/fonts/
|
||||
RUN rm -f /tmp/fonts.zip
|
||||
RUN sudo fc-cache -fv
|
||||
|
||||
RUN mkdocs build
|
||||
|
||||
# ============================
|
||||
|
@ -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)
|
||||
[![License](https://img.shields.io/github/license/Anduin2017/HowToCook)](https://github.com/Anduin2017/HowToCook/blob/master/LICENSE)
|
||||
[![License](https://img.shields.io/github/license/Anduin2017/HowToCook)](./LICENSE)
|
||||
[![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)
|
||||
![Man hours](https://manhours.aiursoft.cn/r/github.com/anduin2017/howtocook.svg)
|
||||
@ -342,10 +342,6 @@
|
||||
- [英式司康](./dishes/dessert/英式司康/英式司康.md)
|
||||
- [芋泥雪媚娘](./dishes/dessert/芋泥雪媚娘/芋泥雪媚娘.md)
|
||||
|
||||
### 示例菜
|
||||
|
||||
- [示例菜](./dishes/template/示例菜/示例菜.md)
|
||||
|
||||
## 进阶知识学习
|
||||
|
||||
如果你已经做了许多上面的菜,对于厨艺已经入门,并且想学习更加高深的烹饪技巧,请继续阅读下面的内容:
|
||||
|
@ -72,12 +72,14 @@ plugins:
|
||||
- same-dir
|
||||
- search
|
||||
- with-pdf:
|
||||
author: GitHub Community
|
||||
copyright: The Unlicense
|
||||
cover_title: How To Cook
|
||||
cover_subtitle: 程序员做饭指南
|
||||
back_cover: true
|
||||
two_columns_level: 3
|
||||
render_js: true
|
||||
output_path: document.pdf
|
||||
show_anchors: true
|
||||
toc_level: 4
|
||||
- minify:
|
||||
minify_html: true
|
||||
|
||||
@ -394,9 +396,6 @@ nav:
|
||||
- 英式司康: ./dishes/dessert/英式司康/英式司康.md
|
||||
- 芋泥雪媚娘: ./dishes/dessert/芋泥雪媚娘/芋泥雪媚娘.md
|
||||
|
||||
- 示例菜:
|
||||
- 示例菜: ./dishes/template/示例菜/示例菜.md
|
||||
|
||||
- 进阶知识学习:
|
||||
- 辅料技巧: ./tips/advanced/辅料技巧.md
|
||||
- 高级专业术语: ./tips/advanced/高级专业术语.md
|
||||
|
Loading…
x
Reference in New Issue
Block a user