3waffel / mkdocs-tmpl-nix

A nix lib for deploying mkdocs site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MkDocs Template Nix

This repository provides a nix lib for building mkdocs sites with default config.

Usage

  • Include the module in your flake inputs

    {
        inputs.mkdocs-tmpl-nix.url = "github:3waffel/mkdocs-tmpl-nix";
    }
  • Use the lib in your package outputs

    {
        # ...
        docs = mkdocs-tmpl-nix.lib.${system}.mkDocs {
            name = "docs";
            docs = ./docs;
            extraConfig = {
                "site_name" = "Some Site";
                "site_url" = "https://example.com";
            };
        };
    }
  • Build the package

    nix build .#docs
    

Formatting test

  • list1
    • list1.1
    • list1.2
  • list2
    • list2.1
    • list2.2

About

A nix lib for deploying mkdocs site


Languages

Language:Nix 100.0%