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

57 Commits

Author SHA1 Message Date
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
acaadc6d3a Add ToC to README 2019-11-26 18:13:47 -05:00
Sridhar Ratnakumar
22c9642bd9 Cleanup and refactor 2019-11-26 17:41:01 -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
20636ec9a4 Remove .html magic from URLs
fixes #42
2019-11-19 15:20:04 -05:00
Sridhar Ratnakumar
ad5fbc52ae Account for non-existant b/ in rib-sample 2019-10-26 11:50:53 -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
7c9d6b2204
Inline documentation in README.md (#36) 2019-08-09 13:27:48 -04:00
Sridhar Ratnakumar
7c60329004 README: Try without sanitize 2019-08-06 21:21:38 -04:00
Sridhar Ratnakumar
479996ce2e Add screenshot to sample's Main.hs
To give an overview to the user
2019-08-06 20:55:09 -04:00
Sridhar Ratnakumar
5230e0ae44 Update doc guides 2019-08-06 18:18:20 -04:00
Sridhar Ratnakumar
00dc04186b Add built with nix 2019-08-05 13:47:32 -04:00
Sridhar Ratnakumar
1bf3cab9b2 Edit README 2019-08-03 13:33:48 -04:00
Sridhar Ratnakumar
1537ad4ea4 Fix logo url 2019-08-03 13:28:05 -04:00
Sridhar Ratnakumar
4a681d0b50 Migrate examples to other repo 2019-08-03 13:26:45 -04:00
Sridhar Ratnakumar
98cfaa9020 Apply nix/cabal addition to other examples 2019-08-03 12:47:08 -04:00
Sridhar Ratnakumar
328476b45b Add support for non-Markdown formats
Demonstrate this by using reST in examples/hello-world, at the expense
of relinquishing yaml metadata (which is markdown-only), which is
however retained in examples/doc.
2019-07-23 16:46:04 -04:00
Sridhar Ratnakumar
acac41ee15 Move the two examples to ./examples
More examples will be added.
2019-07-19 17:40:00 -04:00
Sridhar Ratnakumar
ad8576b198
Break down Rib.Simple into reusable functions (#24)
* Shake combinators in `Rib.Shake` (which `Rib.Simple` uses)
* doc: Add next/ prev navigation to guide pages using a custom action
* doc: `guide.json` specifies the navigation list
2019-07-18 09:42:38 -04:00
Sridhar Ratnakumar
ebcd713718
Fix logo url 2019-07-16 20:13:01 -04:00
Sridhar Ratnakumar
48251c6818 Add a minimal example
Main.hs is based on getting started guide, with some fixes to make it work.
2019-07-16 20:10:20 -04:00
Sridhar Ratnakumar
2976299e77
Replace example with project site (#20)
Add a 'getting started' page to help new users
2019-07-14 15:39:16 -04:00
Sridhar Ratnakumar
07c8e9cce5
Fix outdated paths 2019-07-14 12:50:59 -04:00
Sridhar Ratnakumar
e53e226590
Fix img link 2019-07-14 12:44:30 -04:00
Sridhar Ratnakumar
09801138be
Vastly simplify configuration (#19)
Drop the `Settings` ADT in favour of passing Shake's `Action` directly.

Also change source and destination directories to `a` and `b` for clarity and remove subjectivity in defaults.
2019-07-14 11:17:48 -04:00
Sridhar Ratnakumar
aae2906737 Rib.App: fix ghcid not resetting cmdargs state
The `modes` need to be inside a function, apparently.
2019-07-13 20:33:40 -04:00
Sridhar Ratnakumar
bc380f5869 Add ghcid script 2019-07-13 15:11:04 -04:00
Sridhar Ratnakumar
7605251218 Update README 2019-07-12 17:12:36 -04:00
Sridhar Ratnakumar
d6a8790d68 Simplify Rib.Pandoc API 2019-07-12 16:55:40 -04:00
Sridhar Ratnakumar
34dc1427a5 Simplify Main.hs for easy scanning 2019-07-12 16:40:24 -04:00
Sridhar Ratnakumar
aebb4f1331
Move specialized code and types to Rib.Simple (#18)
* Move specialized code and types to Rib.Simple

Everything else is supposed to be generic, to be used by users wanting
greater customization without hardcoded stuff.

* parametrize parsePage to be of `page` as well

* Rename to renderPage

to match parsePage

* Fix broken url

* Some simplification

* more cleanup
2019-07-12 16:25:14 -04:00
Sridhar Ratnakumar
36a94cb3c8 Drop reflex-platform 2019-07-11 13:58:46 -04:00
Sridhar Ratnakumar
a816e63dd7 Pandoc syntax highlighting support 2019-07-11 10:18:14 -04:00
Sridhar Ratnakumar
f97e76e72e
Custom Shake rules (#12)
Allow the library user to specify their own Shake rules

Also:

* Add writeReflexWidget

* Move dev to library

* Rename images to static

* Avoid hardcoding post URL creator
2019-07-05 10:12:27 -04:00
Sridhar Ratnakumar
f97cac46e4 Use one source file for example 2019-07-03 09:39:47 -04:00
Sridhar Ratnakumar
a836a292ea Flesh out example in README 2019-07-02 09:27:37 -04:00
Sridhar Ratnakumar
f271fc04c8 Fix logo url 2019-07-01 18:19:00 -04:00
Sridhar Ratnakumar
2f07e71165
Isolate library and executable (#11)
* Split library and executable

* Abstract out pandoc stuff from example

* Put example content under ./example

* Simplify HTML render configuration
2019-07-01 18:14:01 -04:00
Sridhar Ratnakumar
2848ac80fd Fix logo image 2019-06-30 18:22:50 -04:00
Sridhar Ratnakumar
1d1e31aeb7
Change project name (#10) 2019-06-30 18:06:16 -04:00
Sridhar Ratnakumar
5a236d331e Simplify settings configuration 2019-06-30 17:41:00 -04:00
Sridhar Ratnakumar
ef669dc14e
Split Main.hs into sensible modules (#9)
* Split Main.hs into sensible modules

* Update README

* intro
2019-06-30 16:36:17 -04:00
Sridhar Ratnakumar
235b7cbd98
blaze & mustache -> reflex-dom (#8)
Include our own pandoc AST renderer, and skylighting handling.

Remove all static files except images.
2019-06-30 11:50:14 -04:00
Sridhar Ratnakumar
74e2c17204
Serve with warp + auto regeneration (#7) 2019-06-28 18:06:37 -04:00