Skip to content

Commit 05fc249

Browse files
Fix links to arborium website (#144)
1 parent f12401b commit 05fc249

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

packages/arborium/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ All themes are adaptations of color schemes from their original projects. We are
103103
## Links
104104

105105
- [GitHub Repository](https://github.com/bearcove/arborium)
106-
- [Documentation](https://arborium.dev)
106+
- [Documentation](https://arborium.bearcove.eu)
107107
- [Rust Crate (arborium)](https://crates.io/crates/arborium)
108108

109109
## License

xtask/src/generate.rs

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,7 @@ fn generate_cargo_toml(
670670

671671
let grammar_name = grammar.map(|g| g.name.as_ref()).unwrap_or(grammar_id);
672672

673-
let tag = grammar
674-
.map(|g| g.tag.as_str())
675-
.unwrap_or("programming");
673+
let tag = grammar.map(|g| g.tag.as_str()).unwrap_or("programming");
676674

677675
// Use license from arborium.yaml, fallback to MIT if empty
678676
let license: &str = {
@@ -811,9 +809,7 @@ fn generate_readme(crate_name: &str, config: &crate::types::CrateConfig) -> Stri
811809
.map(|i| i.as_str())
812810
.unwrap_or("");
813811

814-
let year = grammar
815-
.and_then(|g| g.year)
816-
.unwrap_or(0);
812+
let year = grammar.and_then(|g| g.year).unwrap_or(0);
817813

818814
let language_link = grammar
819815
.and_then(|g| g.link.as_ref())
@@ -1930,16 +1926,8 @@ fn plan_plugin_crate_files(
19301926
.as_ref()
19311927
.map(|d| d.as_str())
19321928
.unwrap_or("");
1933-
let language_link = grammar
1934-
.link
1935-
.as_ref()
1936-
.map(|l| l.as_str())
1937-
.unwrap_or("");
1938-
let inventor = grammar
1939-
.inventor
1940-
.as_ref()
1941-
.map(|i| i.as_str())
1942-
.unwrap_or("");
1929+
let language_link = grammar.link.as_ref().map(|l| l.as_str()).unwrap_or("");
1930+
let inventor = grammar.inventor.as_ref().map(|i| i.as_str()).unwrap_or("");
19431931
let year = grammar.year.unwrap_or(0);
19441932

19451933
// Generate npm/package.json
@@ -2714,14 +2702,14 @@ command = "arborium-mdbook"
27142702
27152703
Part of the [arborium](https://github.com/bearcove/arborium) project.
27162704
2717-
See the [main documentation](https://arborium.dev) for more information.
2705+
See the [main documentation](https://arborium.bearcove.eu) for more information.
27182706
"#
27192707
);
27202708
}
27212709
};
27222710

27232711
format!(
2724-
"{}\n---\n\nPart of the [arborium](https://github.com/bearcove/arborium) project. See [arborium.dev](https://arborium.dev) for more information.\n",
2712+
"{}\n---\n\nPart of the [arborium](https://github.com/bearcove/arborium) project. See [arborium.bearcove.eu](https://arborium.bearcove.eu) for more information.\n",
27252713
content.trim()
27262714
)
27272715
}

0 commit comments

Comments
 (0)