mirror of
https://github.com/typst/typst
synced 2025-08-25 20:24:14 +08:00
Use a preferred yaml extension over yml
See https://www.iana.org/assignments/media-types/application/yaml#:~:text=File%20extension(s):%20"yaml"%20(preferred)%20and%20"yml"%2e
This commit is contained in:
parent
46d57b00b5
commit
9993698196
@ -5,7 +5,7 @@ resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.13.1"
|
||||
rust-version = "1.83" # also change in ci.yml
|
||||
rust-version = "1.83" # also change in ci.yaml
|
||||
authors = ["The Typst Project Developers"]
|
||||
edition = "2021"
|
||||
homepage = "https://typst.app"
|
||||
|
@ -83,7 +83,7 @@ vendor-openssl = ["typst-kit/vendor-openssl"]
|
||||
workspace = true
|
||||
|
||||
# The following metadata is used by `cargo-binstall`, and should be synchronized
|
||||
# with `.github/workflows/release.yml`.
|
||||
# with `.github/workflows/release.yaml`.
|
||||
[package.metadata.binstall]
|
||||
pkg-url = "{ repo }/releases/download/v{ version }/typst-{ target }{ archive-suffix }"
|
||||
bin-dir = "typst-{ target }/typst{ binary-ext }"
|
||||
|
@ -19,7 +19,7 @@ const TYPST_REPO: &str = "typst";
|
||||
|
||||
/// Determine the asset to download based on the target platform.
|
||||
///
|
||||
/// See `.github/workflows/release.yml` for the list of prebuilt assets.
|
||||
/// See `.github/workflows/release.yaml` for the list of prebuilt assets.
|
||||
macro_rules! determine_asset {
|
||||
() => {
|
||||
// For some platforms, only some targets are prebuilt in the release.
|
||||
|
@ -90,7 +90,7 @@ use crate::World;
|
||||
/// ```
|
||||
#[elem(Locatable, Synthesize, Show, ShowSet, LocalName)]
|
||||
pub struct BibliographyElem {
|
||||
/// One or multiple paths to or raw bytes for Hayagriva `.yml` and/or
|
||||
/// One or multiple paths to or raw bytes for Hayagriva `.yaml` and/or
|
||||
/// BibLaTeX `.bib` files.
|
||||
///
|
||||
/// This can be a:
|
||||
@ -385,7 +385,7 @@ fn decode_library(loaded: &Loaded) -> SourceResult<Library> {
|
||||
.within(loaded),
|
||||
_ => bail!(
|
||||
loaded.source.span,
|
||||
"unknown bibliography format (must be .yml/.yaml or .bib)"
|
||||
"unknown bibliography format (must be .yaml/.yml or .bib)"
|
||||
),
|
||||
}
|
||||
} else {
|
||||
|
@ -21,7 +21,7 @@ description: Changes in Typst 0.9.0
|
||||
- Added [`full`]($bibliography.full) argument to bibliography function to print
|
||||
the full bibliography even if not all works were cited
|
||||
- Bibliography entries can now contain Typst equations (wrapped in `[$..$]` just
|
||||
like in markup), this works both for `.yml` and `.bib` bibliographies
|
||||
like in markup), this works both for `.yaml` and `.bib` bibliographies
|
||||
- The hayagriva YAML format was improved. See its
|
||||
[changelog](https://github.com/typst/hayagriva/blob/main/CHANGELOG.md) for
|
||||
more details. **(Breaking change)**
|
||||
|
@ -35,7 +35,7 @@ macro_rules! load {
|
||||
|
||||
static GROUPS: LazyLock<Vec<GroupData>> = LazyLock::new(|| {
|
||||
let mut groups: Vec<GroupData> =
|
||||
yaml::from_str(load!("reference/groups.yml")).unwrap();
|
||||
yaml::from_str(load!("reference/groups.yaml")).unwrap();
|
||||
for group in &mut groups {
|
||||
if group.filter.is_empty() {
|
||||
group.filter = group
|
||||
|
Loading…
x
Reference in New Issue
Block a user