-
Notifications
You must be signed in to change notification settings - Fork 11
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
How should we generate metrics-catalog.html #60
Comments
I’m agnostic concerning the choice of generation toolchain. @rajkrishnamurthy what benefits do you see in ERB vs the existing redcarpet/nokogiri chain? Can you provide a specific example re your comment that “The current implementation uses custom html generation based on our own tag parsing. ERB provides an alternative option, and possibly cleaner” ? |
@pritikin @apannetrat In summary;
PS: traveling this week and delayed in my responses. |
I don't have a strong preference between the two approaches. I see pros and cons with both. A couple of points:
|
I propose we close this thread. @rajkrishnamurthy provided a good suggestion but I don't see this as a blocking issue currently. |
The current model is to combine data/front-matter.md and data/primary-dataset.yml using the tools/metrics_validator.rb. The ruby script leverages ‘redcarpet’ to process the markdown and nokogiri to manipulate the html document in memory. The final step is to write the doc to a file.
@rajkrishnamurthy has submitted a PR to discuss an alternate approach. The proposed alternative is to combine a data/metrics-catalog.template with primary-dataset.yml using ERB, “a templating system” often used when generating HTML.
(Commit of the generated html is handled by .github/workflows/actions.yml
It felt pre-mature to discuss in the PR so I created this issue thread to capture my thoughts.
Tagging @apannetrat as well as he wrote the original.
The text was updated successfully, but these errors were encountered: