xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / netlify.toml
netlify.toml44 lines · 997 BRaw
| 1 | [build] |
| 2 | # by setting a custom base directory, we prevent Netlify from running |
| 3 | # `swift build` in the root directory, which builds more targets than |
| 4 | # we need. |
| 5 | base = "Documentation/" |
| 6 | publish = "xtool.docc/.docc-build" |
| 7 | command = "./build.sh" |
| 8 | environment = { SWIFT_VERSION = "6.4.2" } |
| 9 | ignore = "git -C .. diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- Documentation netlify.toml" |
| 10 | |
| 11 | [[redirects]] |
| 12 | from = "/" |
| 13 | to = "/documentation/xtool/" |
| 14 | status = 302 |
| 15 | force = true |
| 16 | |
| 17 | [[redirects]] |
| 18 | from = "/documentation" |
| 19 | to = "/documentation/xtool/" |
| 20 | status = 302 |
| 21 | force = true |
| 22 | |
| 23 | [[redirects]] |
| 24 | from = "/tutorials" |
| 25 | to = "/tutorials/xtool" |
| 26 | status = 302 |
| 27 | force = true |
| 28 | |
| 29 | # --- Backwards compatibility --- |
| 30 | |
| 31 | [[redirects]] |
| 32 | from = "/tutorials/toc" |
| 33 | to = "/tutorials/xtool" |
| 34 | status = 302 |
| 35 | |
| 36 | [[redirects]] |
| 37 | from = "/documentation/xtooldocs/*" |
| 38 | to = "/documentation/xtool/:splat" |
| 39 | status = 302 |
| 40 | |
| 41 | [[redirects]] |
| 42 | from = "/tutorials/xtooldocs/*" |
| 43 | to = "/tutorials/xtool/:splat" |
| 44 | status = 302 |