-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
1,555 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[*.md] | ||
indent_size = 2 | ||
indent_style = space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Primary colors extraction | ||
|
||
ortfo/db supports extracting the most proeminent colors from the works' images. This can be useful to give a 🎀 colorful touch 🎀 to your website | ||
|
||
## Configuration | ||
|
||
Enable it in [`ortfodb.yaml`](/db/configuration.md): | ||
|
||
```yaml | ||
extract colors: | ||
enabled: true | ||
extract: [] | ||
default files: [] | ||
``` | ||
### `enabled` | ||
|
||
Controls whether ortfo/db will try to extract colors or not | ||
|
||
### `extract` | ||
|
||
Array of | ||
|
||
### `default files` | ||
|
||
TODO | ||
|
||
## In `database.json` | ||
|
||
Each media [content block](/db/your-first-description-file.md#blocks) will have a `colors` object that contains the proeminent colors of the media: | ||
|
||
```json | ||
{ | ||
"ideaseed": { | ||
"content": { | ||
"en": { | ||
"blocks": [ | ||
{ | ||
"id": "Sw0WJU8osY", | ||
"type": "media", | ||
... | ||
"hasSound": false, | ||
"colors": {// [!code focus] | ||
"primary": "#FEF3ED",// [!code focus] | ||
"secondary": "#858585",// [!code focus] | ||
"tertiary": "#FCC696" // [!code focus] | ||
}, // [!code focus] | ||
"thumbnails": { | ||
"100": "ideaseed/[email protected]", | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
--- | ||
next: | ||
link: /db/your-first-description-file | ||
--- | ||
|
||
# Getting started | ||
## Installation | ||
### Binaries | ||
|
Oops, something went wrong.