Skip to content

[Discussion] Change configuration file to toml instead of json #96

Closed
@azerupi

Description

@azerupi

In the beginning I choose json for the configuration file because it is what gitbook uses and I wanted to have maximum compatibility. Today I am less concerned about compatibility, the configurations exposed will not be the same anyways. And thus, another configuration format could make more sense?

Toml is quite popular for configuration files in the Rust community and it may be easier and clearer for the user to use.

Quick example:

{
    "title": "Example book",
    "author": "Name here",
    "destination": "/book",
    "source": "/src"
}

vs.

title = "Example book"
author = "Name here"

[paths]
destination = "/book"
source = "/src"

I like toml better because it offers a better structure and is cleaner, but I would like to hear what others think about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions