From a074fd54107c51c4fcbfedbbf6df6eca539d19d3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 26 Jan 2026 15:14:38 -0400 Subject: data, yaml: split yaml loading specs into src/data/files --- src/data/files/artist.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/data/files/artist.js (limited to 'src/data/files/artist.js') diff --git a/src/data/files/artist.js b/src/data/files/artist.js new file mode 100644 index 00000000..ef971171 --- /dev/null +++ b/src/data/files/artist.js @@ -0,0 +1,16 @@ +import {sortAlphabetically} from '#sort'; + +export default ({ + documentModes: {allInOne}, + thingConstructors: {Artist}, +}) => ({ + title: `Process artists file`, + file: 'artists.yaml', + + documentMode: allInOne, + documentThing: Artist, + + sort({artistData}) { + sortAlphabetically(artistData); + }, +}); -- cgit 1.3.0-6-gf8a5