pub struct Config {
pub index: bool,
pub full: bool,
pub pages: bool,
pub site_url: Option<String>,
pub merge_into_html: bool,
pub discovery_links: bool,
pub sizes: bool,
pub preamble: Option<PathBuf>,
pub optional_files: Vec<Optional>,
}Fields§
§index: boolWrite llms.txt.
full: boolWrite llms-full.txt.
pages: boolWrite one .md file per chapter. When off, llms.txt links to .html.
site_url: Option<String>Prefix for links. Falls back to output.html.site-url.
merge_into_html: boolWhen the HTML renderer also runs, publish into its directory.
discovery_links: boolWhen merged, add llms.txt v2 alternate and describedby links to HTML pages.
sizes: boolEnd each llms.txt entry with its file’s size in tokens.
preamble: Option<PathBuf>A file under src/ whose text follows the header of llms.txt and llms-full.txt.
optional_files: Vec<Optional>Files listed under ## Optional in llms.txt. Not optional, which
mdBook reads under every output as a bool of its own.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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