semvec/pypi-packages huggingface dataset:
mkdocs-minify-plugin 0.8.0
An MkDocs plugin to minify HTML, JS or CSS files prior to being written to disk
License: MIT
Requires Python: >=3.8
Keywords: mkdocs minify publishing documentation html css

# mkdocs-minify-plugin

[![PyPI - Python Version][python-image]][pypi-link]

An MkDocs plugin to minify HTML, JS or CSS files prior to being written to disk.

HTML minification is done using [htmlmin2](https://github.com/wilhelmer/htmlmin).

JS minification is done using [jsmin](https://github.com/tikitu/jsmin/).

CSS minification is done using [csscompressor](https://github.com/sprymix/csscompressor).

## Setup

Install the plugin using pip:

```bash
pip install mkdocs-minify-plugin
```

Activate the plugin in `mkdocs.yml`:

```yaml
plugins:
  - search
  - minify:
      minify_html: true
      minify_js: true
      minify_css: true
      htmlmin_opts:
          remove_comments: true
      cache_safe: true
      js_files:
          - my/javascript/dir/file1.js
          - my/javascript/dir/file2.js
      css_files:
          - my/css/dir/file1.css
          - my/css/dir/file2.css
```

> **Note:** If you have no `plugins` entry in your config file yet, you'll likely also want to add the `search` plugin. MkDocs enables it by default if there is no `plugins` entry set, but now you have to enable it explicitly.

## Options

- `minify_html`:
  - Defaults to `False`.
  - Sets whether HTML files should be minified.
- `minify_js`:
  - Defaults to `False`.
  - Sets whether JS files should be minified.<br>
    If set to `True`, you must specify the JS to be minified files using `js_files` (see below).
- `minify_css`:
  - Defaults to `False`.
  - Sets whether CSS files should be minified.<br>
    If set to `True`, you must specify the CSS to be minified files using `css_files` (see below).
- `htmlmin_opts`:
  - Defaults to `None`.
  - Sets runtime htmlmin API options using the [config parameters of htmlmin](https://htmlmin.readthedocs.io/en/latest/reference.html#main-functions)
- `cache_safe`:
  - Defaults to `False`.
  - Sets whether a hash should be added to the JS and CSS file names. This ensures that the browser always loads the latest version of the files instead of loading them from the cache.<br>
    If set to `True`, you must specify the files using `js_files` or `css_files` (see below).
- `js_files`:
  - Defaults to `None`.
  - List of JS files to be minified.<br>
    The plugin will generate minified versions of these files and save them as `.min.js` in the output directory.
- `css_files`:
  - Defaults to `None`.
  - List of CSS files to be minified.<br>
    The plugin will generate minified versions of these files and save them as `.min.css` in the output directory.

> **Note:** When using `minify_js` or `minify_css`, you don't have to modify the `extra_javascript` or `extra_css` entries
in your `mkdocs.yml` file. The plugins automatically takes care of that.
Both `minify_js` and `minify_css` support the use of **globs** (e.g. `**/*.css`).

[pypi-link]: https://pypi.python.org/pypi/mkdocs-minify-plugin/
[python-image]: https://img.shields.io/pypi/pyversions/mkdocs-minify-plugin?logo=python&logoColor=aaaaaa&labelColor=333333
pvcast 0.2.0
Open-source python package to make short-term local solar power forecasts.
License: MIT
Requires Python: >=3.12,<4.0
Keywords: energy,pvcast,api,solar,photovoltaics

## PVCast - Local Solar Forecasting

<!-- PROJECT SHIELDS -->
[![Code Coverage][codecov-shield]][codecov-url]
[![Python Versions][python-versions-shield]][pypi]
[![PyPi Downloads][downloads-shield]][downloads-url]
[![License][license-shield]](LICENSE)
[![Discord][discord-shield]][discord-url]

For all documentation please refer to the [wiki](https://github.com/Open-HEMS/pvcast/wiki).


## License

MIT License

Copyright (c) 2022-2023 Stefan de Lange

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

<!-- MARKDOWN LINKS & IMAGES -->
[releases]: https://github.com/Open-HEMS/pvcast/releases
[codecov-shield]: https://codecov.io/gh/Open-HEMS/pvcast/graph/badge.svg?token=AT7GIZC76Z
[codecov-url]: https://codecov.io/gh/Open-HEMS/pvcast
[pypi]: https://pypi.org/project/pvcast/
[python-versions-shield]: https://img.shields.io/pypi/pyversions/pvcast
[downloads-shield]: https://img.shields.io/pypi/dm/pvcast
[downloads-url]: https://pypistats.org/packages/pvcast
[license-shield]: https://img.shields.io/github/license/Open-HEMS/pvcast?color=blue
[discord-shield]: https://img.shields.io/discord/1182408466019655700?logo=discord&label=discord&color=%235662F6
[discord-url]: https://discord.gg/M9dqkkB64K