Using gitit to generate static non-wiki web site

191 views
Skip to first unread message

LUK ShunTim

unread,
Apr 7, 2013, 3:01:05 AM4/7/13
to gitit-discuss
Hi,

I have a directory tree of markdown files (not necessarily wiki source
files) and would like to generate a static web site out of it. What
would be the best workflow to do such a thing? Or gitit is not really
the best tool? Or maybe just use pandoc?

Regards,
ST
--

luksh...@gmail.com

unread,
Apr 7, 2013, 7:10:47 AM4/7/13
to gitit-discuss

Gwern Branwen

unread,
Apr 7, 2013, 1:47:17 PM4/7/13
to Gitit

On Sun, Apr 7, 2013 at 3:01 AM, LUK ShunTim <shunt...@polyu.edu.hk> wrote:

I have a directory tree of markdown files (not necessarily wiki source files) and would like to generate a static web site out of it. What would be the best workflow to do such a thing?

Have you looked at Hakyll?

--
gwern
http://www.gwern.net

John MacFarlane

unread,
Apr 7, 2013, 1:47:33 PM4/7/13
to gitit-...@googlegroups.com
It would be a nice add-on to gitit to be able to generate
a static site from it, but the code would have to be written.

yst is a static site generator I wrote that uses pandoc.

But for most sites, I just use pandoc, pandoc templates, and
a Makefile.

+++ luksh...@gmail.com [Apr 07 13 19:10 ]:
> --
> You received this message because you are subscribed to the Google Groups "gitit-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gitit-discus...@googlegroups.com.
> To post to this group, send email to gitit-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/gitit-discuss?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Caleb McDaniel

unread,
Apr 8, 2013, 8:22:31 AM4/8/13
to gitit-...@googlegroups.com

+1 for pandoc. I use pandoc and a shell script to generate my site:

http://wcm1.web.rice.edu/colophon.html

Kẏra

unread,
Jul 1, 2013, 2:39:39 AM7/1/13
to gitit-...@googlegroups.com, shunt...@polyu.edu.hk
I'd love to see Gitit enable more general CMS functionality, like serving static pages and only having a subset of the site be a wiki. A moderated edits feature to allow edit suggestions that require approval would be really cool as well. Wordpress is an example of a general CMS/blog engine that would be great to have similar functionality from Gitit since Wordpress also has a revision history of all pages.

John Lenz

unread,
Jul 1, 2013, 2:41:24 PM7/1/13
to Kẏra, gitit-...@googlegroups.com, shunt...@polyu.edu.hk
On Mon Jul 1 01:39 -0500 2013, Kẏra <kx...@riseup.net> wrote:
> I'd love to see Gitit enable more general CMS functionality, like serving
> static pages and only having a subset of the site be a wiki. A moderated
> edits <https://github.com/jgm/gitit/issues/374> feature to allow edit
> suggestions that require approval would be really cool as well. Wordpress
> is an example of a general CMS/blog engine that would be great to have
> similar functionality from Gitit since Wordpress also has a revision
> history of all pages.

I think most of these features are either possible now or possible with a little
coding with gitit2: https://github.com/jgm/gitit2 since gitit2 is just a yesod component
so all the other yesod features can come into play and you can easily create
more complex websites with a wiki component.

>
> On Sunday, April 7, 2013 3:01:05 AM UTC-4, LUK ShunTim wrote:
> >
> > Hi,
> >
> > I have a directory tree of markdown files (not necessarily wiki source
> > files) and would like to generate a static web site out of it. What
> > would be the best workflow to do such a thing? Or gitit is not really
> > the best tool? Or maybe just use pandoc?

One possibly more complex option is something built on

http://hackage.haskell.org/package/wai-static-pages

and some of the code from

http://www.yesodweb.com/book/wiki-chat-example

> >
> > Regards,
> > ST
> > --
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "gitit-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gitit-discus...@googlegroups.com.
> To post to this group, send email to gitit-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/gitit-discuss.
Reply all
Reply to author
Forward
0 new messages