<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Prose%2FEXPORTS</id>
	<title>Prose/EXPORTS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Prose%2FEXPORTS"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Prose/EXPORTS&amp;action=history"/>
	<updated>2026-12-06T00:28:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=Prose/EXPORTS&amp;diff=767&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Prose/EXPORTS&amp;diff=767&amp;oldid=prev"/>
		<updated>2026-11-29T20:31:25Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Export retention =&lt;br /&gt;
&lt;br /&gt;
Every book export writes the newest artifact bundle to its normal per-book folder. Before the write, the existing bundle is copied into that book&amp;#039;s &amp;lt;code&amp;gt;Archives\v&amp;amp;lt;N&amp;gt;\&amp;lt;/code&amp;gt; directory, where &amp;lt;code&amp;gt;&amp;amp;lt;N&amp;gt;&amp;lt;/code&amp;gt; is the version parsed from the artifact filename (or the node&amp;#039;s current version for metadata without a version in its name). This applies to DOCX, EPUB, PDF, TXT, Markdown, HTML, JSON, descriptions, synopses, keywords, and cover images.&lt;br /&gt;
&lt;br /&gt;
The live folder is staging for the newest export. Previous versions are never pruned by an export; the archive is permanent and belongs to that book. The current &amp;lt;code&amp;gt;cover.jpg&amp;lt;/code&amp;gt; remains in the live folder after archiving so exports with automatic cover generation disabled do not lose author art.&lt;br /&gt;
&lt;br /&gt;
= Where rendering lives =&lt;br /&gt;
&lt;br /&gt;
Rendering is implemented once, in the shared &amp;lt;strong&amp;gt;MindAttic.Export&amp;lt;/strong&amp;gt; library (github.com/mindattic/MindAttic.Export), consumed as a package from &amp;lt;code&amp;gt;lib/local-packages&amp;lt;/code&amp;gt;. Prose keeps everything that needs the database — the read gate, the beat walk and chapter spine, the glossary, &amp;lt;code&amp;gt;ExportPathResolver&amp;lt;/code&amp;gt;, the version bump, the press record and the &amp;lt;code&amp;gt;ArchivedBooks&amp;lt;/code&amp;gt; snapshot — and hands a renderer-neutral manuscript to the library&amp;#039;s docx, epub, pdf, txt and Markdown renderers. The archive pass above (&amp;lt;code&amp;gt;ExportCleanupService&amp;lt;/code&amp;gt;), path sanitising and &amp;lt;code&amp;gt;ProseInline&amp;lt;/code&amp;gt; are the library&amp;#039;s too.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;prose --export-node --slug X --preview &amp;amp;lt;dir&amp;gt;&amp;lt;/code&amp;gt; renders the book&amp;#039;s current version into a scratch folder, read-only and reproducibly (fixed EPUB id/timestamp and PDF metadata). The read gate still applies: an unread book previews its Markdown only. Use it to verify any renderer change against the whole corpus before pressing; the 2026-10-08 migration was verified this way on all 36 GLMZ books.&lt;br /&gt;
* &amp;lt;code&amp;gt;prose --export-book-report --slug X [--formats md,txt,docx,pdf]&amp;lt;/code&amp;gt; writes &amp;lt;code&amp;gt;{CODE}_BookReport.md&amp;lt;/code&amp;gt; as before and renders the same report as &amp;lt;code&amp;gt;.txt&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;.docx&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;.pdf&amp;lt;/code&amp;gt; beside it (Letter document style). Report files are overwritten in place, as the &amp;lt;code&amp;gt;.md&amp;lt;/code&amp;gt; always was.&lt;br /&gt;
&lt;br /&gt;
= Where writing lives =&lt;br /&gt;
&lt;br /&gt;
Every user-facing file Prose exports — reports, data dumps (&amp;lt;code&amp;gt;--sql-export&amp;lt;/code&amp;gt;, canon json/zip, KDP transfer, universe interchange, barks, personas), the legacy &amp;lt;code&amp;gt;BookExportService&amp;lt;/code&amp;gt; formats, the static HTML site, episode scripts, audiobook and episode audio, BookTok clips, DALL·E images, the KDP staging copy — is written through the library&amp;#039;s &amp;lt;code&amp;gt;ArtifactWriter&amp;lt;/code&amp;gt;, via &amp;lt;code&amp;gt;ProseArtifacts&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;src/Prose.Core/Services/ProseArtifacts.cs&amp;lt;/code&amp;gt;). Its &amp;lt;code&amp;gt;Overwrite&amp;lt;/code&amp;gt; preset reproduces what these sites always did: replace the file in place under its exact name, UTF-8 without a BOM (&amp;lt;code&amp;gt;OverwriteWithBom&amp;lt;/code&amp;gt; for the reader-QA report, which has always carried one). The write is atomic: a temp file beside the target is moved into place, so a failed or cancelled export leaves the previous file, never a partial one. Renderers that need a path (QuestPDF) render to that temp path; ffmpeg, which picks its muxer from the output extension, still renders into its scratch folder and the finished file is copied into place. Version archiving stays where it was (&amp;lt;code&amp;gt;ExportCleanupService&amp;lt;/code&amp;gt; before a bundle is written).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[Prose]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/Prose/blob/main/docs/EXPORTS.md Prose/docs/EXPORTS.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Prose]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>