Aloso / to-html

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

Feature request: fonts. #8

Open Efreak opened 2 years ago

Efreak commented 2 years ago

Probably sufficient to have an option that chooses a front from powerline-web-fonts's stylesheet, and another option to override the stylesheet and allow other fonts (there's dozens of fonts available between nerdfonts.com and programmingfonts.org).

Examples:

Aloso commented 2 years ago

What's the use case? Can't you add these styles yourself?

If you're using the --doc flag, I think a better solution would be an option to add custom CSS, perhaps even custom HTML:

to-html -d --css ".terminal { font-family: Inconsolate, monospace }" 'cargo run'
Efreak commented 2 years ago

I can absolutely add the styles myself, however the primary use case would be automating it. This way you can set up an alias that re-runs the previous command, captures the output, uploads it to a gist or private server and copies a link to the clipboard for pasting elsewhere.

A --css option would work just as well and it's probably a better idea, though it would make the command a bit longer.