Skip to content

Commit

Permalink
docs: fix documentation generation
Browse files Browse the repository at this point in the history
  • Loading branch information
pta2002 committed Dec 29, 2022
1 parent 5f67918 commit dd9ec12
Show file tree
Hide file tree
Showing 41 changed files with 55 additions and 552 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ workflows:
- build-docs
filters:
branches:
only: main
only: main
35 changes: 35 additions & 0 deletions docs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ pkgs, lib, modules, ... }:
let
options = lib.evalModules {
modules = modules;
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
options = lib.filterAttrs (k: _: k != "_module") options.options;
warningsAreErrors = false;
};
asciidoc = docs.optionsAsciiDoc;
in
pkgs.stdenv.mkDerivation {
name = "nixvim-docs";

src = asciidoc;
buildInputs = [
pkgs.asciidoctor
];

phases = [ "buildPhase" ];

buildPhase = ''
mkdir -p $out/share
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/index.html
'';
}
48 changes: 0 additions & 48 deletions docs/default.nix

This file was deleted.

27 changes: 0 additions & 27 deletions docs/man-nixvim.xml

This file was deleted.

11 changes: 0 additions & 11 deletions docs/man-pages.xml

This file was deleted.

23 changes: 0 additions & 23 deletions docs/manual.xml

This file was deleted.

29 changes: 0 additions & 29 deletions docs/plugins.md

This file was deleted.

155 changes: 0 additions & 155 deletions docs/plugins/colorschemes/base16.md

This file was deleted.

Loading

0 comments on commit dd9ec12

Please sign in to comment.