Replies: 1 comment
-
Well, fumbling a bit more around with it, I ended up not understanding the abstraction layer so went directly to
With that, I could use it like this and solve my 3️⃣ 4️⃣ 5️⃣ but I'm also pretty sure I'm violating 1️⃣ big time:
I finally figured out the output path, but mostly via reading the code.
I figured posting what I've fumbled through might be helpful. I'm having a doubt the idea for 1️⃣ isn't working out. I haven't figured out if you can funnel one pipeline into another (which is what I as originally thinking was needed since I have those separate sources that have to be manipulated). Or, if I did, it would be to write the Markdown files to a temporary location, then do a second pipeline to gather everything up for the final merging and integration (I have a ton of cross-repo linking on my site). |
Beta Was this translation helpful? Give feedback.
-
I'm in the process of checking this out by doing the second most complicated site on my list of personal projects. Because, why do a simple one?
One of the common patterns I've been using with my sites is aggregating multiple Git repositories. In specific, each novel has their own self-contained repo such as this one and this. The individual chapters (
chapters/*.md
) are pulled in but I also create a project landing page that aggregates information about the chapter into one. All of those files are then combined with every one one, plus more data from Git repositories so I can do terrible things to them (which I'm sure I'll be asking later about) and then finally written out to a single directory.At initial blush, this appears to be a good candidate for a pipeline per novel. There are only fourteen of them in this case, but there is a fifteenth project that expands into 60+ project pages and associated chapters.
However, when porting the general workflow across, I put the C# code in a folder next to the retrieved repositories. Such as (paths are relative to root):
./src/generator/Program.cs
(and rest of Statiq)./src/build/repos/sand-and-blood/
./src/build/repos/sand-and-ash/
My reasoning is mainly organization since I try not to mix code with content and much of this is pulled in from outside the repo at build time.
When I tried to use it in the code, that is when things got strange.
When running, it says it is processing the files, but I'm not entirely sure where is going since it doesn't create an
output
folder and populate it with the files.The initial questions:
output
folder?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions