Skip to content

Commit

Permalink
[bot] AutoMerging: merge all upstream's changes:
Browse files Browse the repository at this point in the history
* https://github.com/Anduin2017/HowToCook:
  [ci skip] Automatic file changes/fix
  Add footer for page.
  Update mkdocs_template.yml
  Feature: add template of comment system (Anduin2017#1192)
  修复标点和格式错误 (Anduin2017#1193)
  • Loading branch information
github-actions[bot] committed Jan 10, 2023
2 parents bb699cd + bba9b3f commit ad49dd2
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .github/templates/mkdocs_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,25 @@ docs_dir: .
theme:
name: material
language: zh
custom_dir: overrides
features:
- content.code.annotate
# - content.tabs.link
# - header.autohide
#- navigation.expand
#- navigation.indexes
# - navigation.expand
# - navigation.indexes
- navigation.instant
- navigation.sections
- navigation.tabs
- navigation.tabs.sticky
- navigation.top
- navigation.footer
- navigation.tracking
- search.highlight
- search.share
- search.suggest
- toc.follow
# # - toc.integrate
# - toc.integrate
search_index_only: true
palette:
- media: "(prefers-color-scheme: light)"
Expand Down
8 changes: 5 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,25 @@ docs_dir: .
theme:
name: material
language: zh
custom_dir: overrides
features:
- content.code.annotate
# - content.tabs.link
# - header.autohide
#- navigation.expand
#- navigation.indexes
# - navigation.expand
# - navigation.indexes
- navigation.instant
- navigation.sections
- navigation.tabs
- navigation.tabs.sticky
- navigation.top
- navigation.footer
- navigation.tracking
- search.highlight
- search.share
- search.suggest
- toc.follow
# # - toc.integrate
# - toc.integrate
search_index_only: true
palette:
- media: "(prefers-color-scheme: light)"
Expand Down
47 changes: 47 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% extends "base.html" %} {% block disqus %}
<script src="https://giscus.app/client.js"
data-repo="Anduin2017/HowToCook"
data-repo-id="MDEwOlJlcG9zaXRvcnkyNDM5NTA0MDg="
data-category="Show and tell"
data-category-id="DIC_kwDODopjSM4CBNA6"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="dark_tritanopia"
data-lang="zh-CN"
crossorigin="anonymous"
async>
</script>


<script>
var giscus = document.querySelector("script[src*=giscus]")

/* Set palette on initial load */
var palette = __get("__palette")
if (palette && typeof palette.color === "object") {
var theme = palette.color.scheme === "default" ? "light" : "dark"
giscus.setAttribute("data-theme", theme)
}

/* Register event handlers after documented loaded */
document.addEventListener("DOMContentLoaded", function () {
var ref = document.querySelector("[data-md-component=palette]")
ref.addEventListener("change", function () {
var palette = __get("__palette")
if (palette && typeof palette.color === "object") {
var theme = palette.color.scheme === "default" ? "light" : "dark"

/* Instruct Giscus to change theme */
var frame = document.querySelector(".giscus-frame")
frame.contentWindow.postMessage(
{giscus: {setConfig: {theme}}},
"https://giscus.app"
)
}
})
})
</script>
{% endblock %}
6 changes: 3 additions & 3 deletions tips/learn/微波炉.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

* [烹煮] 烹煮蔬菜
* [烹煮] 软化含水率高的硬质蔬菜(如马铃薯、洋葱和朝鲜蓟)
* [膨化] 爆点心,如泡芙、印度帕帕达姆薄脆饼、爆米花
* [膨化] 爆点心,如泡芙、印度帕帕达姆薄脆饼、爆米花

中火适用于:

Expand All @@ -40,8 +40,8 @@
* 千万不要尝试用微波炉加热含水量极高的食物,例如葡萄,这可能造成爆沸!
* 由于微波的波长为 12.2 cm,因此微波炉加热小物体的速度要比大物体慢。因此如果是很小的食材,建议聚集在一起进行加热。
* 微波仅能深入食物几厘米,因此有时候外部很烫了,内部可能还是冰凉的。解决办法是将食材加上少量液体放进密封袋,或放入碗中后蒙上保鲜膜,让容器内产生足够的蒸汽来弥补微波炉容易烹饪不均的缺点。
* tips:打开密封袋时,当心蒸汽喷出
* tips:打开密封袋时,当心蒸汽喷出
* 微波只能加热水和油等含有液体分子的物体,因此保鲜膜和密封袋都不会被微波加热。
* 金属能够反射微波而不会被加热,请避免使用含有金边、金属花纹的容器,避免受热不均导致容器破裂。请务必使用瓷、玻璃容器或微波炉专用烤盘。
* 大剂量吸收微波对人体具有危害,请确保在打开微波炉门之前,微波炉处于停止工作状态。
* tips:观察窗上的金属网可以有效屏蔽微波,确保操作者的安全。
* tips:观察窗上的金属网可以有效屏蔽微波,确保操作者的安全。

0 comments on commit ad49dd2

Please sign in to comment.