tinymist-assets 0.14.16-rc1

Provides assets for tinymist.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! The assets for compiling tinymist.

/// If this file is not found, please refer to <https://enter-tainer.github.io/typst-preview/dev.html> to build the frontend.
#[cfg(feature = "typst-preview")]
pub const TYPST_PREVIEW_HTML: &str = include_str!("typst-preview.html");
/// A dummy HTML file to be used when the `typst-preview` feature is not
/// enabled.
#[cfg(not(feature = "typst-preview"))]
pub const TYPST_PREVIEW_HTML: &str = "<html><body>Typst Preview needs to be built with the `embed-html` feature to work!</body></html>";

/// If this file is not found, please runs `yarn extract:l10n:rs` to extract the
/// localization data.
#[cfg(feature = "l10n")]
pub const L10N_DATA: &str = include_str!("tinymist-rt.toml");
/// A dummy string to be used when the `l10n` feature is not enabled.
#[cfg(not(feature = "l10n"))]
pub const L10N_DATA: &str = "";