Open magicDGS opened 7 years ago
@magicDGS In general, I'd prefer to find a way to have Barclay clients do that kind of thing externally, via the templates, rather than baking more knowledge of the structure of the output into Barclay. For instance, Barclay has no knowledge of super-category at all - thats injected by the client (gatk and picard) doclet subclasses, and then extracted by their respective templates. There is a test in Barclay that simulates it, but its just a test - the Barclay docgen code itself doesn't know anything about it.
I haven't experimented much with this so I'm not sure what the requirements are, but the template that you provide doesn't have to be html. One possibility for you for the short term would be to use an xml template, which you could then post-process to fan out the various index files. I'd be curious to see how far we could get with that kind of approach.
Thanks for your answer. My goal is much simpler, because I'm using markdown templates with a frontmatter for jekyll. My plan for the multi-index is to create a data file for jekyll (yml) with the supercategory structure and manage that file with jekyll without depending on Barclay. This is better in my case than an xml file, but I would try this in other projects without jekyll for sure.
What I think is that it will be nice to be able to:
I'm in the situation where I need an different index for each component/super-category (e.g., one index for the tools and one index for the utilities). It looks that Barclay only have support for (correct me if I'm wrong):
@DocumentedFeature
, and thus could use some macro to switch the format for each component.It will be useful to be able to parse the i general index template (or to have several index templates) to have an index for each super-category. If there is any way to do this in the current implementation, I'm sorry to rise this issue and I would appreciate if it could be documented in the Wiki.
Thank you very much in advance.