mdbook-llms 0.1.1

mdBook 0.5 renderer that generates llms.txt, llms-full.txt and per-page Markdown
Documentation
1
2
3
4
5
6
7
8
9
10
//! An mdBook renderer for the llms.txt convention. mdBook pipes a JSON
//! `RenderContext` to stdin, and everything else lives in the library.

use anyhow::Result;
use mdbook_renderer::RenderContext;

fn main() -> Result<()> {
    let ctx = RenderContext::from_json(std::io::stdin())?;
    mdbook_llms::run(&ctx)
}