Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ Config values resolve in this priority:
3. TOML config file
4. Hardcoded defaults

## Example

See example [config](example/book/config), [shelf](example/book/shelf.d/archive.toml), and [template](example/book/template.json) files.

## Customization

### Theme
Expand Down
4 changes: 4 additions & 0 deletions example/book/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
shelf_directory = "/Users/username/.config/book/shelf.d"
catalog_format = "toml"
autoconfirm = true
interactive = true
29 changes: 29 additions & 0 deletions example/book/shelf.d/archive.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
shelf_name = "archive"
shelf_desc = "where books get lost!"

[Collections]
[Collections.alpha]
collection_name = "alpha"
collection_desc = "first collection for losing in the stacks"

[[Collections.alpha.marks]]
catalog_id = "569273e2"
title = "Example Article One"
url = "https://example.com/article-one"
tags = ["demo", "test"]

[Collections.beta]
collection_name = "beta"
collection_desc = "second collection collecting dust"

[[Collections.beta.marks]]
catalog_id = "0ff1faa4"
title = "Example Article Two"
url = "https://example.com/article-two"
tags = ["sample", "fixture"]

[[Collections.beta.marks]]
catalog_id = "d86b5744"
title = "Example Article Three"
url = "https://example.com/article-three"
tags = ["sample", "fixture", "demo"]
14 changes: 14 additions & 0 deletions example/book/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"collection-list": {
"primary_title": "Congratulations! You picked shelf:",
"list_title": "With the auspicious list of collections:"
},
"mark-list": {
"primary_title": "Congratulations! You picked shelf:",
"secondary_title": "With the infamous collection:",
"list_title": "With the worrisome list of marks:"
},
"shelf-list": {
"list_title": "Congratulations! You've knocked over all your shelves:"
}
}
Loading