mirror of
https://git.freebsd.org/ports.git
synced 2025-05-05 16:07:38 -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
22 lines
1.2 KiB
Haskell
22 lines
1.2 KiB
Haskell
--- src/Network/Gitit/Config.hs.orig 2023-07-10 14:38:47 UTC
|
|
+++ src/Network/Gitit/Config.hs
|
|
@@ -130,7 +130,9 @@ extractConfig cp = do
|
|
cfWikiTitle <- get cp "DEFAULT" "wiki-title"
|
|
cfFeedDays <- get cp "DEFAULT" "feed-days"
|
|
cfFeedRefreshTime <- get cp "DEFAULT" "feed-refresh-time"
|
|
+ cfExports <- get cp "DEFAULT" "exports"
|
|
cfPDFExport <- get cp "DEFAULT" "pdf-export"
|
|
+ cfPDFEngine <- get cp "DEFAULT" "pdf-engine"
|
|
cfPandocUserData <- get cp "DEFAULT" "pandoc-user-data"
|
|
cfXssSanitize <- get cp "DEFAULT" "xss-sanitize"
|
|
cfRecentActivityDays <- get cp "DEFAULT" "recent-activity-days"
|
|
@@ -232,7 +234,9 @@ extractConfig cp = do
|
|
, wikiTitle = cfWikiTitle
|
|
, feedDays = readNumber "feed-days" cfFeedDays
|
|
, feedRefreshTime = readNumber "feed-refresh-time" cfFeedRefreshTime
|
|
+ , exports = cfExports
|
|
, pdfExport = cfPDFExport
|
|
+ , pdfEngine = cfPDFEngine
|
|
, pandocUserData = if null cfPandocUserData
|
|
then Nothing
|
|
else Just cfPandocUserData
|