Readme.rst 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Pelican Plugins
  2. ###############
  3. Beginning with version 3.0, Pelican supports plugins. Plugins are a way to add
  4. features to Pelican without having to directly modify the Pelican core. Starting
  5. with 3.2, all plugins (including the ones previously in the core) are
  6. moved here, so this is the central place for all plugins.
  7. How to use plugins
  8. ==================
  9. Easiest way to install and use these plugins is cloning this repo::
  10. git clone https://github.com/getpelican/pelican-plugins
  11. and activating the ones you want in your settings file::
  12. PLUGIN_PATH = 'path/to/pelican-plugins'
  13. PLUGINS = ['assets', 'sitemap', 'gravatar']
  14. ``PLUGIN_PATH`` can be a path relative to your settings file or an absolute path.
  15. Alternatively, if plugins are in an importable path, you can omit ``PLUGIN_PATH``
  16. and list them::
  17. PLUGINS = ['assets', 'sitemap', 'gravatar']
  18. or you can ``import`` the plugin directly and give that::
  19. import my_plugin
  20. PLUGINS = [my_plugin, 'assets']
  21. Please refer to the ``Readme`` file in a plugin's folder for detailed information about
  22. that plugin.
  23. Contributing a plugin
  24. =====================
  25. Please refer to the `Contributing`_ file.
  26. .. _Contributing: Contributing.rst