mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-07-04 07:19:22 +00:00
Compare commits
2 Commits
62db71ae4d
...
v0.10.0
Author | SHA1 | Date | |
---|---|---|---|
0e53b625b9 | |||
ecdb9d4523 |
45
CHANGELOG.md
45
CHANGELOG.md
@ -2,17 +2,46 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## [0.11.1] - 2024-10-14
|
## [0.10.0] - 2024-09-26
|
||||||
|
|
||||||
### 🐛 Bug Fixes
|
|
||||||
|
|
||||||
- Support choosing lexers when used as a library
|
|
||||||
|
|
||||||
## [0.11.0] - 2024-10-14
|
|
||||||
|
|
||||||
### 🚀 Features
|
### 🚀 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
|
## [0.10.0] - 2024-09-26
|
||||||
|
|
||||||
|
14
Hacefile.yml
14
Hacefile.yml
@ -121,17 +121,3 @@ tasks:
|
|||||||
- src
|
- src
|
||||||
commands: |
|
commands: |
|
||||||
tokei src -e src/constants/
|
tokei src -e src/constants/
|
||||||
|
|
||||||
aur:
|
|
||||||
phony: true
|
|
||||||
always_run: true
|
|
||||||
commands: |
|
|
||||||
rm -rf aur-{{NAME}}
|
|
||||||
git clone ssh://aur@aur.archlinux.org/{{NAME}}.git aur-{{NAME}}
|
|
||||||
sed s/pkgver=.*/pkgver=$(shards version)/ -i aur-{{NAME}}/PKGBUILD
|
|
||||||
sed s/pkgrel=.*/pkgrel=1/ -i aur-{{NAME}}/PKGBUILD
|
|
||||||
cd aur-{{NAME}} && updpkgsums && makepkg --printsrcinfo > .SRCINFO
|
|
||||||
cd aur-{{NAME}} && makepkg -fsr
|
|
||||||
cd aur-{{NAME}} && git add PKGBUILD .SRCINFO
|
|
||||||
cd aur-{{NAME}} && git commit -a -m "Update to $(shards version)"
|
|
||||||
cd aur-{{NAME}} && git push
|
|
||||||
|
26
README.md
26
README.md
@ -101,32 +101,6 @@ Dependencies are satisfied
|
|||||||
Building: tartrazine
|
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
|
## Contributing
|
||||||
|
|
||||||
1. Fork it (<https://github.com/ralsina/tartrazine/fork>)
|
1. Fork it (<https://github.com/ralsina/tartrazine/fork>)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: tartrazine
|
name: tartrazine
|
||||||
version: 0.11.1
|
version: 0.10.0
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Roberto Alsina <roberto.alsina@gmail.com>
|
- Roberto Alsina <roberto.alsina@gmail.com>
|
||||||
|
@ -9,7 +9,7 @@ module Tartrazine
|
|||||||
|
|
||||||
macro bake_selected_lexers
|
macro bake_selected_lexers
|
||||||
{% for lexer in env("TT_LEXERS").split "," %}
|
{% for lexer in env("TT_LEXERS").split "," %}
|
||||||
bake_file {{ lexer }}+".xml", {{ read_file "#{__DIR__}/../lexers/" + lexer + ".xml" }}
|
bake_file {{ lexer }}+".xml", {{ read_file "lexers/" + lexer + ".xml" }}
|
||||||
{% end %}
|
{% end %}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -11,20 +11,7 @@ module Tartrazine
|
|||||||
|
|
||||||
struct ThemeFiles
|
struct ThemeFiles
|
||||||
extend BakedFileSystem
|
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__
|
bake_folder "../styles", __DIR__
|
||||||
{% end %}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.theme(name : String) : Theme
|
def self.theme(name : String) : Theme
|
||||||
|
Reference in New Issue
Block a user