Skip to content

mkdocs_nype.__main__

Synopsis

mkdocs-nype module entry point

This script adds non-theme, non-MkDocs functionality.

  1. JavaScript and Cascading Style Sheets minification

    This could likely be added in the __init__.py file and execute during theme import. However, modifying files while loading a theme doesn't seem right. So this feature moved here.

    As the minification is opt-in, the script can also modify local MkDocs project JS/CSS assets for the production deployment.

MIT License 2024 Kamil Krzyśków (HRY) for Nype (npe.cm)

main

main()

minify

minify(inject_minified_flag, js_dir, css_dir, remove_prefix)

get_minified_content

get_minified_content(file_path, processor)

find

find(lst, value)