Getting started
Install Monoline Docs from npm, initialize a documentation site, preview Markdown pages locally, and build static output for your host.
On this page
Use Node.js 24.14 or newer. Install Monoline Docs from npm in a new or existing project directory.
Create a site
Install the package in your project and initialize the site:
npm install @chitrank2050/monoline-docs npx monoline-docs initFor pnpm, use
pnpm add @chitrank2050/monoline-docsfollowed bypnpm exec monoline-docs init.Start the local preview:
npm run devOpen the address printed in your terminal.
Edit
content/index.md. Changes to content and assets rebuild the preview automatically; restart it after changing configuration.
Your project
content
- index.md
- monoline-docs.yml
- package.json
The initializer creates the configuration, homepage and build/dev scripts. Existing conflicting configuration, homepages or scripts are rejected rather than overwritten. It does not install dependencies.
Write a page
Create content/installation.md:
---
title: Installation
description: Set up your project.
---
## Install
Follow the installation instructions for your project.With generated navigation, the page appears in the sidebar. Read Writing pages for links, headings and MDX.
Build and publish
npm run buildYour static site is written to dist. Deploy this directory to a static host; follow Deployment for base paths and hosting recipes.