Sridhar Ratnakumar
ebcd713718
Fix logo url
2019-07-16 20:13:01 -04:00
Sridhar Ratnakumar
5e52473a15
Merge pull request #22 from srid/doc
...
Separate docs from example
2019-07-16 20:12:05 -04:00
Sridhar Ratnakumar
d2ff5b0125
Merge pull request #23 from srid/add-real-example
...
Add real example
2019-07-16 20:11:46 -04:00
Sridhar Ratnakumar
44fac11a7d
leniently decode the source file
2019-07-16 20:10:32 -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
49859d577c
Move current example directory to doc/
2019-07-16 19:54:29 -04:00
Sridhar Ratnakumar
130e2b8373
Add hierarchy info to docs ( #21 )
...
* Add guide.json, an Action to read it, and add _post_srcPath
* ghcid: go back to using Rib.App.dev
cli args in ghcid break often
* ghcid simplify
* customize build action a bit
* stylish haskell
* cleanup
2019-07-16 19:47:14 -04:00
Sridhar Ratnakumar
48fad68b84
doc: Add introduction
2019-07-16 09:00:58 -04:00
Sridhar Ratnakumar
4dc6a85628
default.nix: include ghcid
2019-07-15 18:27:04 -04:00
Sridhar Ratnakumar
d21782eead
Have pandoc functions directly return Html
2019-07-15 13:45:42 -04:00
Sridhar Ratnakumar
ecad422805
Flesh out tasks
2019-07-15 13:03:23 -04:00
Sridhar Ratnakumar
2a45c13cac
ghcid: allow specifying port
2019-07-15 09:29:55 -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
f4338ea0e5
Rib.Pandoc: add pandocH1
...
To extract the first level of header
2019-07-13 14:39:36 -04:00
Sridhar Ratnakumar
291e182d5c
Use parsePandocCached
...
This is needed to cache parsing of JSON.
2019-07-13 11:04:18 -04:00
Sridhar Ratnakumar
bad66f9588
Rib.Simple: add isDraft
2019-07-13 10:48:35 -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
da41b7dee6
Use Read instead of FromJSON in Yaml metadata
...
Read values are human-friendly
2019-07-12 16:32:47 -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
57f91a032e
Merge pull request #17 from srid/shake-forward
...
Switch to Development.Shake.Forward
2019-07-12 11:11:43 -04:00
Sridhar Ratnakumar
0bfebc3e7e
Switch to Development.Shake.Forward
...
Much simpler than the default backward-defined system.
2019-07-12 11:07:04 -04:00
Sridhar Ratnakumar
85a8ef3bdc
Bump version
...
Because of lucid upgrade
2019-07-12 10:15:13 -04:00
Sridhar Ratnakumar
b90a60e051
Merge pull request #16 from srid/reflexdom-to-lucid
...
Switch to lucid
2019-07-11 18:20:28 -04:00
Sridhar Ratnakumar
01abafb3f6
cleanup
2019-07-11 18:19:02 -04:00
Sridhar Ratnakumar
36a94cb3c8
Drop reflex-platform
2019-07-11 13:58:46 -04:00
Sridhar Ratnakumar
5882862418
Drop use of reflex-dom entirely
2019-07-11 10:42:03 -04:00
Sridhar Ratnakumar
a816e63dd7
Pandoc syntax highlighting support
2019-07-11 10:18:14 -04:00
Sridhar Ratnakumar
135fd30b32
WIP: example: use Lucid (except for pandoc)
2019-07-10 21:50:48 -04:00
Sridhar Ratnakumar
49936d44a4
rib: use Lucid instead of reflex-dom
2019-07-10 21:50:38 -04:00
Sridhar Ratnakumar
98de2f787c
Merge pull request #13 from srid/second-site
...
Improve the library for reuse in a second site
2019-07-07 14:00:41 -04:00
Sridhar Ratnakumar
e2779b934d
Upgrade pandoc ( #14 )
...
Needed for github style style lists
2019-07-07 13:59:31 -04:00
Sridhar Ratnakumar
60dc95f766
stylish haskell
2019-07-07 08:44:58 -04:00
Sridhar Ratnakumar
5be6fc7afb
Move pandoc meta functions to their own module
2019-07-06 11:33:53 -04:00
Sridhar Ratnakumar
9599d2d2bb
Move PostCategory out of library
2019-07-06 10:02:57 -04:00
Sridhar Ratnakumar
cddae9e69c
Add getPostAttributeList
2019-07-06 09:32:40 -04:00
Sridhar Ratnakumar
6e5fddb2c9
Add elPandocHeadling1
...
Useful to extract the title out of the document especially if none is
specified in Metadata.
2019-07-05 11:46:39 -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
65913cb012
Reuse renderInline for elPandocInlines
2019-07-01 20:21:56 -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
b7bd808524
Fix hardcoding of content directory
2019-07-01 09:22:53 -04:00