Skip to content

Your first page

Start with a working project from installation. Run the commands below from your docs project.

Write the page

Create content/guides/first-command.md:

content/guides/first-command.mdMarkdown
---
title: Your first command
description: Run My Project and check the result.
---

# Your first command

Run `my-project --help` to list the available commands.

## Check the output

The command prints its usage and available options.

Every page needs title and description frontmatter. The title is used in page metadata; the Markdown heading supplies the visible heading. The description supplies page and social metadata.

The file is available at /docs/guides/first-command/. Creating the page makes it routable; add a sidebar entry so readers can find it.

Add a sidebar entry

In docskit.config.ts, add the page to an existing group's items array. A minimal navigation containing the overview and this page is:

docskit.config.ts — navigation fieldTypeScript
navigation: [
  {
    label: "Start here",
    items: [
      { label: "Overview", href: "/docs/" },
      { label: "Your first command", href: "/docs/guides/first-command/" },
    ],
  },
],

The href uses the public route, not the Markdown filename. Keep deployment and version prefixes out of these links. Docskit supplies those prefixes.

Add a relative Markdown link in content/index.md:

Markdown
Read [your first command](./guides/first-command.md).

Docskit converts that filename into its public route. Relative Markdown links also preserve query strings and heading fragments.

Check the result

Shell
pnpm dev

Open /docs/guides/first-command/. Check the heading, sidebar entry, and link from the overview. Then run:

Shell
pnpm check
pnpm build
pnpm preview

The build checks Markdown frontmatter and renders the page. Preview also lets you check search against the completed index.

Read Markdown for alerts, tables, and images, or Navigation and links to organize more pages.