2 Commits

Author SHA1 Message Date
0e53b625b9 bump: Release v0.10.0 2024-09-26 20:51:35 -03:00
ecdb9d4523 bump: Release v0.10.0 2024-09-26 20:50:43 -03:00
4 changed files with 39 additions and 43 deletions

View File

@ -2,11 +2,46 @@
All notable changes to this project will be documented in this file.
## [0.11.0] - 2024-10-14
## [0.10.0] - 2024-09-26
### 🚀 Features
- Support selecting only some themes
- Optional conditional baking of lexers
### 🐛 Bug Fixes
- Strip binaries for release artifacts
- Fix metadata to show crystal
### ⚙️ Miscellaneous Tasks
- Build before tag
- *(build)* Strip static binary
### Bump
- Release v0.10.0
- Release v0.10.0
## [0.10.0] - 2024-09-26
### 🚀 Features
- Optional conditional baking of lexers
### 🐛 Bug Fixes
- Strip binaries for release artifacts
- Fix metadata to show crystal
### ⚙️ Miscellaneous Tasks
- Build before tag
- *(build)* Strip static binary
### Bump
- Release v0.10.0
## [0.10.0] - 2024-09-26

View File

@ -101,32 +101,6 @@ Dependencies are satisfied
Building: tartrazine
```
## Choosing what themes you want
Themes come from two places, tartrazine itself and [Sixteen](https://github.com/ralsina/sixteen).
To only embed selected themes, build your project with the `-Dnothemes` option, and
you can set two environment variables to control which themes are included:
* `TT_THEMES` is a comma-separated list of themes to include from tartrazine (see the styles directory in the source)
* `SIXTEEN_THEMES` is a comma-separated list of themes to include from Sixteen (see the base16 directory in the sixteen source)
For example (using the tartrazine CLI as the project):
```bash
$ TT_THEMES=colorful,autumn SIXTEEN_THEMES=pasque,pico shards build -Dnothemes
Dependencies are satisfied
Building: tartrazine
$ ./bin/tartrazine --list-themes
autumn
colorful
pasque
pico
```
Be careful not to build without any themes at all, nothing will work.
## Contributing
1. Fork it (<https://github.com/ralsina/tartrazine/fork>)

View File

@ -1,5 +1,5 @@
name: tartrazine
version: 0.11.0
version: 0.10.0
authors:
- Roberto Alsina <roberto.alsina@gmail.com>

View File

@ -11,20 +11,7 @@ module Tartrazine
struct ThemeFiles
extend BakedFileSystem
macro bake_selected_themes
{% if env("TT_THEMES") %}
{% for theme in env("TT_THEMES").split "," %}
bake_file {{ theme }}+".xml", {{ read_file "#{__DIR__}/../styles/" + theme + ".xml" }}
{% end %}
{% end %}
end
{% if flag?(:nothemes) %}
bake_selected_themes
{% else %}
bake_folder "../styles", __DIR__
{% end %}
bake_folder "../styles", __DIR__
end
def self.theme(name : String) : Theme