color schemes: update version in .rs, re-sync, add helper for changelog
This mostly automates adding entries to the changelog; now I just have to copy and paste the summary line.
This commit is contained in:
1 parent
52af7a2b2b
commit
ef3400c66e
4 files changed
+591
-443
No files matched your search
+445
-442
File diff suppressed because it is too large.
Load diff
@@ -13,6 +13,10 @@ As features stabilize some brief notes about them will accumulate here.
|
||||
|
||||
* Not yet
|
||||
|
||||
#### New
|
||||
|
||||
* Color schemes: [DanQing Light (base16)](colorschemes/d/index.md#danqing-light-base16), [SynthwaveAlpha](colorschemes/s/index.md#synthwavealpha), [SynthwaveAlpha (Gogh)](colorschemes/s/index.md#synthwavealpha-gogh)
|
||||
|
||||
### 20220807-113146-c2fee766
|
||||
|
||||
#### New
|
||||
|
||||
+117
-1
@@ -6252,6 +6252,46 @@
|
||||
"wezterm_version": "20220807-113146-c2fee766"
|
||||
}
|
||||
},
|
||||
{
|
||||
"colors": {
|
||||
"ansi": [
|
||||
"#fcfefd",
|
||||
"#f9906f",
|
||||
"#8ab361",
|
||||
"#f0c239",
|
||||
"#b0a4e3",
|
||||
"#cca4e3",
|
||||
"#30dff3",
|
||||
"#5a605d"
|
||||
],
|
||||
"background": "#fcfefd",
|
||||
"brights": [
|
||||
"#cad8d2",
|
||||
"#f9906f",
|
||||
"#8ab361",
|
||||
"#f0c239",
|
||||
"#b0a4e3",
|
||||
"#cca4e3",
|
||||
"#30dff3",
|
||||
"#2d302f"
|
||||
],
|
||||
"cursor_bg": "#5a605d",
|
||||
"cursor_border": "#5a605d",
|
||||
"cursor_fg": "#5a605d",
|
||||
"foreground": "#5a605d",
|
||||
"indexed": {},
|
||||
"selection_bg": "#5a605d",
|
||||
"selection_fg": "#fcfefd"
|
||||
},
|
||||
"metadata": {
|
||||
"aliases": [],
|
||||
"author": "Wenhan Zhu (Cosmos) (zhuwenhan950913@gmail.com)",
|
||||
"name": "DanQing Light (base16)",
|
||||
"origin_url": "https://github.com/CosmosAtlas/base16-danqing-scheme",
|
||||
"prefix": "d",
|
||||
"wezterm_version": "nightly builds only"
|
||||
}
|
||||
},
|
||||
{
|
||||
"colors": {
|
||||
"ansi": [
|
||||
@@ -24210,6 +24250,82 @@
|
||||
"wezterm_version": "Always"
|
||||
}
|
||||
},
|
||||
{
|
||||
"colors": {
|
||||
"ansi": [
|
||||
"#241b30",
|
||||
"#e60a70",
|
||||
"#00986c",
|
||||
"#adad3e",
|
||||
"#6e29ad",
|
||||
"#b300ad",
|
||||
"#00b0b1",
|
||||
"#b9b1bc"
|
||||
],
|
||||
"background": "#241b30",
|
||||
"brights": [
|
||||
"#7f7094",
|
||||
"#e60a70",
|
||||
"#0ae4a4",
|
||||
"#f9f972",
|
||||
"#aa54f9",
|
||||
"#ff00f6",
|
||||
"#00fbfd",
|
||||
"#f2f2e3"
|
||||
],
|
||||
"cursor_bg": "#f2f2e3",
|
||||
"cursor_border": "#f2f2e3",
|
||||
"cursor_fg": "#241b30",
|
||||
"foreground": "#f2f2e3",
|
||||
"indexed": {},
|
||||
"selection_bg": "#6e29ad",
|
||||
"selection_fg": "#f2f2e3"
|
||||
},
|
||||
"metadata": {
|
||||
"aliases": [],
|
||||
"name": "SynthwaveAlpha",
|
||||
"origin_url": "https://github.com/mbadolato/iTerm2-Color-Schemes",
|
||||
"prefix": "s",
|
||||
"wezterm_version": "nightly builds only"
|
||||
}
|
||||
},
|
||||
{
|
||||
"colors": {
|
||||
"ansi": [
|
||||
"#241b30",
|
||||
"#9a0048",
|
||||
"#00986c",
|
||||
"#adad3e",
|
||||
"#6e29ad",
|
||||
"#b300ad",
|
||||
"#00b0b1",
|
||||
"#b9b1bc"
|
||||
],
|
||||
"background": "#241b30",
|
||||
"brights": [
|
||||
"#7f7094",
|
||||
"#e60a70",
|
||||
"#0ae4a4",
|
||||
"#f9f972",
|
||||
"#aa54f9",
|
||||
"#ff00f6",
|
||||
"#00fbfd",
|
||||
"#f2f2e3"
|
||||
],
|
||||
"cursor_bg": "#f2f2e3",
|
||||
"cursor_border": "#f2f2e3",
|
||||
"cursor_fg": "#f2f2e3",
|
||||
"foreground": "#f2f2e3",
|
||||
"indexed": {}
|
||||
},
|
||||
"metadata": {
|
||||
"aliases": [],
|
||||
"name": "SynthwaveAlpha (Gogh)",
|
||||
"origin_url": "https://github.com/Gogh-Co/Gogh",
|
||||
"prefix": "s",
|
||||
"wezterm_version": "nightly builds only"
|
||||
}
|
||||
},
|
||||
{
|
||||
"colors": {
|
||||
"ansi": [
|
||||
@@ -28147,4 +28263,4 @@
|
||||
"wezterm_version": "Always"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
@@ -83,6 +83,15 @@ pub async fn fetch_url(url: &str) -> anyhow::Result<Vec<u8>> {
|
||||
Ok(data)
|
||||
}
|
||||
|
||||
fn make_ident(key: &str) -> String {
|
||||
let key = key.to_ascii_lowercase();
|
||||
let fields: Vec<&str> = key
|
||||
.split(|c: char| !c.is_alphanumeric())
|
||||
.filter(|c| !c.is_empty())
|
||||
.collect();
|
||||
fields.join("-")
|
||||
}
|
||||
|
||||
fn make_prefix(key: &str) -> (char, String) {
|
||||
for c in key.chars() {
|
||||
match c {
|
||||
@@ -220,6 +229,22 @@ pub const SCHEMES: [(&'static str, &'static str); {count}] = [\n
|
||||
}
|
||||
}
|
||||
|
||||
// Summarize new schemes for the changelog
|
||||
let mut new_items = vec![];
|
||||
for s in &all {
|
||||
if s.data.metadata.wezterm_version.as_deref() == Some("nightly builds only") {
|
||||
let (prefix, _) = make_prefix(&s.name);
|
||||
let ident = make_ident(&s.name);
|
||||
new_items.push(format!(
|
||||
"[{}](colorschemes/{}/index.md#{})",
|
||||
s.name, prefix, ident
|
||||
));
|
||||
}
|
||||
}
|
||||
if !new_items.is_empty() {
|
||||
println!("* Color schemes: {}", new_items.join(", "));
|
||||
}
|
||||
|
||||
// And the data for the docs
|
||||
|
||||
let mut doc_data = vec![];
|
||||
|
||||
Reference in new issue
Block a user