Discussions
CICD of subpages in documentation
6 months ago by null
Hi, 😀 I am setting up a pipeline with github actions of my documentation and there are some subpages.
In order to do that I am generating the YAML blocks that need to be at the top of the markdown files and writing them into the files. All far all good.
The problems start when I want to have a subpage because they way to indicate this is by adding a new key with the parent document ID. I want to have a generic solution that doesn't involve hardcoding IDs. What I was planning to do is first upload the parent documents, then get their IDs and use those for the second round of uploads, where I would upload all of the children documents that reference their parent.
Is there any other easier solution? TY