The book I was working on earlier, when I was asking about Leanpub, went to Pragmatic Programmers instead, so I had to move over to their system. The good news is that it got done and looks good.
Now I’m working on another and again targeting Leanpub. Salient points are that Leanpub has two “manifest” files, Sample.txt and Book.txt, which list the file names (chapters, whatever) to be included in the sample book and the full book. It expects to find those files in some standard folder.
The files themselves are expected to be in Markdown form.
The question is how to use Scrivener with this as the target.
One Big File
One way is simply to compile the whole book (or the sample, using selection) and let Leanpub generate from that. I think that will work. However, it kind of breaks the Leanpub model, which is built around multiple chapter files. Maybe this is OK.
I’ve got compile working well enough to convince myself that I can write in Scrivener, probably using some Markdown syntax like italic and such, and then generate a book that Leanpub might recognize. I’d have to test that: I could imagine that they have some magic going on between files that wouldn’t be there for one big file, but from my reading I think it’ll work. But it’s one big file, and that’s a bit naff.
Lots of Little Files
Ideally, there’d be a way to tell Compile to be like Export, and produce a file structure containing each chapter, all markdownified like the compiler does. I guess there is no such thing, though I’d like to be wrong.
And Export will export raw text, but then I’d have to write in pure Markdown, not using Scrivener to insert any titles and such, which it now does but I could live without. However, Scrivener also assembles all my sub-documents (sections, whatever) into a single document, and I think I’d lose that with export, instead getting lots and lots of tiny files.
Advise Me
So … am I missing some facility that might serve this need? Or have you some advice on which way you’d go, and how you might go? If so, I’d love to hear.
Meanwhile, I’m searching the web for Leanpub-Scrivener users, and keeping a separate section in the book about how I did it …
Thanks!