Skip to content

Route Prefix and Fixes

Compare
Choose a tag to compare
@georgesboris georgesboris released this 28 Jan 00:52
· 11 commits to main since this release

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.

Closes #17 , #18 , #24 , #25