jbake icon indicating copy to clipboard operation
jbake copied to clipboard

(Metadata) Read some documents metadata from Git repo

Open OndraZizka opened this issue 6 years ago • 2 comments

JBake is probably often used on top of a Git (or other SCM) repo.

This can be leveraged to acquire these information automatically:

  • document creation date
  • document last update date
  • document author(s)
  • related documents (those changed in the same commit)
  • perhaps commit comments could be used for something too

This would be quite useful. I dare to say, better than getting the creation date from the filesystem, where it's almost impossible to keep unchanged in the long term.

How do you like the idea? It shouldn't be too hard, there are lightweight Java libs for Git metadata reading. Perhaps something for 3.x?

OndraZizka avatar Jul 25 '18 01:07 OndraZizka

I like that idea. It should be relative easy todo. I like the groovy library grgit it uses jgit under the hood. Works like a charm. We use it in the gradle build to consume the example projects to bundle them for the distribution.

ancho avatar Jul 25 '18 06:07 ancho

Yeah I like that too, could be a perfect candidate for an plugin/extension.

jonbullock avatar Aug 01 '18 18:08 jonbullock