Skip to content

gvolpe/nmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmd

Fork of rycee/nmd with theming options and flakes support.

Usage

Add flake input.

{
  inputs = {
    nixpkgs.url = github:nixos/nixpkgs/nixpkgs-unstable;
    nmd.url = github:gvolpe/nmd;
  };
}

Add overlay.

{
  pkgs = import nixpkgs {
    inherit system;
    overlays = [ inputs.nmd.overlays.default ];
  };
}

Use the functions provided in the pkgs.nmd set, e.g.

{
  docs = pkgs.nmd.buildDocBookDocs {
    pathName = "super-cool-flake";
    projectName = "My super cool project";
    modulesDocs = [ modulesDocs ];
    documentsDirectory = ./.;
    documentType = "book";
    theme = "night-owl";
  };
}

Rendered example: gvolpe.com/neovim-flake.