[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tomelr 26f1fc2f3c 55/84: doc: Update the medley example
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tomelr 26f1fc2f3c 55/84: doc: Update the medley example |
Date: |
Tue, 3 May 2022 09:58:13 -0400 (EDT) |
branch: externals/tomelr
commit 26f1fc2f3c0245e69c8c72b0cd01024f9d53078b
Author: Kaushal Modi <kaushal.modi@gmail.com>
Commit: Kaushal Modi <kaushal.modi@gmail.com>
doc: Update the medley example
[skip ci]
---
README.org | 129 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 60 insertions(+), 69 deletions(-)
diff --git a/README.org b/README.org
index 21f1f0540d..e6a77a1f5a 100644
--- a/README.org
+++ b/README.org
@@ -708,51 +708,53 @@ CLOSED: [2022-04-30 Sat 01:32]
(integers . (123 -5 17 1234))
(floats . (12.3 -5.0 -1.7e-05))
(booleans . (t :false))
- (contributors . ("Foo Bar <foo@example.com>"
- ((name . "Baz Qux")
- (email . "bazqux@example.com")
- (url . "https://example.com/bazqux"))))
- (dog . ((legs . 4)
- (eyes . 2)
- (friends . ("poo" "boo"))))
+ (dog . (:legs 4
+ :eyes 2
+ :friends ("poo" "boo")))
(header . ((image . "projects/Readingabook.jpg")
(caption . "stay hungry stay foolish")))
- (collection . ((nothing . :false)
- (nonnil . t)
- (animals . ("dog" "cat" "penguin" "mountain gorilla"))
- (strings-symbols . ("abc" "def" "two words"))
- (integers . (123 -5 17 1234))
- (floats . (12.3 -5.0 -1.7e-05))
- (booleans . (t :false))))
+ (collection . (:nothing :false
+ :nonnil t
+ :animals ("dog" "cat" "penguin" "mountain gorilla")
+ :strings-symbols ("abc" "def" "two words")
+ :integers (123 -5 17 1234)
+ :floats (12.3 -5.0 -1.7e-05)
+ :booleans (t :false)))
(menu . ((foo . ((identifier . "keyword-collection")
(weight . 10)))))
- (resources . (((src . "*.png")
- (name . "my-cool-image-:counter")
- (title . "The Image #:counter")
- (params . ((foo . "bar")
- (floats . (12.3 -5.0 -1.7e-05))
- (strings-symbols . ("abc" "def" "two words"))
- (animals . ("dog" "cat" "penguin" "mountain
gorilla"))
- (integers . (123 -5 17 1234))
- (booleans . (t :false))
- (byline . "bep"))))
- ((src . "image-4.png")
- (title . "The Fourth Image"))
- ((src . "*.jpg")
- (title . "JPEG Image #:counter")))))
+ (resources . [(:src "*.png"
+ :name "my-cool-image-:counter"
+ :title "The Image #:counter"
+ :params (:foo "bar"
+ :floats (12.3 -5.0 -1.7e-05)
+ :strings-symbols ("abc" "def" "two words")
+ :animals ("dog" "cat" "penguin" "mountain gorilla")
+ :integers (123 -5 17 1234)
+ :booleans (t :false)
+ :byline "bep"))
+ (:src "image-4.png"
+ :title "The Fourth Image")
+ (:src "*.jpg"
+ :title "JPEG Image #:counter")]))
#+end_src
*** TOML
+#+begin_src emacs-lisp :noweb yes :exports results :wrap src toml
+(tomelr-encode
+ <<medley>>)
+#+end_src
+
+#+RESULTS:
#+begin_src toml
title = "Keyword Collection"
-author = ["firstname1 lastname1", "firstname2 lastname2", "firstname3
lastname3"]
-aliases = ["/posts/keyword-concatenation", "/posts/keyword-merging"]
-images = ["image 1", "image 2"]
-keywords = ["keyword1", "keyword2", "three word keywords3"]
-outputs = ["html", "json"]
-series = ["series 1", "series 2"]
-tags = ["mega front-matter", "keys", "collection", "concatenation", "merging"]
-categories = ["cat1", "cat2"]
-videos = ["video 1", "video 2"]
+author = [ "firstname1 lastname1", "firstname2 lastname2", "firstname3
lastname3" ]
+aliases = [ "/posts/keyword-concatenation", "/posts/keyword-merging" ]
+images = [ "image 1", "image 2" ]
+keywords = [ "keyword1", "keyword2", "three word keywords3" ]
+outputs = [ "html", "json" ]
+series = [ "series 1", "series 2" ]
+tags = [ "mega front-matter", "keys", "collection", "concatenation", "merging"
]
+categories = [ "cat1", "cat2" ]
+videos = [ "video 1", "video 2" ]
draft = false
categories_weight = 999
tags_weight = 88
@@ -762,44 +764,41 @@ mybaz = "zoo"
alpha = 1
beta = "two words"
gamma = 10
-animals = ["dog", "cat", "penguin", "mountain gorilla"]
-strings-symbols = ["abc", "def", "two words"]
-integers = [123, -5, 17, 1_234]
-floats = [12.3, -5.0, -1.7e-05]
-booleans = [true, false]
-contributors = [
- "Foo Bar <foo@example.com>",
- { name = "Baz Qux", email = "bazqux@example.com", url =
"https://example.com/bazqux" }
-]
+animals = [ "dog", "cat", "penguin", "mountain gorilla" ]
+strings-symbols = [ "abc", "def", "two words" ]
+integers = [ 123, -5, 17, 1234 ]
+floats = [ 12.3, -5.0, -1.7e-05 ]
+booleans = [ true, false ]
[dog]
legs = 4
eyes = 2
- friends = ["poo", "boo"]
+ friends = [ "poo", "boo" ]
[header]
image = "projects/Readingabook.jpg"
- caption = "stay hungry, stay foolish"
+ caption = "stay hungry stay foolish"
[collection]
nothing = false
nonnil = true
- animals = ["dog", "cat", "penguin", "mountain gorilla"]
- strings-symbols = ["abc", "def", "two words"]
- integers = [123, -5, 17, 1_234]
- floats = [12.3, -5.0, -1.7e-05]
- booleans = [true, false]
-[menu.foo]
- identifier = "keyword-collection"
- weight = 10
+ animals = [ "dog", "cat", "penguin", "mountain gorilla" ]
+ strings-symbols = [ "abc", "def", "two words" ]
+ integers = [ 123, -5, 17, 1234 ]
+ floats = [ 12.3, -5.0, -1.7e-05 ]
+ booleans = [ true, false ]
+[menu]
+ [menu.foo]
+ identifier = "keyword-collection"
+ weight = 10
[[resources]]
src = "*.png"
name = "my-cool-image-:counter"
title = "The Image #:counter"
[resources.params]
foo = "bar"
- floats = [12.3, -5.0, -1.7e-05]
- strings-symbols = ["abc", "def", "two words"]
- animals = ["dog", "cat", "penguin", "mountain gorilla"]
- integers = [123, -5, 17, 1_234]
- booleans = [true, false]
+ floats = [ 12.3, -5.0, -1.7e-05 ]
+ strings-symbols = [ "abc", "def", "two words" ]
+ animals = [ "dog", "cat", "penguin", "mountain gorilla" ]
+ integers = [ 123, -5, 17, 1234 ]
+ booleans = [ true, false ]
byline = "bep"
[[resources]]
src = "image-4.png"
@@ -894,14 +893,6 @@ contributors = [
true,
false
],
- "contributors": [
- "Foo Bar <foo@example.com>",
- {
- "name": "Baz Qux",
- "email": "bazqux@example.com",
- "url": "https://example.com/bazqux"
- }
- ],
"dog": {
"legs": 4,
"eyes": 2,
- [elpa] externals/tomelr 1d65064ffa 20/84: feat: Recognize local date format YYYY-MM-DD, (continued)
- [elpa] externals/tomelr 1d65064ffa 20/84: feat: Recognize local date format YYYY-MM-DD, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 2810504e84 32/84: feat: Add basic support for S-exp plists -> TOML conversion, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 0f4e7b4f2c 47/84: fix: Better detection of nested TTA, but still wip, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr cff1f8aa89 38/84: fix: Support TOML tables arrays specified as plist vector, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 4c419bcee2 37/84: fix: Support TOML tables specified as plists, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr baf81228bc 45/84: fix: Correct the spec for nested array of tables, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 4dda8e6be3 46/84: chore: Style edits in a test, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 5959b90ffa 44/84: fix: Don't let TOML tables be recognized as TOML tables arrays, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr b64eb07e99 49/84: fix: Detect TT with sub-tables correctly, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 4386d99a85 65/84: refactor(minor): Use `tomelr--toml-table-p`, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 26f1fc2f3c 55/84: doc: Update the medley example,
ELPA Syncer <=
- [elpa] externals/tomelr e2b313ca3b 52/84: feat: Implement everything planned in the initial spec, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 4434ccc64b 70/84: chore: Bump version, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 10a1994aed 51/84: feat: Support (lightly tested) nested TOML Table Arrays, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr df0e73334f 59/84: Revert "doc: Update the medley example", ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr ec381fd723 79/84: fix: Auto-stringify and auto-quote symbol values, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr a25d952a17 77/84: feat: Auto-coerce string to integers, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr b2ba4c46b5 82/84: refactor: Minor code reorg, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr d86fd721ce 63/84: fix: Compatibility for emacs 26.3, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr a1fa47379e 84/84: chore: Add CHANGELOG generated using git cliff tool, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr ae983711be 78/84: fix: Auto-stringify symbols like 1.10.1, ELPA Syncer, 2022/05/03