mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2025-02-08 02:39:22 +08:00
Revert some python stuff.
This commit is contained in:
parent
99c82d1728
commit
a076b175a7
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,4 +2,3 @@
|
|||
node_modules/
|
||||
.history
|
||||
.DS_Store
|
||||
site/
|
||||
|
|
|
@ -95,25 +95,3 @@
|
|||
- 确保分类正确,不和已有的菜名重复
|
||||
- 确保签入的内容都符合 CC0 协议。尤其注意图片是否有水印!
|
||||
- 确保他没有签入任何个人身份信息、EUII、Email 地址、GitHub 用户名
|
||||
|
||||
|
||||
## Documentation Hosting
|
||||
|
||||
利用`mkdocs-material`来render markdown文件。
|
||||
|
||||
`./docs` 文件夹的存在是workaround mkdocs要求`.md`文件不能存在于根目录中。里面全部是relative symlink到
|
||||
实际的文件/文件夹
|
||||
|
||||
需求: Python > 3.6
|
||||
|
||||
如何使用:
|
||||
```
|
||||
pip install -r requirements.txt
|
||||
mkdocs serve
|
||||
```
|
||||
|
||||
Documentation可以再本地http://localhost:8000/打开。
|
||||
|
||||
管理员:
|
||||
用`mkdocs build` 生成静态HTML网页, 存在于在`site/`文件夹下。Hosting的时候指向到`site/index.html`即可。
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
../CONTRIBUTING.md
|
|
@ -1 +0,0 @@
|
|||
../dishes
|
|
@ -1 +0,0 @@
|
|||
../README.md
|
18
mkdocs.yml
18
mkdocs.yml
|
@ -1,18 +0,0 @@
|
|||
site_name: How To Cook
|
||||
use_directory_urls: true
|
||||
theme:
|
||||
name: material
|
||||
features:
|
||||
- navigation.instant
|
||||
palette:
|
||||
- media: "(prefers-color-scheme: light)"
|
||||
scheme: default
|
||||
primary: grey
|
||||
toggle:
|
||||
icon: material/weather-sunny
|
||||
name: Switch to dark mode
|
||||
- media: "(prefers-color-scheme: dark)"
|
||||
scheme: slate
|
||||
toggle:
|
||||
icon: material/weather-night
|
||||
name: Switch to light mode
|
|
@ -1 +0,0 @@
|
|||
mkdocs-material
|
Loading…
Reference in New Issue
Block a user