commit
5958a65645
3 changed files with 70 additions and 0 deletions
37
pkgs/development/python-modules/mkdocs-minify/default.nix
Normal file
37
pkgs/development/python-modules/mkdocs-minify/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, callPackage
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, mkdocs
|
||||
, csscompressor
|
||||
, htmlmin
|
||||
, jsmin
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "mkdocs-minify";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "byrnereese";
|
||||
repo = "${pname}-plugin";
|
||||
rev = version;
|
||||
sha256 = "sha256-7v4uX711KAKuXFeVdLuIdGQi2i+dL4WX7+Zd4H1L3lM=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
csscompressor
|
||||
htmlmin
|
||||
jsmin
|
||||
mkdocs
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "mkdocs" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A mkdocs plugin to minify the HTML of a page before it is written to disk.";
|
||||
homepage = "https://github.com/byrnereese/mkdocs-minify-plugin";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ tfc ];
|
||||
};
|
||||
}
|
31
pkgs/development/python-modules/mkdocs-redirects/default.nix
Normal file
31
pkgs/development/python-modules/mkdocs-redirects/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ lib
|
||||
, callPackage
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, mkdocs
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "mkdocs-redirects";
|
||||
version = "1.0.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mkdocs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-hdMfl8j+kZzePkSd/bBHKuVXAVA1sAt7DvPZj9x5i0c=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
mkdocs
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "mkdocs" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Open source plugin for Mkdocs page redirects";
|
||||
homepage = "https://github.com/mkdocs/mkdocs-redirects";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ tfc ];
|
||||
};
|
||||
}
|
|
@ -5258,6 +5258,8 @@ in {
|
|||
mkdocs = callPackage ../development/python-modules/mkdocs { };
|
||||
mkdocs-material = callPackage ../development/python-modules/mkdocs-material { };
|
||||
mkdocs-material-extensions = callPackage ../development/python-modules/mkdocs-material/mkdocs-material-extensions.nix { };
|
||||
mkdocs-minify = callPackage ../development/python-modules/mkdocs-minify { };
|
||||
mkdocs-redirects = callPackage ../development/python-modules/mkdocs-redirects { };
|
||||
|
||||
mkl-service = callPackage ../development/python-modules/mkl-service { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue