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

160 Commits

Author SHA1 Message Date
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
Sridhar Ratnakumar
a2991f48f5 Relax constraints in some packages
So they work with obelisk apps created using the develop branch
2019-11-05 19:22:53 -05:00
Sridhar Ratnakumar
ad5fbc52ae Account for non-existant b/ in rib-sample 2019-10-26 11:50:53 -04:00
Sridhar Ratnakumar
4dbbeff146 Increase major version and update ChangeLog 2019-10-26 11:41:10 -04:00
Sridhar Ratnakumar
bdc55d6d10
Merge pull request #38 from wagdav/configurable-input-output
Configurable input output directories
2019-10-26 11:37:30 -04:00
David Wagner
fe21a6faa5 Make the input and output directories configurable 2019-10-24 22:08:30 +02:00
Sridhar Ratnakumar
e6a6742798 Add LaTeX to Rib.Simple 2019-08-26 11:36:17 -04:00
Sridhar Ratnakumar
18db6ccb1e Add cabal category 2019-08-21 20:08:19 -04:00
Sridhar Ratnakumar
1a7dbdd043 Inc major version for release 2019-08-21 20:05:08 -04:00
Sridhar Ratnakumar
fb3febe2e4 Indicate that Nix is optional
Closes #32

(cherry picked from commit 07944dcd83c339e752bdfb411f96868781a62f8e)
2019-08-21 20:04:57 -04:00
Sridhar Ratnakumar
dfdd11ed06
Hackage tweaks (#37) 2019-08-12 10:05:47 -04:00
Sridhar Ratnakumar
0a4519c86a Add package version bounds 2019-08-11 10:36:03 -04:00
Sridhar Ratnakumar
5e90a2df5d Format and update cabal file 2019-08-10 11:42:13 -04:00
Sridhar Ratnakumar
7c9d6b2204
Inline documentation in README.md (#36) 2019-08-09 13:27:48 -04:00
Sridhar Ratnakumar
4df419a319 Add cabal-install to nix build tool
Needed on crostini
2019-08-07 22:22:59 -04:00
Sridhar Ratnakumar
4d80c2835c Fix doc build 2019-08-07 22:22:31 -04:00