Skip to content
Markdown · one theme · zero dependencies · MIT

Beautiful documentation, powered by Markdown.

Write a folder of Markdown. Pholio builds the site: static HTML, one theme in light and dark, search that runs in the browser. PHP at build time, nothing at run time.

$ curl -fsSL pholio.lukaloehr.com/install.sh | sh
docs/index.md→ /docs

The docs on this site, and the Markdown they are built from. Click around.

Dependencies
0
no Composer, no npm
Runtime
PHP 8.2
at build time only
Themes
1
light, dark, your tokens
Interface
EN · DE
English and German
Write

Markdown, plus a few tags.

---
title: Exporting a report
description: How to save a report as a file.
---

Open the report, then choose **Export** in the toolbar.

<Callout type="warn" title="Large reports">
Exports over 10 MB are zipped.
</Callout>

<Steps>
<Step>Pick a format: CSV or PDF.</Step>
<Step>Choose where to save it.</Step>
</Steps>

```bash title="Terminal"
report export --format csv
```
  • Components as tags
    Callouts, cards, tabs, steps, accordions, file trees and type tables, written inline.
  • Highlighted at build time
    13 bundled languages, Markdown included, with titles, line numbers, diffs and code tabs.
  • Search in the browser
    A prebuilt index, queried in a Web Worker. No backend, no service.
  • Light and dark
    One theme with both schemes, a sidebar, a table of contents and shortcuts.
  • Share cards
    Open Graph tags on every page and a 1200 × 630 PNG per page, drawn in plain PHP.
  • Fails loud
    Unknown components, icons, languages and every broken link or fragment stop the build.
  • Static output
    Plain files for any host, with a ready .htaccess for Apache and a Workers example.
Make it yours

One theme, your brand.

  • Design tokens
    Fonts, radii and letter spacing for both schemes, plus single colors in theme.light and theme.dark.
  • Your own CSS
    A stylesheet after the theme, for @font-face and anything a token can't say. Fonts preload before it asks for them.
  • Code themes
    The bundled GitHub themes, or any VS Code TextMate theme file, chosen per scheme.
  • Share cards in your brand
    Logo, fonts and colors of the cards. This page's card is below, from the build of these docs.
'theme' => [
    'tokens' => [
        'font-text' => '"Plex Sans", sans-serif',
        'radius-lg' => '.3rem',
    ],
    'custom_css' => 'theme.css',
    'code' => ['light' => 'mono-light.json'],
],
'head' => [
    'preload' => ['/fonts/plex-sans.woff2'],
],
'share_card' => [
    'logo' => 'assets/logo.svg',
    'colors' => ['accent' => '#e0561f'],
],
The share card of the Getting started page: the Pholio logo, the title, the description and the page's address
The share card of /docs/getting-started, drawn by the build. No browser, no image library.
AI visibility

Readable by agents, too.

Assistants and coding agents read your docs as Markdown, not as HTML they have to scrape. Every Pholio build publishes it, with nothing to maintain by hand.

  • Every page as Markdown
    A clean twin next to each page: getting-started.md.
  • llms.txt and llms-full.txt
    An index of every page, and every page in one file: llms.txt, llms-full.txt.
  • skill.md and an agent card
    A skill that tells agents how to read the docs, listed with its digest, plus an A2A agent card.
  • Discovery headers
    Every response, 404s included, sends Link and X-Llms-Txt pointing at the files above.
  • Markdown on request
    Pages answer Accept: text/markdown and assistants like ChatGPT and Claude with the Markdown twin.
  • Copy page menu
    Next to every page title: copy the page as Markdown, or open it in ChatGPT or Claude.
  • Agent score 100/100
    These docs pass every check of verify/agent-score.mjs, modelled on mint score.
# Pholio
 
> Pholio turns a folder of Markdown into a documentation site: static HTML, one theme in light and dark, search in the browser. Plain PHP 8.2 at build time, zero dependencies, MIT.
 
## Notes for agents
 
Install Pholio with `curl -fsSL https:/​/​pholio.lukaloehr.com/​install.sh | sh`. Pages below are the Markdown twins of the HTML docs; prefer them.
 
## Pholio
 
- [Pholio](https:/​/​pholio.lukaloehr.com/​docs/​index.md): Beautiful documentation, powered by Markdown. One polished theme, fast search, zero dependencies.
- [Getting started](https:/​/​pholio.lukaloehr.com/​docs/​getting-started.md): Install Pholio, create a project, write a page, build and preview the site.
- [Content format](https:/​/​pholio.lukaloehr.com/​docs/​content-format.md): The Markdown Pholio accepts, the component tags it understands and the meta.json tree files.
> Documentation index: https:/​/​pholio.lukaloehr.com/​docs/​llms.txt, a list of every page in this documentation.
 
# Getting started
 
> Install Pholio, create a project, write a page, build and preview the site.
 
## Requirements
 
- PHP 8.2 or newer, command line, with `mbstring` and `ctype`.
- `zlib` for the [share cards](https:/​/​pholio.lukaloehr.com/​docs/​configuration.md#share-cards), the PNG
images a link to the site shows, which are drawn when `site.url` is set. Nearly
every PHP build has it (`php -m | grep zlib`).
- PCRE2 10.43 or newer is recommended for full syntax highlighting. It is bundled
Same URL, Markdown for agents
$ curl -H "Accept: text/markdown" https://pholio.lukaloehr.com/docs/getting-started
Try it

Five commands.

The installer downloads the release from GitHub, checks it against SHA256SUMS, checks PHP and PCRE2, and links pholio into ~/.local/bin. Requires PHP 8.2+ with mbstring and ctype. Or download v0.4.2 directly.

Terminal
$ curl -fsSL https://pholio.lukaloehr.com/install.sh | shcurl -fsSL pholio.lukaloehr.com/install.sh | sh
$ pholio init my-docs
$ cd my-docs
$ pholio dev     # http://127.0.0.1:8080
$ pholio build   # static site in public/