Repository navigation
Releases
Pholio 0.6.0
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_onlyshows 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.buttonsorhome.cards.itemsis
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,headhrefs,
redirect paths) must not be empty or blank;title,content_dirand
output_dirmust not be empty;content.extensionsneeds at least one
entry;output_dirmust not becontent_diror 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 (
/ato/bto/a, or a path to
itself) and a redirect whosefromis 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.phpwas reported as an
internal error (exit 70). It is now a configuration error (exit 2) with the
file and line. pholio devnow rebuilds when the file named intheme.custom_csschanges.--setwith 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
Added
theme.default_scheme:lightordarksets 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.urlis used; with neither, none is written.strict_content:truestops the build (exit 3) when a page has no
descriptionin its frontmatter, and lists every such page.search.enabled:falsebuilds 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
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
Fixed
- A docs root published at the start page's URL takes the site's
titleas
og:titleandtwitter:title, as its share card shows, instead of its page
title such as "Home".
Pholio 0.4.0
Added
- Share cards. With
site.urlset, 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 intoog/<page>.pngplus a site
cardog.pngfor 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 thezlibextension. The newshare_cardsection 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 asimage. pholio checkcompares PNG files by their pixels, not their compressed bytes.
Pholio 0.3.0
Added
- A command in the hero.
home.hero.commandshows 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
Added
-
Design tokens and your own CSS.
theme.tokenssets fonts, radii and any
other custom property of the theme for both color schemes, and
theme.custom_cssappends 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.preloadfetches 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.lightandtheme.code.darkchoose
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(aliasmd) 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 tosite.url. Every broken one is listed with file and line,
and the build exits with code 3.--onlybuilds 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
InlineTOClink the generated footnotes heading to
its idfootnote-labelinstead of#footnotesor#footnotes-1, which no
element had.
Pholio 0.1.0
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, onemeta.jsonper folder for the page tree, heading
anchors and a table of contents. Unknown constructs, components, icons or
languages, invalidmeta.jsonand 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.lightandtheme.darkoverride single color tokens
of the light and dark scheme with static colors, andtheme.palette_cssadds 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 andkeywordsin the frontmatter. - Agent-ready output. A Markdown twin of every page,
llms.txtand
llms-full.txt,skill.mdwith Agent Skills discovery, an agent card,
robots.txt,sitemap.xml, JSON-LD, and content negotiation with discovery
headers in.htaccess,_headersandpholio dev. OpenAI's agents
(ChatGPT-User, OAI-SearchBot, GPTBot) get the Markdown astext/plain, and
only the Markdown files a build writes are served; any other.mdanswers 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,--pruneand--dirfor a per-project copy. - Command line.
pholio initcreates a project with a sample site,
pholio buildwrites the static site,pholio checkcompares a build with a
directory in both directions, andpholio devpreviews with live rebuilds.
Every command takes the project directory,--config,--profileand--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.htaccesswith 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
inexamples/demo/that uses every component.