mirror of
https://github.com/srid/ema.git
synced 2024-12-01 15:13:36 +03:00
feb58f5129
* Try to fix it, WIP * docsx
2.2 KiB
2.2 KiB
Revision history for ema
Unreleased (0.2.0.0)
- TODO(doc) runEma's action gets the
CLI.Action
as argument, to prevent thegen
command from needing to monitoring files. Asset
type- Introduce the
Asset
type to distinguishing between static files and generated files. The later can be one ofHtml
orOther
, allowing the live server to handle them sensibly. Ema
typeclass:- Drop
staticAssets
in favour ofallRoutes
(renamed fromstaticRoutes
) returning all routes including both generated and static routes. - Drop
Slug
and use plainFilePath
. Route encoder and decoder deal directly with the on-disk path of the generated (or static) files.
- Drop
- Make the render function (which
runEma
takes) return aAsset LByteString
instead ofLByteString
such that it can handle all routes, and handle static files as well as generation of non-HTML content (eg: RSS) - Allow copying static files anywhere on the filesystem
- Introduce the
routeUrl
:- Unicode normalize as well URI encode route URLs
- now returns relative URLs (ie. without the leading
/
)- Use the
<base>
tag to specify an explicit prefix for relative URLs in generated HTML. This way hosting on GitHub Pages without CNAME will continue to have functional links.
- Use the
Ema.Slug
- Add
Ord
,Generic
,Data
and Aeson instances toSlug
- Unicode normalize slugs using NFC
- Add
decodeSlug
andencodeSlug
- Add
- Add default implementation based on Enum for
allRoutes
- Warn, without failing, on missing static assets during static generation
- Helpers
- Helpers.FileSystem
- add
mountOnLVar
- TODO(doc) gracefully handle user exceptions
- add
- Helpers.Tailwind
- add overflow-y-scroll to body
- Add twind shim before application's head
- TODO(doc) Helpers.Markdown (to be moved to Hackage eventually)
- add helpers to parse markdown;
parseMarkdownWithFrontMatter
andparseMarkdown
- add wikilink helpers
- add helpers to parse markdown;
- TODO(doc) Add
Ema.Helper.PathTree
- Helpers.FileSystem
- Examples
Remove Ex03_Documentation.hs (moved to separate repo,Back to ./docs, but using Emanote.ema-docs
)- Add Ex03_Basic.hs example
0.1.0.0 -- 2021-04-26
- First version. Released on an unsuspecting world.