mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-30 23:55:15 +02:00
added formatter + reformat existing codebase (#175)
This commit is contained in:
parent
0bf4313f22
commit
264de8cefb
96 changed files with 3727 additions and 3341 deletions
46
docs.nix
46
docs.nix
|
@ -1,8 +1,12 @@
|
|||
{ pkgs, lib, modules, ... }:
|
||||
let
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
modules,
|
||||
...
|
||||
}: let
|
||||
options = lib.evalModules {
|
||||
modules = modules;
|
||||
specialArgs = { inherit pkgs lib; };
|
||||
specialArgs = {inherit pkgs lib;};
|
||||
};
|
||||
docs = pkgs.nixosOptionsDoc {
|
||||
# If we don't do this, we end up with _module.args on the generated options, which we do not want
|
||||
|
@ -11,25 +15,25 @@ let
|
|||
};
|
||||
asciidoc = docs.optionsAsciiDoc;
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "nixvim-docs";
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "nixvim-docs";
|
||||
|
||||
src = asciidoc;
|
||||
buildInputs = [
|
||||
pkgs.asciidoctor
|
||||
];
|
||||
src = asciidoc;
|
||||
buildInputs = [
|
||||
pkgs.asciidoctor
|
||||
];
|
||||
|
||||
phases = [ "buildPhase" ];
|
||||
phases = ["buildPhase"];
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p $out/share/doc
|
||||
cat <<EOF > header.adoc
|
||||
= NixVim options
|
||||
This lists all the options available for NixVim.
|
||||
:toc:
|
||||
buildPhase = ''
|
||||
mkdir -p $out/share/doc
|
||||
cat <<EOF > header.adoc
|
||||
= NixVim options
|
||||
This lists all the options available for NixVim.
|
||||
:toc:
|
||||
|
||||
EOF
|
||||
cat header.adoc $src > tmp.adoc
|
||||
asciidoctor tmp.adoc -o $out/share/doc/index.html
|
||||
'';
|
||||
}
|
||||
EOF
|
||||
cat header.adoc $src > tmp.adoc
|
||||
asciidoctor tmp.adoc -o $out/share/doc/index.html
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue