Quick Start Guide

This guide will walk you through installing Verdocs and deploying your first versioned documentation site.

1. Installation

Install Verdocs using the official installer script:

curl -fsSL https://raw.githubusercontent.com/Abhijeet-Gautam5702/verdocs/main/scripts/install.sh | bash

2. Verify Installation

After installation, verify that the verdocs binary is available in your PATH:

# Check version
verdocs --version

# View help
verdocs --help

# Locate the binary
which verdocs

3. Initialize Your Project

Create a new directory for your documentation and initialize it:

mkdir my-docs
cd my-docs
verdocs init

The init command generates a project skeleton with sample versioned content and a default configuration file.

Project Requirements
Before modifying your project, please review the Project Requirements to understand the mandatory directory structure and file naming rules.

4. Managing Versions

By default, Verdocs initializes with sample versioned folders. You should rename or create folders following the Semantic Versioning format (e.g., v1.0.0, v2.0.0-beta).

Note: Every versioned folder must start with a lowercase 'v' to be recognized by the generator.

5. Assets and Images

Place all static assets, such as images, diagrams, and PDFs, in the assets/ directory at the root of your project.

Referencing Images

You can reference images in your Markdown files using two strategies:

6. Configuration

Edit the config.yml file in your project root to customize your website. This file controls:

7. Preview and Live Development

Start the development server to preview your changes in real-time:

verdocs preview

The server will host your site locally (default: http://localhost:8080/<version>). Any changes saved to your Markdown files or configuration will trigger an instant reload in the browser.

Verdocs supports flexible linking between pages:

9. Production Build

Once your documentation is ready, generate a production-ready static build:

verdocs generate

This command creates an out/ directory containing the optimized HTML, CSS, JavaScript, and search indices for your website.

10. Deployment

The contents of the out/ directory are completely static. You can deploy them to any hosting provider, such as:

On this page
1. Installation 2. Verify Installation 3. Initialize Your Project 4. Managing Versions 5. Assets and Images Referencing Images 6. Configuration 7. Preview and Live Development 8. Links and Redirections 9. Production Build 10. Deployment