From 79a3fffe497917d95d62b748a212e56028231d50 Mon Sep 17 00:00:00 2001 From: Shunsuke Kimura Date: Sat, 3 May 2025 08:29:17 +0000 Subject: [PATCH] Add: bibliography sources Signed-off-by: Shunsuke Kimura --- crates/typst-library/src/model/bibliography.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/crates/typst-library/src/model/bibliography.rs b/crates/typst-library/src/model/bibliography.rs index a0db6fd64a..63152bea67 100644 --- a/crates/typst-library/src/model/bibliography.rs +++ b/crates/typst-library/src/model/bibliography.rs @@ -81,14 +81,13 @@ 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 - /// BibLaTeX `.bib` files. + /// 1つまたは複数のHayagriva`.yml`やBibLaTeX`.bib`ファイルへのパスや生バイト。 /// - /// This can be a: - /// - A path string to load a bibliography file from the given path. For - /// more details about paths, see the [Paths section]($syntax/#paths). - /// - Raw bytes from which the bibliography should be decoded. - /// - An array where each item is one the above. + /// 以下の形式で指定できます。 + /// - 読み込む参考文献ファイルのパス。 + /// パスに関する詳細は[パスの章]($syntax/#paths)をご参照ください。 + /// - 参考文献情報がデコードできる生バイト。 + /// - 上記を要素とする配列。 #[required] #[parse( let sources = args.expect("sources")?;