Skip to main content

Configuration

dōteki uses TOML for the configuration file.

The configuration file doteki.toml is read from the current directory by default. You can specify a different path with the --config | -c option.

While setting up your configuration file, you must pay attention to the TOML sections. A TOML section starts with a header (e.g. [sections.last_updated]) and ends with the next header or the end of the file.

Read more about plugin configuration or the main application configuration options.

Example

Here's an example doteki.toml configuration using the Last.fm, Feed, and Random Choice plugins:

doteki.toml
[sections.lastfm]
plugin = "lastfm"
username = "username"
n = 1
period = "7day"
inline = true

[sections.blog]
plugin = "feed"
url = "https://osc.garden/atom.xml"
n = 5
show_date = false
prepend_text = "## Latest blog posts\n\n"
append_text = "\n\nMore on [osc.garden](https://osc.garden)"

[sections.garden]
plugin = "random_choice"
options = [
"🌲", "🌳", "🌴", "🌱", "🍃", "🍂", "🌿",
"🪻", "🍄", "🌷", "🌻", "🌺", "🎋", "☘️"
]
n = 10
with_replacement = true
preset = "glue"

[sections.last_updated]
plugin = "current_date"
inline = true
format = "%A, %d %B %Y"

and the matching README.md:

README.md
🎶 Lately I've been listening to <!-- lastfm start --><!-- lastfm end -->.

<!-- blog start -->
<!-- blog end -->


Check out my virtual garden:
<!-- garden start -->
<!-- garden end -->

<sub>Last updated on <!-- last_updated start --><!-- last_updated end -->.</sub>

Output

After running dōteki, the README.md would look like: