forked from typst-jp/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
77 lines (62 loc) · 2.07 KB
/
Copy pathmise.toml
File metadata and controls
77 lines (62 loc) · 2.07 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[tools]
rust = "1.88.0"
node = "22.11.0"
bun = "1.2.21"
pinact = "3.1.1"
jq = "1.8.1"
[settings]
yes = true
idiomatic_version_file_enable_tools = []
# As of mise v2025.11.11, the `vars` configuration does not support arrays in JSON file.
# [vars]
# _.file = "website/metadata.json"
[tasks.symlink-docs-assets]
run = [
"rm -rf website/typst-docs-web/public/docs.json",
"ln -s ../../../docs.json website/typst-docs-web/public/docs.json",
"rm -rf website/typst-docs-web/public/assets",
"ln -s ../../../assets website/typst-docs-web/public/assets"
]
[tasks.symlink-web-metadata]
run = [
"rm -rf website/typst-docs-web/public/favicon.png",
"ln -s ../../favicon.png website/typst-docs-web/public/favicon.png",
"rm -rf website/typst-docs-web/public/metadata.json",
"ln -s ../../metadata.json website/typst-docs-web/public/metadata.json",
"rm -rf website/typst-docs-web/public/translation-status.json",
"ln -s ../../translation-status.json website/typst-docs-web/public/translation-status.json"
]
[tasks.generate-docs]
depends = ["symlink-docs-assets", "symlink-web-metadata"]
run = "BASE=$(jq -r '.basePath' website/metadata.json); cargo run --package typst-docs -- --assets-dir assets --out-file docs.json --base \"$BASE\""
[tasks.generate-web]
depends = ["install-website", "symlink-docs-assets", "symlink-web-metadata"]
run = ["bun run build"]
dir = "./website/typst-docs-web"
[tasks.generate]
run = [
"mise run generate-docs",
"mise run generate-web"
]
[tasks.install-website]
run = "bun install --frozen-lockfile"
dir = "./website/typst-docs-web"
[tasks.dev]
depends = ["install-website"]
run = "bun run dev"
dir = "./website/typst-docs-web"
[tasks.preview]
depends = ["install-website"]
run = "bun run preview"
dir = "./website/typst-docs-web"
[tasks.install-textlint]
run = "bun install --frozen-lockfile"
[tasks.textlint-md]
depends = ["install-textlint"]
run = "bun run textlint-md"
[tasks.textlint-md-fix]
depends = ["install-textlint"]
run = "bun run textlint-md:fix"
[tasks.textlint-html]
depends = ["install-textlint"]
run = "bun run textlint-html"