Aloso / to-html

Utilities for making the colo documentation
MIT License
72 stars 10 forks source link

Potentially add a config file #16

Closed CosmicHorrorDev closed 1 year ago

CosmicHorrorDev commented 1 year ago

There are several configuration knobs that I would want turned the same way every time I run to-html. Adding it as a shell alias can achieves the same effect, but doesn't really seem as nice for more complex configuration

This also opens the door to more easily handling more complex configuration

Aloso commented 1 year ago

That's good idea. You can find the configuration directory with dirs_next::config_dir. The config should probably be written in toml, which is possible with the toml crate.

Here's a suggestion for the format:

[shell]
program = "bash"

[output]
cwd = false
full_document = false
highlight = []
css_prefix = ""

Does that work for you?

CosmicHorrorDev commented 1 year ago

Sounds good! Busy day today, so I'll start on it tomorrow