mhansen / profilerpedia

Catalog of profilers, profile data formats, data format converters, and profile analysis UIs.
https://profilerpedia.markhansen.co.nz/
29 stars 2 forks source link

Move code generation out of Jinja2 and into Hugo #4

Closed mhansen closed 2 years ago

mhansen commented 2 years ago

It's not my fave having two code generators. Most of this could probably be done in Hugo driven off yaml/json front-matter

mhansen commented 2 years ago

Started on this for the profilers section, no more jinja2 for profilers.

Todo:

mhansen commented 2 years ago

Actually this is a huge pain in the butt. Hugo doesn't really let you say something like 'profiler layout extends docs layout', you have to copy the whole baseof, single, list, content.html pages. Maybe we're better off generating the HTML with Jinja2. Feels weird.

mhansen commented 2 years ago

I think I can solve this with symlinks or replacing the _default layouts.

mhansen commented 2 years ago

Fixed in https://github.com/mhansen/profilerpedia/commit/9f95b9272e6b334171cd13ca08a2c326dca49346