Route Prefix and Fixes
ElmBook.ThemeOptions.routePrefix
You can now specify a routePrefix
option when setting up your ElmBook! This is useful for when you're hosting it somewhere other than the root of your website (e.g. https://company.com/design-system/
).
book "ElmBook's"
|> withThemeOptions
[ ElmBook.ThemeOptions.routePrefix "/design-system"
]
|> withChapters [ ... ]
Exposed ChapterBuilder
ChapterBuilder
type is now exposed so you can build reusable chapter pipelines and share them across chapters.
Fixes
/logAction
"magical string" can be used whenever you want to log a link click instead of navigating to some url. There was a problem where using it inside a chapter group broken the behavior. This is now fixed.chapterLink
did not work inside chapterGroups. This is now fixed.