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
3f6dc480a6
Merge pull request #31 from srid/hercules-ci
Add CI
2019-08-07 12:19:17 -04:00
Sridhar Ratnakumar
c02b361044 Add name to workaround a developPackage issue 2019-08-07 11:20:49 -04:00
Sridhar Ratnakumar
a8f74f20f1 Pin nixpkgs for CI 2019-08-07 09:42:46 -04:00
Sridhar Ratnakumar
7c60329004 README: Try without sanitize 2019-08-06 21:21:38 -04:00
Sridhar Ratnakumar
4d5dee29e7 doc: add sections to getting-started 2019-08-06 21:17:14 -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
1c5edc48bc doc: describe higher level stuff first 2019-08-06 19:55:00 -04:00
Sridhar Ratnakumar
3b4515fcff Improve narrative nature of docs 2019-08-06 19:15:33 -04:00
Sridhar Ratnakumar
0d353317ec doc: default.nix to match rib-sample 2019-08-06 18:21:35 -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
df137255a7 Complete haddock docs 2019-08-05 08:49:12 -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
25875b4af2 Remove unused ghcid script 2019-08-03 13:04:34 -04:00
Sridhar Ratnakumar
f36afc7019
Merge pull request #27 from srid/examples-as-project
Make examples independent cabal projects
2019-08-03 12:47:47 -04:00
Sridhar Ratnakumar
98cfaa9020 Apply nix/cabal addition to other examples 2019-08-03 12:47:08 -04:00
Sridhar Ratnakumar
a9a1043d42 Simplify examples default.nix
By reusing rib's default.nix
2019-08-03 12:40:45 -04:00
Sridhar Ratnakumar
6704fbeb2c Cabal'ify examples/hello-world
default.nix is mostly a copy of rib's default.nix
2019-08-03 10:02:32 -04:00
Sridhar Ratnakumar
07c341a664 Make serve and watch the default command
So that user apps can directly run their `main` to get this dev
functionality (in ghcid). without having to pass custom arguments.
2019-08-03 09:45:34 -04:00
Sridhar Ratnakumar
5768b545c6 Finish invoice generator example 2019-08-03 09:24:37 -04:00
Sridhar Ratnakumar
6ef1f2a59a Add Pandoc.getFirstImg 2019-07-28 11:03:21 -04:00
Sridhar Ratnakumar
d455c00e4c Allow external metadata files for Pandoc docs
This is needed when using non-Markdown formats
2019-07-25 17:29:04 -04:00
Sridhar Ratnakumar
05d8dcaead Disable directory listings 2019-07-25 09:11:04 -04:00
Sridhar Ratnakumar
571782b8a6 Add orgmode to example 2019-07-23 17:49:13 -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
2a1bd274d3
Add WIP invoice generator example (#26)
* Initial version

* cabal: remove rib-example

* Flesh out addresses and simple table

* company and author cards

* wip

* Fix getMeta instance for [Text]

* Refactor Pandoc.parse*

* wip note
2019-07-23 07:48:29 -04:00
Sridhar Ratnakumar
71ad28f6a0 writeHtml: use BS instead of Text
as the text is already encoded by Lucid.
2019-07-21 14:50:14 -04:00
Sridhar Ratnakumar
d1cccb8433 Use Lucide.renderText
Because it calls decodeUtf8
2019-07-21 14:45:35 -04:00
Sridhar Ratnakumar
1dfd18fbaf Actually fix utf8 encoding 2019-07-21 14:36:33 -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
bf65d8918e doc: Include example's Main.hs dynamically 2019-07-19 16:42:18 -04:00
Sridhar Ratnakumar
1362d08ab9
Add IsMetaValue type class for simpler pandoc metadata management (#25)
* Add `IsMetaValue` type class, and `getMeta`

Simpler than previous suite of functions in Rib.Pandoc

* remove fromMeta

* Rib.Pandoc: rename toplevels

* Update geting-started

* cleanup
2019-07-19 16:19:13 -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
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