You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently hakyll seems to be only able to read metadata as YAML (as far as I understand the code in Provider/Metadata.hs)
I want to be able to have hakyll keep source code function documentation in metadata as key value pairs (functionname: functiondocstring) when compiling source code files.
big picture is
route to a pattern of haskell source files, compile with a custom Compiler
then build a map of all functions (docs) found in all files given by a pattern (similar to buildTags but not quite)
then write function references within markdown pages as standard yaml metadata list field
build a map of those function references
match them against the function docs by their identifiers (function names)
render the markdown page with content & a list of rendered functionname/functiondocstrings
So in order to do that (as the docstrings do not appear in single files and I cannot find another way to do the above) I was thinking of a custom Metadata parser (I can provide) that essentially parses haskell source code into an AST and extracts the function names and docstrings into a Metadata object.
How would that be possible? I am not hesitant to put this into a contrib module, as I fear this is a rather non-standard feature request.
However right now, I think I would need to fork hakyll in order to do that, and I would rather not.
suggestions on how to proceed?
kindly,
lennart
The text was updated successfully, but these errors were encountered:
currently hakyll seems to be only able to read metadata as YAML (as far as I understand the code in
Provider/Metadata.hs
)I want to be able to have hakyll keep source code function documentation in metadata as key value pairs (functionname: functiondocstring) when compiling source code files.
big picture is
Compiler
buildTags
but not quite)So in order to do that (as the docstrings do not appear in single files and I cannot find another way to do the above) I was thinking of a custom Metadata parser (I can provide) that essentially parses haskell source code into an AST and extracts the function names and docstrings into a
Metadata
object.How would that be possible? I am not hesitant to put this into a contrib module, as I fear this is a rather non-standard feature request.
However right now, I think I would need to fork hakyll in order to do that, and I would rather not.
suggestions on how to proceed?
kindly,
lennart
The text was updated successfully, but these errors were encountered: