mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 04:04:34 +02:00
docs: patch nixos-render-docs to output GFM alerts
This does not add support for _using_ GFM syntax alerts, the nixpkgs syntax must still be used in option descriptions for now.
This commit is contained in:
parent
79010edc14
commit
d0c0821245
2 changed files with 63 additions and 3 deletions
|
@ -31,9 +31,21 @@ let
|
|||
}
|
||||
);
|
||||
|
||||
pkgsDoc = pkgs // {
|
||||
inherit lib;
|
||||
};
|
||||
# Extended nixpkgs instance, with patches to nixos-render-docs
|
||||
pkgsDoc = pkgs.extend (
|
||||
final: prev: {
|
||||
inherit lib;
|
||||
|
||||
nixos-render-docs = prev.nixos-render-docs.overrideAttrs (old: {
|
||||
patches = old.patches or [ ] ++ [
|
||||
# Adds support for GFM-style admonitions in rendered commonmark
|
||||
./0001-Output-GFM-admonition.patch
|
||||
# TODO:add support for _parsing_ GFM admonitions too
|
||||
# https://github.com/nix-community/nixvim/issues/2217
|
||||
];
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
helpers = import ../lib/helpers.nix {
|
||||
inherit lib;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue