mirror of
https://git.freebsd.org/ports.git
synced 2025-05-16 09:11:50 -04:00
Gitit is a wiki program written in Haskell. It uses Happstack for the web server and pandoc for markup processing. Pages and uploaded files are stored in a git, darcs, or mercurial repository and may be modified either by using the VCS's command-line tools or through the wiki's web interface. By default, pandoc's extended version of markdown is used as a markup language, but reStructuredText, LaTeX, HTML, DocBook, or Emacs Org-mode markup can also be used. Gitit can be configured to display TeX math (using texmath) and highlighted source code (using highlighting-kate). Other features include * plugins: dynamically loaded page transformations written in Haskell (see "Network.Gitit.Interface") * categories * caching * Atom feeds (site-wide and per-page) * a library, "Network.Gitit", that makes it simple to include a gitit wiki in any happstack application WWW: https://github.com/jgm/gitit PR: 273260
14 lines
834 B
Haskell
14 lines
834 B
Haskell
--- src/Network/Gitit/Initialize.hs.orig 2001-09-09 01:46:40 UTC
|
|
+++ src/Network/Gitit/Initialize.hs
|
|
@@ -123,7 +123,10 @@ createDefaultPages :: Config -> IO ()
|
|
createDefaultPages conf = do
|
|
let fs = filestoreFromConfig conf
|
|
pt = defaultPageType conf
|
|
- toPandoc = readMarkdown def{ readerExtensions = enableExtension Ext_smart (readerExtensions def) }
|
|
+ rOpts = def{ readerExtensions = getDefaultExtensions "markdown"
|
|
+ <> extensionsFromList [Ext_smart]
|
|
+ <> readerExtensions def }
|
|
+ toPandoc = readMarkdown rOpts
|
|
defOpts = def{ writerExtensions = if showLHSBirdTracks conf
|
|
then enableExtension
|
|
Ext_literate_haskell
|