From 5439b1de4f34a43237a9b59c9c5ffbc3bf7176e4 Mon Sep 17 00:00:00 2001 From: redxef Date: Fri, 8 Nov 2024 20:22:46 +0100 Subject: [PATCH] docs: update examples. --- README.md | 3 +-- examples.md | 10 ++++++++++ examples/a1d02dee-f1da-4472-bee3-f568c15c8360.json | 5 ----- examples/index.md | 4 ---- 4 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 examples.md delete mode 100644 examples/a1d02dee-f1da-4472-bee3-f568c15c8360.json delete mode 100644 examples/index.md diff --git a/README.md b/README.md index f1550d0..f95dcc9 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,9 @@ $ touch config/data/smartplaylists/Rock.yaml Afterwards run the Task `(re)generate Smart Playlists`, this will rename the `yaml` file and populate it with some default values. You can now -adjust the file to your liking. [Go here](examples/index.md) to see more +adjust the file to your liking. [Go here](examples.md) to see more examples. -Example file ```yaml Id: Rock Playlists: diff --git a/examples.md b/examples.md new file mode 100644 index 0000000..6855cf9 --- /dev/null +++ b/examples.md @@ -0,0 +1,10 @@ +# Examples + +* `Favourite Pop`: A Playlist + containing all favourite items of the genre pop. + ``` + Id: Favourite Pop + Name: Favourite Pop + Program: | + (and (is-favorite) (is-genre "pop" (genre-list))) + ``` diff --git a/examples/a1d02dee-f1da-4472-bee3-f568c15c8360.json b/examples/a1d02dee-f1da-4472-bee3-f568c15c8360.json deleted file mode 100644 index 04397da..0000000 --- a/examples/a1d02dee-f1da-4472-bee3-f568c15c8360.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Id": "a1d02dee-f1da-4472-bee3-f568c15c8360", - "Name": "Favourite Pop", - "Program": "(and (invoke item 'IsFavoriteOrLiked' (user)) (find 'Pop' (car (getitems item 'Genres'))))" -} diff --git a/examples/index.md b/examples/index.md deleted file mode 100644 index ab853ca..0000000 --- a/examples/index.md +++ /dev/null @@ -1,4 +0,0 @@ -# Examples - -* [Favourite Pop](a1d02dee-f1da-4472-bee3-f568c15c8360.json): A Playlist - containing all favourite items of the genre pop.