1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Site-derived root artifacts: `robots.txt`, `sitemap.xml`, `feed.xml`,
//! `rss.xml`. Each is a single file at the output root, derived purely
//! from the [`RenderedSite`] (Site state plus rendered markdown bodies),
//! and written by [`crate::output::OutputWriter`].
//!
//! Favicons land at the root too but are a different concept: they're
//! processed from an external image source, cached across rebuilds, and
//! produce multiple files plus an HTML fragment for templates. They live
//! in [`crate::favicon`], not here.
use *;
use crateRenderedSite;
use ;
use Robots;
use Sitemap;
/// A single file written at the site root, produced from the rendered
/// site. Implementations are zero-sized markers — the bytes are computed
/// on demand in [`render`](Self::render) rather than stored, so the
/// per-artifact work can run in parallel.
/// The full set of root artifacts produced by every build. Order is not
/// observable to the output (each artifact has a distinct filename), so
/// the slice can be parallel-iterated.
pub static ARTIFACTS: & = &;
/// Render every artifact in [`ARTIFACTS`] and return them as
/// `(filename, bytes)` pairs ready to extend the renderer's `root_files`.