Skip to content
Inkdocs.

Project structure.

my-docs/
├── bin/inkdocs         CLI: serve, build, cache:warm, check, new
├── config.php          Site settings
├── content/            Your Markdown (one folder per version)
│   ├── v2/
│   └── v1/
├── public/             The only folder exposed to the web
│   ├── index.php       Front controller
│   ├── .htaccess       Apache rules that serve cached pages
│   ├── assets/         CSS, JS, favicon, your images
│   └── cache/          Rendered pages (generated, safe to delete)
├── src/                The engine
├── theme/              Plain PHP templates
└── vendor/             Composer dependencies

How a request is served

flowchart LR
  A[Request] --> B{Cached file in<br/>public/cache?}
  B -- yes --> C[Web server sends HTML<br/>PHP never runs]
  B -- no --> D[index.php renders Markdown]
  D --> E[Writes public/cache]
  E --> F[Sends HTML]

The first visit to a page after a change costs a few milliseconds of PHP. Every visit after that is a static file.

What gets ignored

Files and folders that start with _ or . are skipped. Use them for drafts, partials or notes:

content/v2/_notes/roadmap.md     not published
content/v2/.drafts/idea.md       not published

You can also hide a single page with front matter. See pages and navigation.

Released under the MIT License.

Built with Inkdocs