ashlar-docs
A documentation library for agents. A folder of markdown is the library: folders are
categories (nested folders are subcategories), .md files are documents, served verbatim.
- Each folder may hold
_category.md: frontmattertitleanddescription, and a body that is the category's overview. It describes the folder and is not listed as a document. The root_category.mdsays what the library is and how to use it. - Every document starts with YAML frontmatter:
title,description(when to read it), and optionallyorder(an integer, lower first) andtags([a, b]). - [
embed] runs in a build script: it walks the folder and writes a(path, include_str!)table intoOUT_DIR, withrerun-if-changedon every folder and file, so adding a page needs no list to update. - [
Library::overlay_dir] adds a folder at run time (a user's own pages) on top: same path, the folder's page wins, and listings say which source each page came from. - Symbolic links, dotfiles and non-markdown files are skipped; run-time folders are capped in depth, file count and file size.
// build.rs
// lib.rs
include!; // pub static FILES: &[(&str, &str)]
let library = from_files;