Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gvolpe/nmd

NixOS Module Documentation generator
https://github.com/gvolpe/nmd

documentation documentation-generator nix nixos

Last synced: 13 days ago
JSON representation

NixOS Module Documentation generator

Awesome Lists containing this project

README

        

# nmd

Fork of [rycee/nmd](https://gitlab.com/rycee/nmd/) with theming options and flakes support.

## Usage

Add flake input.

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

Add overlay.

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

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

```nix
{
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](https://gvolpe.com/neovim-flake/).