{ "info": { "author": "Bryan Brattlof", "author_email": "hello@bryanbrattlof.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Pelican", "Framework :: Pelican :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries" ], "description": "pelican-htmlmin\n###############\n\nA `Pelican `_ plugin that uses\n`htmlmin `_ to remove comments and extra\nwhitespace from your website after the pages have been generated.\n\nTurning this:\n\n.. code-block:: html\n\n \n \n Hello, World! \n \n \n

How you doing?

\n \n \n\n\nInto this:\n\n.. code-block:: html\n\n Hello, World!

How you doing?

\n\nInstalling\n##########\n\n:code:`pelican-htmlmin`, is available on pip:\n\n.. code-block::\n\n $ pip install pelican-htmlmin\n\nAfter you've installed the package, update the :code:`PLUGINS` variable in your\n:code:`pelicanconf.py` to include the package in the next pelican build.\n\n.. code-block:: python\n\n PLUGINS = [\n # ...\n 'pelican_htmlmin',\n # ...\n ]\n\nOptions\n#######\n\nBeing a very small wrapper around :code:`htmlmin`, there are only a few options\nthat you may need.\n\nHTMLMIN_ENABLED\n===============\n\nIf Pelican is in :code:`DEBUG` mode, :code:`pelican-htmlmin` will not minify\nfiles to help with debugging. You only need to set\n:code:`HTMLMIN_ENABLED = True` if you want to minify your HTML files while\n:code:`DEBUG` is set.\n\n.. code-block:: python\n\n # minify generated files only if pelican is not in DEBUG mode\n HTMLMIN_ENABLED = not logger.getEffectiveLevel() == logging.DEBUG\n\nHTMLMIN_MATCH\n=============\n\n:code:`pelican-htmlmin` looks for files ending with :code:`.html` or\n:code:`.htm` to minify. You can use the :code:`HTMLMIN_MATCH` to change the\nregular expression that matches the files you wish to minify.\n\n.. code-block:: python\n\n HTMLMIN_MATCH = r'.html?$'\n\nHTMLMIN_OPTIONS\n===============\n\nIf you wish to pass arguments directly to :code:`htmlmin`, use the\n:code:`HTMLMIN_OPTIONS` to pass keyword arguments.\n\n.. code-block:: python\n\n HTMLMIN_OPTIONS = {\n 'remove_comments': True,\n 'remove_all_empty_space': True,\n 'remove_optional_attribute_quotes': False\n }\n\nFor more information on the arguments you can give :code:`htmlmin`, see their\n`documentation here\n`_\n\nContributing\n############\n\nPlease feel free to help. Issues, pull requests, and `patches via email\n`_, all are warmly welcomed.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/bryanbrattlof/pelican-htmlmin", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pelican-htmlmin", "package_url": "https://pypi.org/project/pelican-htmlmin/", "platform": "", "project_url": "https://pypi.org/project/pelican-htmlmin/", "project_urls": { "Homepage": "https://gitlab.com/bryanbrattlof/pelican-htmlmin" }, "release_url": "https://pypi.org/project/pelican-htmlmin/1.0.1/", "requires_dist": [ "htmlmin" ], "requires_python": "", "summary": "Minifies HTML files generated by Pelican", "version": "1.0.1" }, "last_serial": 5816005, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "2e072f7b5e03574eb4f8e5cfc78d34ce", "sha256": "b518b484134b56d0c775230ff5098a9067d15f397401207a2db912cdfa0cf5da" }, "downloads": -1, "filename": "pelican-htmlmin-0.0.0.tar.gz", "has_sig": false, "md5_digest": "2e072f7b5e03574eb4f8e5cfc78d34ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3044, "upload_time": "2019-09-09T01:24:22", "url": "https://files.pythonhosted.org/packages/5e/63/138882da6b865ec3773b79eda51506c513dd0bee4b2a444f60653e90b07e/pelican-htmlmin-0.0.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "87cca2a8d07a9270638b89ae26d73996", "sha256": "ba85c04009ac0b9abb89ce152ef35aff07c9491ecd4b286c2abd84b00d3b3006" }, "downloads": -1, "filename": "pelican_htmlmin-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "87cca2a8d07a9270638b89ae26d73996", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3416, "upload_time": "2019-09-09T01:57:23", "url": "https://files.pythonhosted.org/packages/0a/63/f73c35405ced3684882946871b07768c22356f155133cd8325c38ba40aa1/pelican_htmlmin-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6c1b3eb81ac3647d4a8104da0abb2e4b", "sha256": "c47bd381bbadc555116b2470862393e77138117457e72832f1ccc537727e7478" }, "downloads": -1, "filename": "pelican-htmlmin-1.0.0.tar.gz", "has_sig": false, "md5_digest": "6c1b3eb81ac3647d4a8104da0abb2e4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3024, "upload_time": "2019-09-09T01:57:25", "url": "https://files.pythonhosted.org/packages/c3/48/d359e3bdd64e1bef4abdabdc0056224e6ba3501591f4abb5325723e476dc/pelican-htmlmin-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "d290d12dec5462821c4fdf69e1e1b5c5", "sha256": "70a128648238973ec46cc1279cdd400e8082905ac3e76274dade1c3149dc67ac" }, "downloads": -1, "filename": "pelican_htmlmin-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d290d12dec5462821c4fdf69e1e1b5c5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3538, "upload_time": "2019-09-11T16:58:26", "url": "https://files.pythonhosted.org/packages/f0/7e/6f4f1521298eb49d231b78beab02eb79dfd129c3461b50fca588dd1a588d/pelican_htmlmin-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8e92ed5cae36f83042060d9d11258aaa", "sha256": "5015dc077e9c94424cebbd34565edf1ad960f2c7ceca9dbbbc488f00f5314a2a" }, "downloads": -1, "filename": "pelican-htmlmin-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8e92ed5cae36f83042060d9d11258aaa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3168, "upload_time": "2019-09-11T16:58:28", "url": "https://files.pythonhosted.org/packages/b7/59/fdefc19f70d2696606b4c79eaa19aa91c2ad54dac6b9919c81f4e2f38b54/pelican-htmlmin-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d290d12dec5462821c4fdf69e1e1b5c5", "sha256": "70a128648238973ec46cc1279cdd400e8082905ac3e76274dade1c3149dc67ac" }, "downloads": -1, "filename": "pelican_htmlmin-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d290d12dec5462821c4fdf69e1e1b5c5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3538, "upload_time": "2019-09-11T16:58:26", "url": "https://files.pythonhosted.org/packages/f0/7e/6f4f1521298eb49d231b78beab02eb79dfd129c3461b50fca588dd1a588d/pelican_htmlmin-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8e92ed5cae36f83042060d9d11258aaa", "sha256": "5015dc077e9c94424cebbd34565edf1ad960f2c7ceca9dbbbc488f00f5314a2a" }, "downloads": -1, "filename": "pelican-htmlmin-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8e92ed5cae36f83042060d9d11258aaa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3168, "upload_time": "2019-09-11T16:58:28", "url": "https://files.pythonhosted.org/packages/b7/59/fdefc19f70d2696606b4c79eaa19aa91c2ad54dac6b9919c81f4e2f38b54/pelican-htmlmin-1.0.1.tar.gz" } ] }