File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- v19.5 .0
1+ v22.20 .0
Original file line number Diff line number Diff line change 1- nodejs 19.5 .0
1+ nodejs 22.20 .0
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ type alias Example =
3434byCategory : List Example -> Dict String (List Example )
3535byCategory =
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
4042categories : List ( String , String )
Original file line number Diff line number Diff line change 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" ]
You can’t perform that action at this time.
0 commit comments