Scraps Doc

Tutorial/

Getting Started

commited date: 2026-03-13

This guide covers using Scraps as a static site generator (SSG).

Setup

  1. Install Scraps

    • Follow the Installation guide to install Scraps on your system
  2. Initialize Project

    • Create a new Scraps project using Init:

      ❯ scraps init my-knowledge-base
      ❯ cd my-knowledge-base
      
  3. Configure Project

Content Creation

  1. Write Markdown Files

  2. Add Internal Links

    • Connect documents using Normal Link syntax:
      • [[Page Name]] for simple links
      • [[Page Name|Custom Text]] for custom link text
  3. Enhance Content

Build and Preview

  1. Generate Site

    • Use Build to generate static site files:

      ❯ scraps build
      
  2. Preview Locally

    • Use Serve for local preview and debugging:

      ❯ scraps serve
      
  3. Deploy

Quality Check

  • Lint: Use Lint to check wiki-link quality:

    ❯ scraps lint
    

AI Integration