1
1
mirror of https://github.com/srid/rib.git synced 2024-11-30 03:45:00 +03:00
Commit Graph

225 Commits

Author SHA1 Message Date
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
Sridhar Ratnakumar
506754077d Update README example 2019-11-23 20:40:52 -05:00
Sridhar Ratnakumar
02ae1e5b8d Update README example 2019-11-23 19:09:31 -05:00
Sridhar Ratnakumar
00363e44bf Update README for current rib 2019-11-23 19:07:39 -05:00
Sridhar Ratnakumar
884d0a32f1 Built with Nix 2019-11-23 17:15:53 -05:00
Sridhar Ratnakumar
960a216dd2
Create CONTRIBUTING.md 2019-11-23 13:54:26 -05:00
Sridhar Ratnakumar
52c52c5894
Create LICENSE 2019-11-23 13:50:52 -05:00
Sridhar Ratnakumar
895c77e905
Re-format source tree using ormolu (#49) 2019-11-23 13:50:00 -05:00
Sridhar Ratnakumar
2beee392a1
Use type-safe paths (#48) 2019-11-23 13:25:02 -05:00
Sridhar Ratnakumar
69d7a94a63 Remove unused dependencies 2019-11-23 12:25:36 -05:00
Sridhar Ratnakumar
efc9524718 Re-format cabal file 2019-11-23 12:23:17 -05:00
Sridhar Ratnakumar
76b9f89a23 Enable all mmark extensions 2019-11-22 18:39:57 -05:00
Sridhar Ratnakumar
9d02ed1458 Add MMark.getFirstImg 2019-11-22 18:15:50 -05:00
Sridhar Ratnakumar
8331fd18bf
Polymorphic markup parsing (using Pandoc and MMark) (#46)
* Add `Markup doc` type class to switch between Pandoc and MMark
* Vastly simplify metadata handling using aeson Value's
* Add typed error handling to parsing functions
* Drop json cache (won't work with mmark) and Rib.Simple
2019-11-22 14:41:38 -05:00
Sridhar Ratnakumar
a3abd03841 Release 0.4.1.0 2019-11-21 17:56:10 -05:00
Sridhar Ratnakumar
20636ec9a4 Remove .html magic from URLs
fixes #42
2019-11-19 15:20:04 -05:00
Sridhar Ratnakumar
cfe371bbe7
Merge pull request #41 from srid/obelisk-friendly
Extend rib to work with reflex projects
2019-11-05 19:28:29 -05:00
Sridhar Ratnakumar
729092d86c Export a few things related to pandoc 2019-11-05 19:24:32 -05:00