-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
62 lines (54 loc) · 2.16 KB
/
pyproject.toml
File metadata and controls
62 lines (54 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[project]
name = "note"
version = "0.1.0"
description = "TonyCrane's Personal Notebook"
readme = "README.md"
requires-python = ">=3.10, <4.0"
dependencies = [
"mkdocs",
"mkdocs-material~=9.6.16",
"mkdocs-material-extensions~=1.3.1",
"mkdocs-glightbox~=0.4.0",
"rich~=14.1.0",
# Personal plugins
"mkdocs-heti-plugin~=0.1.6",
"mkdocs-changelog-plugin~=0.1.3",
"mkdocs-statistics-plugin",
# Personal modified plugins
"mkdocs-rss-plugin",
"mkdocs-encryptcontent-plugin",
"mkdocs-git-revision-date-localized-plugin",
]
[dependency-groups]
dev = [
"poethepoet",
]
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[tool.uv]
package = false
index-url = "https://mirrors.zju.edu.cn/pypi/web/simple"
[tool.uv.sources]
mkdocs = { path = "../mkdocs-toolchain/mkdocs", editable = true }
# mkdocs-heti-plugin = { path = "../mkdocs-toolchain/mkdocs-heti-plugin", editable = true }
# mkdocs-changelog-plugin = { path = "../mkdocs-toolchain/mkdocs-changelog-plugin", editable = true }
mkdocs-statistics-plugin = { path = "../mkdocs-toolchain/mkdocs-statistics-plugin", editable = true }
mkdocs-rss-plugin = { path = "../mkdocs-toolchain/mkdocs-rss-plugin", editable = true }
mkdocs-encryptcontent-plugin = { path = "../mkdocs-toolchain/mkdocs-encryptcontent-plugin", editable = true }
mkdocs-git-revision-date-localized-plugin = { path = "../mkdocs-toolchain/mkdocs-git-revision-date-localized-plugin", editable = true }
[tool.setuptools]
packages = []
py-modules = []
include-package-data = false
[tool.poe.tasks]
# uv run poe <task>
serve = { shell = "FULL=${FULL:-false} mkdocs serve --livereload" }
full-serve = { shell = "FULL=true mkdocs serve --livereload" }
commit = { sequence = [
{ cmd = "git add ." },
{ shell = "git commit -m \"docs: update $(date +%Y-%m-%d)\"" },
] }
gh-deploy = { shell = "https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890 FULL=true mkdocs gh-deploy" }
push = { shell = "https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890 git push" }
publish = { sequence = ["commit", "gh-deploy", "push"] }