Skip to content
Inkdocs.

Quick start.

Start the dev server

php bin/inkdocs serve

The dev server turns the cache off, so every save shows up on refresh.

Add a page

Create a Markdown file anywhere inside the version folder:

php bin/inkdocs new v2/02-writing/04-faq "FAQ"

Or create it by hand:

content/v2/02-writing/04-faq.md
---
title: FAQ
description: Answers to common questions.
---

# FAQ

## Can I use HTML?

Yes. Raw HTML is allowed by default.

Refresh the browser. FAQ now appears under Writing, after the pages numbered 01 to 03.

Link to the Markdown file, not the URL:

See [installation](../01-getting-started/01-installation.md#requirements).

Inkdocs rewrites it to /getting-started/installation#requirements. The link also works when someone reads the file on GitHub.

A link to a file that doesn’t exist is underlined in red, and bin/inkdocs check fails. Add check to CI to catch broken links before they ship.

Publish

When you’re done writing on a live server, rebuild the cache:

php bin/inkdocs cache:warm

See Deploy for the full picture.

Released under the MIT License.

Built with Inkdocs