pub struct SiteInfo {
pub title: Option<String>,
pub base_url: Option<String>,
pub root: Option<String>,
pub source_dir: Option<String>,
pub files: Vec<String>,
}Expand description
Site-wide settings plugins may need, e.g. for building links.
Fields§
§title: Option<String>Site title.
base_url: Option<String>URL or path prefix the site is served from.
root: Option<String>Absolute path of the site’s directory (where lsdocs.toml is).
Resolve relative paths from plugin settings against this, not the
process’s working directory: builtin plugins run inside the host.
source_dir: Option<String>Absolute path of the source directory, which document source
paths are relative to (e.g. for parsers that read included files).
files: Vec<String>Every file under the source directory (documents and static assets
alike), relative to it with / separators, sorted. Lets transformers
check links to files that are not documents, such as images.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SiteInfo
impl<'de> Deserialize<'de> for SiteInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SiteInfo
Auto Trait Implementations§
impl Forget for SiteInfo
impl Freeze for SiteInfo
impl Move for SiteInfo
impl RefUnwindSafe for SiteInfo
impl Send for SiteInfo
impl Sync for SiteInfo
impl Unpin for SiteInfo
impl UnsafeUnpin for SiteInfo
impl UnwindSafe for SiteInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more