Skip to content
Merged
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist # The folder the action should deploy.
folder: website/dist # The folder the action should deploy.

textlint-md:
runs-on: ubuntu-24.04
Expand Down
21 changes: 19 additions & 2 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,35 @@ _.python.venv = { path = ".venv", create = true }

[settings]
yes = true
idiomatic_version_file_enable_tools = []

[tasks.generate-docs]
run = "cargo test --package typst-docs --lib -- tests::test_docs --exact --nocapture"

[tasks.generate-web]
run = "uv run gen.py"
depends = ["install-website"]
run = [
"bun install --frozen-lockfile",
"bun run build",
]
dir = "./website"

[tasks.generate]
run = [
"mise run generate-docs",
"mise run generate-web"
]

[tasks.install-website]
run = "bun install --frozen-lockfile"
dir = "./website"

[tasks.dev]
depends = ["install-website"]
run = "bun run dev"
dir = "./website"

[tasks.preview]
run = "uv run -m http.server -d dist"
depends = ["install-website"]
run = "bun run preview"
dir = "./website"
4 changes: 2 additions & 2 deletions .textlintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# hayagrivaのsrc/csl/archive.rsで管理されている参考文献フォーマット
dist/docs/reference/model/bibliography/index.html
dist/docs/reference/model/cite/index.html
website/dist/docs/reference/model/bibliography/index.html
website/dist/docs/reference/model/cite/index.html
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"textlint-md": "textlint ./docs/",
"textlint-md:fix": "textlint --fix ./docs/",
"textlint-html": "textlint ./dist/docs/"
"textlint-html": "textlint ./website/dist/docs/"
},
"devDependencies": {
"@types/bun": "latest",
Expand Down
Loading