Stream: IG creation
Topic: IG publisher copying md files
John Moehrke (Jun 04 2021 at 22:31):
Why is the IG builder copying the source .md files into the output directory? Putting these .md files onto a webserver, when that webserver is configured to automatically render .md as .html is causing some unexpected issues. I don't think they are really bad, but not expected. Previous versions of IG Builder did not copy these source .md files.
Grahame Grieve (Jun 04 2021 at 22:44):
I don't know. why do you think it's doing that?
John Moehrke (Jun 04 2021 at 23:00):
I look in the output directory... and there are .md files
John Moehrke (Jun 04 2021 at 23:03):
hmmm, didn't do that with my non-IHE
John Moehrke (Jun 04 2021 at 23:04):
so.. might be part of the IHE ? @Jose Costa Teixeira ??
Jose Costa Teixeira (Jun 04 2021 at 23:07):
The IHE template does not have any scripting. I don't know why it'd be doing that. What md files are there?
Grahame Grieve (Jun 04 2021 at 23:13):
how to reproduce?
John Moehrke (Jun 04 2021 at 23:17):
all of my source .md files are in the output.
John Moehrke (Jun 04 2021 at 23:17):
I deleted all directories and did a fresh _genonce.bat
John Moehrke (Jun 04 2021 at 23:17):
still happened
John Moehrke (Jun 04 2021 at 23:17):
switching to the fhir template and running again
Jose Costa Teixeira (Jun 04 2021 at 23:17):
do you have the .md files inside your input/_data directory?
John Moehrke (Jun 04 2021 at 23:18):
template change did not change
Jose Costa Teixeira (Jun 04 2021 at 23:19):
what about in your temp/_data folder?
John Moehrke (Jun 04 2021 at 23:19):
the other change from my last publication is that I am now using sushi-config
Jose Costa Teixeira (Jun 04 2021 at 23:19):
are they there?
John Moehrke (Jun 04 2021 at 23:19):
there is no temp/_data
John Moehrke (Jun 04 2021 at 23:20):
I do have plantuml files
Jose Costa Teixeira (Jun 04 2021 at 23:20):
sorry, temp/pages/_data
John Moehrke (Jun 04 2021 at 23:20):
in that directory is a bunch of json files
John Moehrke (Jun 04 2021 at 23:21):
no md there
Jose Costa Teixeira (Jun 04 2021 at 23:28):
whoa, there's a lot of md files
John Moehrke (Jun 04 2021 at 23:29):
in MHD? Yup, a very big IG.
Jose Costa Teixeira (Jun 04 2021 at 23:32):
I'd say the total count of .md files in that folder should be approx. 0,
Jose Costa Teixeira (Jun 04 2021 at 23:42):
i tried a few things,
- remove some sushi
- remove all sushi
- change some ig parameters
Jose Costa Teixeira (Jun 04 2021 at 23:42):
I don't know why the md files are showing there
Jose Costa Teixeira (Jun 04 2021 at 23:43):
The next thing I can try is switch it off and on
Jose Costa Teixeira (Jun 04 2021 at 23:43):
(for a few hours)
Jose Costa Teixeira (Jun 04 2021 at 23:43):
i'll try that :)
John Moehrke (Jun 04 2021 at 23:43):
no hurry. I can handle the issue for now
John Moehrke (Jun 05 2021 at 00:03):
suspect this is a sushi-config.yaml - I have switched from fsh-only to relying on sushi to create the IG json
Eric Haas (Jun 05 2021 at 00:07):
I mentioned this same issue a while back ( since I am always light years ahead :-)) and Lloyd dismissed it since It does not affect the ig-publisher output. It does mess up github pages for example when the md file pollute the output. Anyway, I use a bash srcipt to post-process the output and remove them before publishing to github pages. I will dig up the chat ...
Eric Haas (Jun 05 2021 at 00:10):
here is that chat and I think I narrowed down the culprit to those nasty templates ...
https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/markdown.20files.20showing.20up.20output.20folder
John Moehrke (Jun 05 2021 at 00:32):
Im in good company.Always excited to catch up to Eric
John Moehrke (Jun 05 2021 at 00:34):
the sushi-config.yaml creating the IG json adds ALL of these parameters
"parameter": [
{
"code": "copyrightyear",
"value": "2020+"
},
{
"code": "releaselabel",
"value": "normative"
},
{
"code": "path-resource",
"value": "input/resources"
},
{
"code": "path-resource",
"value": "fsh-generated/resources"
},
{
"code": "path-resource",
"value": "input/examples"
},
{
"code": "path-pages",
"value": "input/pagecontent"
},
{
"code": "path-pages",
"value": "fsh-generated/includes"
},
{
"code": "active-tables",
"value": "false"
},
{
"code": "apply-contact",
"value": "true"
},
{
"code": "apply-jurisdiction",
"value": "true"
},
{
"code": "apply-publisher",
"value": "true"
},
{
"code": "apply-version",
"value": "true"
},
{
"code": "show-inherited-invariants",
"value": "false"
},
{
"code": "usage-stats-opt-out",
"value": "true"
},
{
"code": "autoload-resources",
"value": "true"
},
{
"code": "shownav",
"value": "true"
}
]
}
Grahame Grieve (Jun 05 2021 at 03:00):
it's certainly something to do with the way your IG is set up and the template - it's loading the md files as native binary content somehow, because it's told to. I haven't figured out why yet
Last updated: Apr 12 2022 at 19:14 UTC