summaryrefslogtreecommitdiff
path: root/elenq/documentation.scm
diff options
context:
space:
mode:
Diffstat (limited to 'elenq/documentation.scm')
-rw-r--r--elenq/documentation.scm119
1 files changed, 105 insertions, 14 deletions
diff --git a/elenq/documentation.scm b/elenq/documentation.scm
index 3ce728f..f255fe9 100644
--- a/elenq/documentation.scm
+++ b/elenq/documentation.scm
@@ -1,31 +1,122 @@
(define-module (elenq documentation)
+ #:use-module (elenq graphics)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system copy)
#:use-module (guix gexp)
#:use-module (guix git-download)
- #:use-module (guix packages))
+ #:use-module (guix packages)
+ #:use-module (gnu packages haskell-xyz))
-(define-public pandoc-templates
- (let ((revision "1")
- (commit "39ad0e6cf9ed895b88041f8babe59506178a6fcb"))
+(define-public elenq-pandoc-templates
+ (let ((revision "4")
+ (commit "4d65ed1bf92e46d04565b9cc1188db5e57f20f37"))
(package
- (name "pandoc-templates")
+ (name "elenq-pandoc-templates")
(version (git-version "0.0.0" revision commit))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "git://git.elenq.tech/pandoc-templates")
- (commit commit)))
- (sha256
- (base32 "1z2p1dxlgivdgw79f74n2ax84xr8g0q62fsxpwag4dfdmik7131b"))))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "git://git.elenq.tech/pandoc-templates")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "12260xxs293g527vnpy7vs634vmd59irsy005f15320rxjbrblq7"))))
(build-system copy-build-system)
- (arguments (list #:install-plan ''(("pandoc" "/share/pandoc"))))
+ (inputs (list elenq-logos))
+ (arguments
+ (list
+ #:install-plan ''(("pandoc" "/share/pandoc"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'install 'set-url
+ (lambda _
+ (for-each
+ (lambda (f)
+ (substitute* f
+ (("\\$elenq-directory\\$")
+ (string-append #$elenq-logos "/share/elenq/"))))
+ (list "pandoc/templates/elenq-article.latex"
+ "pandoc/templates/elenq-book.latex")))))))
(native-search-paths
(list (search-path-specification
- (variable "XDG_DATA_HOME")
+ (variable "XDG_DATA_DIRS") ;; Not supported by pandoc _yet_
(files '("share")))))
(home-page "http://git.elenq.tech/pandoc-templates")
(synopsis "Pandoc templates for ElenQ Technology")
(description "A set of well configured Pandoc templates for ElenQ
Technology's documents.")
(license license:asl2.0))))
+
+
+(define-public elenqdoc
+ (let ((revision "1")
+ (commit "1cb21742a69f681e6452a7ddd0adc9543aefd72a"))
+ (package
+ (name "elenqdoc")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "git://git.elenq.tech/elenqdoc")
+ (commit commit)))
+ (sha256
+ (base32 "0fdxskf3h14vdr9w5pi18svrz40p9qkbwcn4c4rp1b1azpbfsa6s"))))
+ (build-system copy-build-system)
+ (inputs (list elenq-pandoc-templates))
+ (propagated-inputs (list pandoc))
+ (arguments
+ (list
+ #:install-plan ''(("elenqdoc" "/bin/elenqdoc"))
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'install 'wrap
+ (lambda _
+ (wrap-program (string-append #$output "/bin/elenqdoc")
+ `("ELENQDOC_DATADIR" =
+ (,(string-append #$elenq-pandoc-templates
+ "/share/pandoc/")))))))))
+ (home-page "http://git.elenq.tech/")
+ (synopsis "Simplified pandoc wrapper for ElenQ documents")
+ (description "Provides `elenqdoc` command.")
+ (license license:asl2.0))))
+
+(define-public tiddlywiki5-bob
+ (package
+ (name "tiddlywiki5-bob")
+ (version "1.7.6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/OokTech/TW5-Bob")
+ (commit version)))
+ (sha256
+ (base32 "0s8ssmxfc5ydn52xh8l1s8qyczy0vk6nrnwspc4in8f336vm8y4c"))))
+ (build-system copy-build-system)
+ (arguments
+ (list
+ #:install-plan ''(("./" "tiddlywiki/plugins/OokTech/Bob"))))
+ (home-page "https://github.com/OokTech/TW5-Bob")
+ (synopsis "A plugin that makes tiddlywiki a multi-user wiki on node")
+ (description "What does it do?
+@itemize
+@item Multi-User support for using/editing the same wiki(s) simultaneously
+@item Multi-Wiki support - run it once and serve multiple wikis
+@item Create and configure new wikis from inside the root wiki
+@item Export single file wikis in a variety of ways
+@item Two-way real-time syncing between the browser and file system
+@item All configuration can be done from inside the wiki
+@item Serve external files (like images) so you can include them in your wikis
+@item Allows you to run shell scripts and commands from inside the wiki
+@item Can be used as a plugin library to make plugins available to other wikis
+ (requires the TWederBob plugin on the other wikis to connect)
+@item Inter-server federation. Different Bob servers can communicate to share
+ tiddlers and as chat servers/relays
+@item HTTP API for interacting with the server
+@end itemize")
+ (native-search-paths
+ (list (search-path-specification
+ (variable "TIDDLYWIKI_PLUGIN_PATH")
+ (files '("tiddlywiki/plugins")))))
+ (license license:bsd-3)))