Sridhar Ratnakumar
0bd444c4ca
Expose IsMarkup
2019-12-29 12:18:28 -05:00
Sridhar Ratnakumar
d3d86746b8
Derive functor for Document
...
This is needed so the user can use Some on the repr field
2019-12-29 12:17:38 -05:00
Sridhar Ratnakumar
d92388a3e5
Eliminate Some/Proxy, reverting to simplest API
...
Some and Proxy can be something the user can use on their code to
multiplex between documents using disparate markup types.
2019-12-29 12:16:51 -05:00
Sridhar Ratnakumar
4f42517abb
Remove Markup
type in favour of Some
and Proxy
...
Drop dependent-sum as well.
2019-12-28 20:59:14 -05:00
Sridhar Ratnakumar
7def29e4f1
Note about nixpkgs
2019-12-28 20:56:35 -05:00
Sridhar Ratnakumar
9ef7cd159e
Add dhall as a depedency; advance shake to 0.18.4
2019-12-28 20:29:28 -05:00
Sridhar Ratnakumar
f638bb13b9
Expose ribInputDir and ribOutputDir
2019-12-28 20:15:24 -05:00
Sridhar Ratnakumar
54e0b66789
Fix #63 : create intermediate directories
2019-12-28 12:06:32 -05:00
Sridhar Ratnakumar
5b699a1851
Update README example
2019-12-20 13:45:16 -05:00
Sridhar Ratnakumar
eb0134a4d7
Indicate unreleased
2019-12-19 12:12:48 -05:00
Sridhar Ratnakumar
c43b422328
Multi-parser support ( #58 )
...
* WIP, try to move away from type class
Use a Map of patterns to parser type, so as to select the parser
explicitly without using type applications (which unifies it for all
files)
* Use dependent-sum
* Rename to IsMarkup
* Use Data.Some for polymorphic lists
* Refactor out withSomeMarkupDoc
* Move MarkupDoc to Markup module
* Rename
* ChangeLog and import cleanup
* Update README for this PR
2019-12-14 19:42:39 -05:00
Pablo
ef198cc292
Add version constraint on path
library
2019-12-14 16:00:08 -05:00
Sridhar Ratnakumar
c8f92833f2
Release 0.5.0.0
2019-12-01 19:13:56 -05:00
Sridhar Ratnakumar
a59175a46f
Don't expose Rib.Server
...
Not used anymore.
2019-12-01 19:11:00 -05:00
Sridhar Ratnakumar
ad25e41416
Refactor ExceptT
2019-11-29 16:09:32 -05:00
Sridhar Ratnakumar
1454481dc0
Add CI configuration ( #55 )
2019-11-27 12:42:43 -05:00
Sridhar Ratnakumar
f8c1efb8c1
Cleanup TODOs
2019-11-27 10:32:18 -05:00
Sridhar Ratnakumar
efc80f5157
Random refactoring
2019-11-27 10:05:59 -05:00
Sridhar Ratnakumar
ab1b2408f8
Sync README example
2019-11-27 09:03:08 -05:00
Sridhar Ratnakumar
6f7e6e71b6
Update README example
2019-11-26 22:12:35 -05:00
Sridhar Ratnakumar
0a0f9b3b8c
Add getters for Document type
...
Hide the fields
2019-11-26 22:09:57 -05:00
Sridhar Ratnakumar
4d9ffe2c34
Handle parsing errors in Pandoc metadata
2019-11-26 21:58:43 -05:00
Sridhar Ratnakumar
a1909b0d54
Remove unused code from Pandoc module
2019-11-26 21:36:16 -05:00
Sridhar Ratnakumar
9857f240dd
Remove MarkupError type familly
...
not needed
2019-11-26 21:26:58 -05:00
Sridhar Ratnakumar
acaadc6d3a
Add ToC to README
2019-11-26 18:13:47 -05:00
Sridhar Ratnakumar
4bb9f22817
Merge pull request #51 from srid/remove-most-error
...
API improvements
2019-11-26 18:08:39 -05:00
Sridhar Ratnakumar
22c9642bd9
Cleanup and refactor
2019-11-26 17:41:01 -05:00
Sridhar Ratnakumar
65f6c6d67e
Add support for automatic metadata parsing
2019-11-26 17:05:06 -05:00
Sridhar Ratnakumar
0cd7a5949b
Keep document type in Rib.Document
2019-11-26 16:18:30 -05:00
Sridhar Ratnakumar
94dcc31991
Detach Document type from Markup type class
...
Separation of concerns! Makes it simpler reason about what's happening.
2019-11-26 16:13:04 -05:00
Sridhar Ratnakumar
ef83dac0f1
Revert "Remove renderDoc from type class"
...
This reverts commit 7f9a25e0d6
.
2019-11-26 15:25:41 -05:00
Sridhar Ratnakumar
5fe7ea3c6b
Cosmetic fixes
2019-11-26 15:25:36 -05:00
Sridhar Ratnakumar
eb6898f711
Remove getDocumentUrl and unexpose Markup
2019-11-26 15:13:56 -05:00
Sridhar Ratnakumar
ac07ae7ffe
Have Shake report errors with filename
2019-11-26 15:03:56 -05:00
Sridhar Ratnakumar
f8014e92f0
Remove error from mkDoc (Pandoc)
2019-11-26 14:50:29 -05:00
Sridhar Ratnakumar
7f9a25e0d6
Remove renderDoc from type class
2019-11-26 14:25:45 -05:00
Sridhar Ratnakumar
3d24954226
Add _document_html; renderDoc returns Either
2019-11-26 14:21:37 -05:00
Sridhar Ratnakumar
352fdf9d0a
Merge pull request #50 from srid/pandoc-error-improvements
...
Minor error type refactors
2019-11-26 13:52:08 -05:00
Sridhar Ratnakumar
a11ca939dd
Use more denotative type variable
2019-11-26 13:51:35 -05:00
Sridhar Ratnakumar
ff60b350e0
Add ipynb
2019-11-25 22:19:32 -05:00
Sridhar Ratnakumar
6c6439c87c
Stop using MonadThrow
2019-11-25 22:14:04 -05:00
Sridhar Ratnakumar
45d29d544e
Fix Pandoc.getFirstImg
2019-11-24 15:43:14 -05:00
Sridhar Ratnakumar
2359570f3d
Expose manual render function
2019-11-24 15:36:59 -05:00
Sridhar Ratnakumar
6da1ba0eb0
Fix invalid metadata truncating HTML
...
writeFile will truncate the file before beginning to write, but if the
Lucid monad errors out the file will remain truncated. Use strict
function application to fix this.
2019-11-24 14:30:16 -05:00
Sridhar Ratnakumar
55eab03356
Gracefully handle errors, without dying.
...
Fixes #40
2019-11-24 13:48:21 -05:00
Sridhar Ratnakumar
086217a93f
Make input/ output directories not polymorphic
...
Until this PR is merged: https://github.com/commercialhaskell/path/pull/140
2019-11-24 11:36:38 -05:00
Sridhar Ratnakumar
842ed096d3
Use newer versions of path/path-io
2019-11-24 11:33:32 -05:00
Sridhar Ratnakumar
a6cdb8e917
Advance nixpkgs, and refactor default.nix
2019-11-23 22:19:46 -05:00
Sridhar Ratnakumar
1bdc3f4475
Use relude in more places
2019-11-23 22:06:07 -05:00
Sridhar Ratnakumar
e84fb9b640
Use relude
...
Closes #47
2019-11-23 21:44:25 -05:00