Sridhar Ratnakumar
b80a9327a6
docs: fix logo url
2021-04-25 13:24:33 -04:00
Sridhar Ratnakumar
f222fa13db
Merge pull request #16 from srid/static-assets
...
Support for static assets
2021-04-25 13:23:38 -04:00
Sridhar Ratnakumar
c747ec450a
Remove unnecessary fundep
2021-04-25 13:23:18 -04:00
Sridhar Ratnakumar
d0984ad9fe
Update documentation
2021-04-25 13:18:25 -04:00
Sridhar Ratnakumar
9d517b8755
Implement static assert serving/generating
...
Also make ema.svg a static file
2021-04-25 13:15:30 -04:00
Sridhar Ratnakumar
d691b8785a
runEmaPure: shoud behave the same
2021-04-25 12:44:08 -04:00
Sridhar Ratnakumar
c5f475e5a2
Add staticAssets for paths to static assets; add -C to change CWD
2021-04-25 12:40:50 -04:00
Sridhar Ratnakumar
a661aa5848
Handle and display errors in browser (w/ hot reload)
...
Resolves #7
2021-04-24 23:25:04 -04:00
Sridhar Ratnakumar
39d327b1d9
docs: stop generating on broken links
2021-04-24 22:58:48 -04:00
Sridhar Ratnakumar
d037975653
doc: rename to concepts
2021-04-24 21:53:37 -04:00
Sridhar Ratnakumar
6e7c9f2dde
doc: misc...
2021-04-24 21:42:17 -04:00
Sridhar Ratnakumar
c822580111
advanced route example
2021-04-24 21:16:33 -04:00
Sridhar Ratnakumar
6ef8e3c62f
Docs reorg
2021-04-24 20:55:31 -04:00
Sridhar Ratnakumar
55cf7b3bcb
Reorg docs
2021-04-24 20:36:29 -04:00
Sridhar Ratnakumar
02a3c7613e
Style non-internal links differently
2021-04-24 20:25:51 -04:00
Sridhar Ratnakumar
d91995f9ad
more docs ...
2021-04-24 20:18:38 -04:00
Sridhar Ratnakumar
6a48ef821b
More docs
2021-04-24 20:02:27 -04:00
Sridhar Ratnakumar
c2eb58638b
increase ws server timeout
2021-04-24 19:35:59 -04:00
Sridhar Ratnakumar
72a5a2013a
docs...
2021-04-24 19:35:54 -04:00
Sridhar Ratnakumar
bca3641fcc
Use same CDN for prismjs, and avoid it in root
2021-04-24 19:09:59 -04:00
Sridhar Ratnakumar
0b318ff195
Relaxed list styling on mobile
2021-04-24 14:57:04 -04:00
Sridhar Ratnakumar
fcb899e895
tailwind: Use shim when statically generating, CDN otherwise
...
To get better lighthouse score
2021-04-24 14:47:19 -04:00
Sridhar Ratnakumar
8d59cec948
favicon
2021-04-24 14:02:50 -04:00
Sridhar Ratnakumar
d32a039132
Try prism friendly classes
2021-04-24 13:56:23 -04:00
Sridhar Ratnakumar
d02469ac5f
more docs work
2021-04-24 13:44:53 -04:00
Sridhar Ratnakumar
9ed970be7e
Add features, etc.wq
2021-04-24 13:10:31 -04:00
Sridhar Ratnakumar
f958c32961
Remove opacity; very janky
2021-04-24 12:36:41 -04:00
Sridhar Ratnakumar
ba4f06153b
Fix CI yaml again
2021-04-24 12:35:54 -04:00
Sridhar Ratnakumar
5cd329b8be
Use different workflow, with cname
2021-04-24 12:29:21 -04:00
Sridhar Ratnakumar
978d209927
Fix CI docs
2021-04-24 12:21:02 -04:00
Sridhar Ratnakumar
dafd559a83
Fix CI again
2021-04-24 12:14:32 -04:00
Sridhar Ratnakumar
bb1821e094
ci: fix nix run
2021-04-24 12:08:12 -04:00
Sridhar Ratnakumar
e9cd43723d
Publish docs to GitHub Pages ( #15 )
2021-04-24 12:04:16 -04:00
Sridhar Ratnakumar
dd97398be8
Add breadcrumb styling
2021-04-24 11:35:52 -04:00
Sridhar Ratnakumar
7c714ef771
Add documentation site example ( #14 )
...
Add documentatin site example
* Repurpose the third example for documentation
* No need for a separate route type
We can repurporse the source path as route.
* Add markdown parser via commonmark
* Read .md files recursively
* Add Ema.Helper.FileSystem (fsnotify code)
* Pandoc Blaze renderer (not complete)
* Rewrite links in Pandoc AST to use routes
* Start syling AST elements
* Basic breadcrumbs
* finalize
2021-04-23 22:00:46 -04:00
Sridhar Ratnakumar
b224be2bae
Allow disabling helpers (tailwind) via cabal flag
2021-04-22 18:12:11 -04:00
Sridhar Ratnakumar
d140e74832
Better name
2021-04-22 18:05:36 -04:00
Sridhar Ratnakumar
9f5222ce27
Merge pull request #13 from srid/gen-static
...
Add command to generate site; and revamp typeclass API
2021-04-22 17:40:54 -04:00
Sridhar Ratnakumar
ff29619f72
Expose runEmaWithAction
2021-04-22 17:35:17 -04:00
Sridhar Ratnakumar
1956ca1020
Add missing directory dependency
2021-04-22 17:08:57 -04:00
Sridhar Ratnakumar
d0213b2555
Refactor examples
2021-04-22 17:06:04 -04:00
Sridhar Ratnakumar
0d5e815e76
Avoid AllowAmbiguousTypes using fundeps
2021-04-22 16:54:45 -04:00
Sridhar Ratnakumar
bc8289a6cb
Document the type-class and adjust a few things
2021-04-22 16:46:02 -04:00
Sridhar Ratnakumar
d83611a3e1
Introduce Ema type-class
...
Replacing IsRoute type class.
The new type-class is useful for a 3rd method, `modelRoutes` that returns all routes for the given model. IsRoute cannot do this, as it is not parametrized over model.
2021-04-22 16:39:06 -04:00
Sridhar Ratnakumar
8c783ffc23
Create intermediate directories
2021-04-22 16:11:21 -04:00
Sridhar Ratnakumar
2c6e5563fe
Add "generate" subcommand to generate static site
2021-04-22 15:57:31 -04:00
Sridhar Ratnakumar
dffe348caa
Reduce reconnect delay
...
This does have the effect of unnecessary errors on console, but we can't avoid it.
2021-04-22 13:54:54 -04:00
Sridhar Ratnakumar
14ffcdd1cd
Speed up hot reload using Dom patching ( #11 )
...
* Speed DOM replace using patch via morphdom
* Don't send JS shims when sending HTML down websocket
Don't need.
* Fix a bug with recursive route switch
* Iron out some bugs
2021-04-22 13:53:22 -04:00
Sridhar Ratnakumar
7c7df0cb63
Smooth route click ( #9 )
...
* misc
* Ugly, but works!
* refactor server
* better names
* document the server logic
* Remove refreshPage, no longer used
* refactor ws client
2021-04-22 10:34:01 -04:00
Sridhar Ratnakumar
0f3f2b5932
Update README.md
2021-04-22 06:56:02 -04:00