Skip to content

AngryMane/mkdocs-plugin-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a template for a MkDocs plugin.

How to use

Generate your plugin

You can generate your own plugin by the following command.

bash generate_template.sh ${PLUGIN_NAME} ${PLUGIN_CLASS_NAME}

Edit your plugin

TODO:

Install your plugin

Install your plugin by the following command:

cd ${GENERATED_PLUGIN_DIR}
python3 setup.py install

Use your plugin

Activate the plugin in mkdocs.yml:

NOTE:
If you use - charactre in ${PLUGIN_NAME}, it will be replaced to '_' charactor.
This is becase of python module naming rule.

plugins:
  - search
  - ${PLUGIN_NAME}

Versions of python & mkdocs

I have confirmed that it works in the following environment.

version
python 3.6 - 3.9
mkdocs 1.1

If you want to create a plugin for another mkdocs version, checkout the corresponding tag.

See Also

  • plugins.md
    This is user-guide for plusings.
  • plugins.py
    Mkdocs defines the events for plugins in this file.

About

A template for creating mkdocs plugins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 54.2%
  • Python 45.8%