mirror of
https://github.com/xtool-org/xtool.git
synced 2026-02-04 11:53:30 +01:00
Notably: - Build xtool with Swift 6.2 - Resolve https://github.com/advisories/GHSA-xvr7-p2c6-j83w. That advisory shouldn't really affect us since we don't use NIO as a server but good hygiene anyway.
45 lines
995 B
TOML
45 lines
995 B
TOML
[build]
|
|
# by setting a custom base directory, we prevent Netlify from running
|
|
# `swift build` in the root directory, which builds more targets than
|
|
# we need.
|
|
base = "Documentation/"
|
|
publish = "xtool.docc/.docc-build"
|
|
command = "./build.sh"
|
|
environment = { SWIFT_VERSION = "6.2" }
|
|
ignore = "git -C .. diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- Documentation netlify.toml"
|
|
|
|
[[redirects]]
|
|
from = "/"
|
|
to = "/documentation/xtool/"
|
|
status = 302
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/documentation"
|
|
to = "/documentation/xtool/"
|
|
status = 302
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/tutorials"
|
|
to = "/tutorials/xtool"
|
|
status = 302
|
|
force = true
|
|
|
|
# --- Backwards compatibility ---
|
|
|
|
[[redirects]]
|
|
from = "/tutorials/toc"
|
|
to = "/tutorials/xtool"
|
|
status = 302
|
|
|
|
[[redirects]]
|
|
from = "/documentation/xtooldocs/*"
|
|
to = "/documentation/xtool/:splat"
|
|
status = 302
|
|
|
|
[[redirects]]
|
|
from = "/tutorials/xtooldocs/*"
|
|
to = "/tutorials/xtool/:splat"
|
|
status = 302
|