Skip to content

Releases

Pholio 0.6.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 11:13

Added

  • nav[].icon: a lucide icon before a header link's title, in the header, the
    start page menu and the mobile drawer. nav[].icon_only shows the icon alone:
    an icon button next to the theme switch on the start page, with the title as
    its accessible name.

Changed

  • An unknown icon name in nav, home.hero.buttons or home.cards.items is
    now a configuration error (exit 2) that names the key and the closest icons,
    instead of a build error without a location.
  • The configuration is stricter, each case with exit 2 and the key in the
    message: a required value (nav[].title, nav[].href,
    home.hero.headline, button and card labels and targets, head hrefs,
    redirect paths) must not be empty or blank; title, content_dir and
    output_dir must not be empty; content.extensions needs at least one
    entry; output_dir must not be content_dir or lie inside it, because the
    next build would read the generated Markdown as content.
  • pholio check --against <dir> with a directory that does not exist is a
    usage error (exit 2) instead of a list of every file as missing.
  • Redirects are checked: a redirect loop (/a to /b to /a, or a path to
    itself) and a redirect whose from is a page of the build stop it with
    exit 2. Chains that end are still fine.

Fixed

  • A syntax error or an exception in pholio.config.php was reported as an
    internal error (exit 70). It is now a configuration error (exit 2) with the
    file and line.
  • pholio dev now rebuilds when the file named in theme.custom_css changes.
  • --set with the name of a section (--set search=x) printed a PHP warning
    before its error; it now only says that string keys alone can be set.

Pholio 0.5.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 05:31

Added

  • theme.default_scheme: light or dark sets the scheme a visitor sees
    before choosing one (and the static state without JavaScript); system, the
    default, still follows the device. A stored choice still wins.
  • base_url: every page gets a <link rel="canonical"> to its address under
    this origin. Without it, site.url is used; with neither, none is written.
  • strict_content: true stops the build (exit 3) when a page has no
    description in its frontmatter, and lists every such page.
  • search.enabled: false builds a site without search: no search field or
    small trigger, no search dialog, no index file, and ⌘K stays the browser's.

Pholio 0.4.2

Choose a tag to compare

@github-actions github-actions released this 30 Oct 12:34

Fixed

  • The documentation's start page and roadmap name the current release instead
    of 0.1.0, and the start page has a card for the share cards.

Pholio 0.4.1

Choose a tag to compare

@github-actions github-actions released this 30 Oct 12:28

Fixed

  • A docs root published at the start page's URL takes the site's title as
    og:title and twitter:title, as its share card shows, instead of its page
    title such as "Home".

Pholio 0.4.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 12:21

Added

  • Share cards. With site.url set, every page gets Open Graph and X tags
    (og:title, og:description, og:url, og:image, twitter:card, …), and
    the build draws one 1200 × 630 PNG per page into og/<page>.png plus a site
    card og.png for the start page: logo and brand, the page title shrunk to
    fit up to three lines, the description and the page's address. Drawn in
    plain PHP from TrueType fonts (Inter by default) and an SVG logo, without GD
    or a browser; needs the zlib extension. The new share_card section sets
    the logo, brand, fonts and colours, which default to the header logo, the
    title and the light scheme. A character the fonts lack stops the build with
    the page and the character. The page's JSON-LD names its card as image.
  • pholio check compares PNG files by their pixels, not their compressed bytes.

Pholio 0.3.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 15:01

Added

  • A command in the hero. home.hero.command shows a shell command, such
    as the install line, under the lead as a code block with a copy button.

Fixed

  • The copy buttons of code blocks copy again. They were never connected: the
    script looked for an attribute the code blocks don't carry. After a copy the
    clipboard icon turns into a check mark for a moment.

Pholio 0.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 08:57

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.

Pholio 0.1.0

Choose a tag to compare

@github-actions github-actions released this 13 Sep 19:53

The first release: beautiful documentation, powered by Markdown. Pholio turns a
folder of Markdown files into a static documentation site, built by plain PHP
with no dependencies.

Added

  • Markdown to site. A strict Markdown subset with frontmatter, GitHub tables,
    task lists and footnotes, one meta.json per folder for the page tree, heading
    anchors and a table of contents. Unknown constructs, components, icons or
    languages, invalid meta.json and duplicate slugs stop the build with file and
    line. Images resolve relative to the page or through the copied directories and
    get their width and height.
  • The theme. Sidebar with collapsible folders and a collapsed mode, header
    tabs, table of contents with a popover on small screens, breadcrumbs, previous
    and next links, light and dark schemes with a keyboard shortcut, Inter and the
    lucide icons, in plain CSS and small JavaScript modules.
  • Custom colors. theme.light and theme.dark override single color tokens
    of the light and dark scheme with static colors, and theme.palette_css adds a
    palette stylesheet on top.
  • No overscroll bounce. The page doesn't drag past its top or bottom, and the
    sidebar, the table of contents, the search results and the popovers keep their
    scrolling to themselves instead of bouncing or scrolling the page.
  • Components as declarative tags: callouts, cards, tabs, steps, accordions,
    file trees, type tables, screenshots with a dark variant, zoomable images,
    banners, an inline table of contents and dynamic code blocks.
  • Syntax highlighting at build time from TextMate grammars with the GitHub
    light and dark themes: titles, line numbers, highlighted, focused and diff
    lines, highlighted words and code tabs.
  • Search without a backend. An inverted index built at compile time and
    ranked in a Web Worker: title and phrase matches first, then a score weighted
    by word rarity and query coverage, with prefix, compound, inflection and typo
    matching, English and German tokenizers and keywords in the frontmatter.
  • Agent-ready output. A Markdown twin of every page, llms.txt and
    llms-full.txt, skill.md with Agent Skills discovery, an agent card,
    robots.txt, sitemap.xml, JSON-LD, and content negotiation with discovery
    headers in .htaccess, _headers and pholio dev. OpenAI's agents
    (ChatGPT-User, OAI-SearchBot, GPTBot) get the Markdown as text/plain, and
    only the Markdown files a build writes are served; any other .md answers 404.
    The twins open with a neutral line naming the llms.txt index, and llms.txt and
    skill.md describe their sections instead of giving commands. Headings, labels
    and fixed sentences follow the site language, in English and German.
  • Page menu. "Copy page" next to the page title, with a menu to copy the page
    as Markdown or open it in ChatGPT (with the page URL and a pointer to its
    Markdown version) or Claude (with the Markdown URL).
  • Install script. curl -fsSL https://pholio.lukaloehr.com/install.sh | sh
    installs the latest release after verifying its checksum, PHP and PCRE2, with
    --version, --system, --prune and --dir for a per-project copy.
  • Command line. pholio init creates a project with a sample site,
    pholio build writes the static site, pholio check compares a build with a
    directory in both directions, and pholio dev previews with live rebuilds.
    Every command takes the project directory, --config, --profile and --set,
    and maps errors to documented exit codes.
  • Configuration. Optional: every key has a default. One PHP file returning
    plain data, validated with errors naming the key, with profiles for staging
    builds.
  • Deployment output. Static HTML per page, one stylesheet, the search index,
    an Apache .htaccess with security headers and redirects, and a Cloudflare
    Workers example.
  • Interface languages English and German.
  • Documentation in docs/, written in Pholio's own format, and a demo site
    in examples/demo/ that uses every component.