docs: Create a markdown-it plugin

This commit is contained in:
Quentin Boyer 2024-09-11 19:12:19 +02:00 committed by Matt Sturgeon
parent 6665521525
commit cab2a30ae1
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
12 changed files with 751 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{
buildPythonPackage,
pytestCheckHook,
markdown-it-py,
lib,
setuptools,
pytest-regressions,
}:
buildPythonPackage {
pname = "gfm-alerts-to-admonitions";
version = "0.0";
format = "pyproject";
src = ./.;
build-system = [ setuptools ];
dependencies = [ markdown-it-py ];
nativeCheckInputs = [
pytestCheckHook
pytest-regressions
];
pythonImportsCheck = [ "gfm_alerts_to_admonitions" ];
meta = {
description = "Transform GFM alerts to nixos-render-docs admonitions";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.traxys ];
};
}