Skip to content

Pholio 0.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 08:57
· 68 commits to main since this release

Added

  • Design tokens and your own CSS. theme.tokens sets fonts, radii and any
    other custom property of the theme for both color schemes, and
    theme.custom_css appends a stylesheet after the theme, for rules such as
    @font-face. A site can take on its brand's typography and shapes without
    touching the theme.

  • Preloading. head.preload fetches files such as web fonts before the
    stylesheet asks for them, so text doesn't shift when they arrive.

  • Code themes of your own. theme.code.light and theme.code.dark choose
    the highlighting themes: a bundled one by name, or a TextMate theme file of
    the site, for example a monochrome scheme.

  • Markdown code blocks. markdown (alias md) is a bundled language, so a
    page can show Markdown and component examples highlighted. Fenced code inside
    them is highlighted in its own language.

  • Link checks. After the pages are written, every link and image in the
    prose and on the start page is checked against the finished site: absolute
    and relative paths, fragments against the element ids of the target page, and
    absolute links to site.url. Every broken one is listed with file and line,
    and the build exits with code 3. --only builds skip the check, and so does
    build --no-link-check, meant for test builds whose content is moved below
    another base path.

Changed

  • The sidebar ends in a hairline. On wide screens the sidebar is closed off
    from the page by a 1 px border in the header's colour, from the header to the
    bottom of the window. It no longer draws a scrollbar of its own, which used to
    appear over that edge; it still scrolls by wheel, trackpad and keyboard. The
    drawer on narrow screens keeps its scrollbar.

Fixed

  • The table of contents and InlineTOC link the generated footnotes heading to
    its id footnote-label instead of #footnotes or #footnotes-1, which no
    element had.