I’ve been reading up on Hugo and I have tinkered with it in the past to get a prototype running related to my question, but as my understanding of Hugo grows, I feel like my original approach is needlessly complicated. I was hoping you could give me some advice on how to approach my challenge.
I work in software development and my company writes their specifications in Gherkin (typically known as .feature files). Not everything is written in Gherkin though: we also have Markdown files that contain information that do not fit the Gherkin format. My goal is to generate a static website that contains all of the documentation for a specific piece of software in an easily digestable way.
In my initial attempt, I converted the .feature file into Markdown, which included using shortcodes and default Markdown syntax. It worked, but learning about Hugo supporting JSON made me think of an alternative…
Instead of converting it to markdown directly, convert the .feature file to JSON, and only use markdown files to define - through frontmatter variables - which of the available .feature file should be displayed as part of the content. All of the logic to generate the actual page would be in a shortcode / partial / template of sorts.
The main benefit I see is a very clean separation of concerns: my own custom tooling only has to worry about the data and its structure, and I can leave all of the heavy lifting when it comes to rendering to the tool that is actually designed for it.
Does this sound like a solid idea? If so: what pointers would you give me on how to achieve my goal? Some general directions or inspirational examples would already help a ton. If not: can you explain why you would argue against it, and what alternative approach you would suggest?
Thanks in advance!