This moves the code for copying the theme to the theme directory to the Theme type so that the code lives closer to the data definition. This also then reduces the public API surface of the Theme to give a little more flexibility for updating it in the future.
7 lines
405 B
Rust
7 lines
405 B
Rust
//! Theme dependencies for in-browser search. Not included in mdbook when
|
|
//! the "search" cargo feature is disabled.
|
|
|
|
pub(crate) static JS: &[u8] = include_bytes!("../../front-end/searcher/searcher.js");
|
|
pub(crate) static MARK_JS: &[u8] = include_bytes!("../../front-end/searcher/mark.min.js");
|
|
pub(crate) static ELASTICLUNR_JS: &[u8] =
|
|
include_bytes!("../../front-end/searcher/elasticlunr.min.js");
|