Quickstart

Get a documentation site running locally in five minutes.

Prerequisites

Docyard requires Ruby 3.2 or higher.

brew install ruby

Add Homebrew Ruby to your path by following the instructions shown after installation.

Verify your Ruby version:

ruby -v

Install Docyard

gem install docyard

Verify the installation:

docyard version

Create a Project

docyard init my-docs
cd my-docs

This creates a new directory with your configuration and starter pages.

Start the Server

docyard serve

Open http://localhost:4200 in your browser. You should see your new documentation site.

Note

The server watches for changes. Edit any Markdown file and the browser refreshes automatically.

Edit Your First Page

Open docs/getting-started.md in your editor. Make a change, save the file, and watch it update in the browser.

Try adding a callout:

:::note
This is my first Docyard site!
:::

Build for Production

When you’re ready to deploy:

docyard build

This generates a dist/ directory containing static HTML, CSS, and JavaScript. Upload these files to any web host.

What’s Next

Edit this page
Last updated