Getting Started

Short path from zero to a published site with default local mode.

This is the shortest default scenario. Start here.

Recommended default: local content in the same repository

  1. Create your site repository via Use this template from a Notepub template. Available templates
  2. In repository settings, enable GitHub Pages with GitHub Actions as the source. You can also configure a custom domain there.
  3. Push changes to main. Build usually takes under a minute. Monitor progress in Actions. After build, the site will be available at: https://USER.github.io/REPOSITORY, where USER is your GitHub username and REPOSITORY is your repository name. You can always check the current URL in repository Settings -> Pages.

To edit your site content, place your markdown files into content/ and remove unnecessary starter files.

Important: keep frontmatter structure in your markdown files consistent with your rules, so Notepub can build your site correctly.

CI does:

  • downloads pinned notepub binary
  • runs index/build
  • deploys dist/ to Pages

What users usually do next

After first deploy, you usually need to:

If you use template repos, also see Template Repositories.

Minimal frontmatter

Before writing lots of content, read Content Structure in Recipe Repositories. It helps you model notes correctly (home/hub/article/page/search). Once you understand the structure, you can model your own markdown worlds and build static websites of any complexity and nesting.

For a typical recipe:

---
type: article
slug: my-first-note # canonical page URL
title: Page title # also SEO title
description: Note description # also SEO meta description
draft: false
---

Advanced content source modes

Next: Configuration Reference and rules.yaml Reference.

Все результаты