Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manifest of manifests #21

Open
knennigtri opened this issue Jun 25, 2021 · 2 comments
Open

manifest of manifests #21

knennigtri opened this issue Jun 25, 2021 · 2 comments

Comments

@knennigtri
Copy link
Owner

A manifest should also be able to take in other manifests and rerun the process. Here's how it would work:
Input:

  • manifest1.json
  • manifest.json
    Output:
  • final.md

The tool would recognize it's a manifest file and recursively call the merge.js script.
merge-js produces a moduleFinal.md file that is now taken in as the inputFile.

@knennigtri
Copy link
Owner Author

input:
 manifest1.md
 manifest2.md
output:
 name: final.md

Either:

  1. ALL options are ignored.
  2. Options are applied AFTER input manifests have produced an output file

@eengelking
Copy link

👍 This would be a useful feature.

I'm running into this exact problem now where I have multiple manifests to import different Markdown files in different ways depending on the use case. As a result, I have to manually update multiple manifest files each time something changes.

Being able to have the manifest data downstream to roll into a primary manifest upstream would be ideal. I was thinking of using an include option or something to indicate that these files add additional functionality to the upstream manifest.

Example upstream manifest:

input:
  file01.md: ""
  file02.md: ""
output:
  name: merged.md
replaceInclude:
  example01.md
  example02.md
  example03.md
replace:
  <!--{exampleReplace01}-->: Example One
  <!--{exampleReplace02}--: Example Two

Example downstream manifest example01.md:

replace:
  <!--{exampleReplace03}-->: Example Three
  <!--{exampleReplace04}--: Example Four

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants