Skip to content

Commit 32e9bdd

Browse files
committed
Merge branch 'master' into fix-hcl
2 parents 73620c2 + 6219ddf commit 32e9bdd

9 files changed

Lines changed: 1535 additions & 4084 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v19.5.0
1+
v22.20.0

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 19.5.0
1+
nodejs 22.20.0

docs/Docs.elm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ type alias Example =
3434
byCategory : List Example -> Dict String (List Example)
3535
byCategory =
3636
List.foldl (\item -> Dict.update item.tags.category (Maybe.map ((::) item) >> Maybe.withDefault [ item ] >> Just)) Dict.empty
37-
>> Dict.map (\_ l -> List.reverse l)
37+
-- Sort within each category by name, so the order is deterministic
38+
-- regardless of how the build tool enumerates example files.
39+
>> Dict.map (\_ l -> List.sortBy .basename l)
3840

3941

4042
categories : List ( String, String )

netlify.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Netlify build configuration for the examples site.
2+
#
3+
# elm-example-publisher 2.x does incremental builds: it keeps a dependency-graph
4+
# cache (build/.borek-cache.json) and the previously built outputs, and only
5+
# redoes the work affected by what changed. To get that speedup on Netlify —
6+
# where each build otherwise starts from a clean checkout — we persist the build
7+
# directory between builds with netlify-plugin-cache.
8+
9+
[build]
10+
command = "npm run build-docs"
11+
publish = "build"
12+
13+
[build.environment]
14+
# The publisher requires Node 22+ (it also reads .nvmrc).
15+
NODE_VERSION = "22.20.0"
16+
17+
# Restore build/ before the build and save it afterwards, so the incremental
18+
# cache and prior outputs survive across deploys.
19+
[[plugins]]
20+
package = "netlify-plugin-cache"
21+
22+
[plugins.inputs]
23+
paths = ["build"]

0 commit comments

Comments
 (0)