summaryrefslogtreecommitdiffstats
path: root/org-zk.cabal
blob: e08d51406c5c394cc86031ce20a5dbedf6f70498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
cabal-version:      2.4
name:               org-zk
version:            0.2.0.0
license:            GPL-3.0-only
license-file:       LICENSE
copyright:          (c) 2021-2023 Yann Herklotz
maintainer:         git@yannherklotz.com
author:             Yann Herklotz
homepage:           https://git.sr.ht/~ymherklotz/zk-visual
category:           Web

-- A short (one-line) description of the package.
synopsis: Translate Org Zettelkasten into markdown for a static site generator.

-- A longer description of the package.
description: Exports an Org Zettelkasten to markdown files which can then be
             passed to a static site generator.  It also supports gathering
             backlinks for each note as well as forward links, in addition to
             supporting citations of a bibliography.

             It uses Pandoc heavily to implement these features, and implements
             a custom parser and renderer to split up the Zettel appropriately.

-- A URL where users can report bugs.
bug-reports: https://lists.sr.ht/~ymherklotz/public-inbox

extra-source-files: README.md

data-files:
    data/*.template

executable org-zk
  build-depends:
      base
    , data-default
    , pandoc
    , pandoc-types
    , relude
    , text
    , directory
    , filepath
    , logging

  mixins:
    base hiding (Prelude),
    relude (Relude as Prelude, Relude.Container.One),
    relude

  ghc-options:
    -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns

  default-extensions:
    LambdaCase
    OverloadedStrings

  main-is:            Main.hs
  other-modules:      Zettel
                    , Zettel.Bibliography
                    , Zettel.Common
                    , Zettel.Links
                    , Zettel.Math
                    , Zettel.Parse
                    , Zettel.Render
                    , Zettel.Transclusion
                    , Zettel.Types
                    , Paths_org_zk
  hs-source-dirs:     src
  default-language:   Haskell2010