emanote

Emanote renders your Markdown files as a nice static site with hot reload.

Use nix run to run the live server, and nix build to build the static site.

See emanote-template for an example flake.nix.

Installation

To use these options, add to your flake inputs:

emanote.url = "github:srid/emanote";

and inside the mkFlake:

imports = [
  inputs.emanote.flakeModule
];

Run nix flake lock and you're set.

Options

perSystem.emanote

Emanote sites config

Type: submodule

Declared by:

perSystem.emanote.package

The emanote package to use.

By default, the ‘emanote’ flake input will be used.

Type: package

Default: "inputs'.emanote.packages.default"

Declared by:

perSystem.emanote.sites

Emanote sites

Type: attribute set of (submodule)

Declared by:

Allow broken links in the static site

Type: boolean

Default: false

Declared by:

perSystem.emanote.sites.<name>.basePath

Top-level directory to copy the static site to

Type: string

Default: "Root path"

Declared by:

perSystem.emanote.sites.<name>.baseUrl

Base URL for relative links

Type: string

Default: "Root URL"

Declared by:

perSystem.emanote.sites.<name>.layers

List of layers to use for the site

Type: list of (submodule)

Declared by:

perSystem.emanote.sites.<name>.layers.*.mountPoint

Mount point for the layer

Type: null or string

Default: null

Declared by:

perSystem.emanote.sites.<name>.layers.*.outputs.layer

Layer spec

Type: string (read only)

Declared by:

perSystem.emanote.sites.<name>.layers.*.outputs.layerString

Layer spec

Type: string (read only)

Declared by:

perSystem.emanote.sites.<name>.layers.*.path

Directory path to notes

Type: path

Declared by:

perSystem.emanote.sites.<name>.layers.*.pathString

Like path but local (not in Nix store)

Type: string

Default: toString path

Declared by:

perSystem.emanote.sites.<name>.port

Port to listen on

Type: signed integer

Default: "Random port"

Declared by:

perSystem.emanote.sites.<name>.prettyUrls

Generate links without .html

Type: boolean

Default: false

Declared by: