Skip to content
Inkdocs.

Markdown features.

Inkdocs supports GitHub Flavored Markdown, plus a few docs extras. Everything here also renders sensibly on GitHub.

Callouts

Use GitHub’s alert syntax:

> [!NOTE]
> Useful information that users should know.

Useful information that users should know, even when skimming.

Helpful advice for doing things better or more easily.

Key information users need to know to achieve their goal.

Urgent info that needs immediate attention to avoid problems.

Advises about risks or negative outcomes of certain actions.

Code blocks

Code is highlighted on the server, so pages ship no highlighting JavaScript. More than 180 languages are supported. Add title="…" to show a file name:

```php title="config.php"
return ['site_name' => 'Acme Docs'];
```
config.php
<?php

return [
    'site_name' => 'Acme Docs',
    'versions'  => ['v3' => '3.x', 'v2' => '2.x'],
    'cache'     => true,
];
// Every code block gets a copy button.
const res = await fetch('/search.json');
console.log(`${(await res.json()).length} sections indexed`);

Tables

Feature Inkdocs Typical PHP CMS
Database None MySQL
PHP on a cached request No Yes
Admin panel to secure None Yes

Diagrams

Fenced blocks marked mermaid render as diagrams. Mermaid is bundled and loads only on pages that use it, so other pages stay light and nothing is fetched from a CDN.

sequenceDiagram
  participant Writer
  participant Git
  participant Server
  Writer->>Git: git push
  Git->>Server: deploy
  Server->>Server: bin/inkdocs cache:warm

Task lists, footnotes, and the rest

Images

Put images in public/assets/ and link with a root-relative path. Inkdocs adds the base URL for you, so this works in a subfolder install too:

![Architecture](/assets/img/architecture.png)

  1. Footnotes collect at the bottom of the page. ↩

Released under the MIT License.

Built with Inkdocs