Contributing.rst 1.2 KB

123456789101112131415161718192021222324252627282930
  1. Contributing a plugin
  2. =====================
  3. Details of how to write a plugin is explained in the official Pelican `docs`_.
  4. If you want to contribute, please fork this repository and issue your pull
  5. request. Make sure that your plugin follows the structure below::
  6. my_plugin
  7. ├── __init__.py
  8. ├── my_plugin.py
  9. └── Readme.rst / Readme.md
  10. ``my_plugin.py`` is the actual plugin implementation. Include a brief
  11. explanation of what the plugin does as a module docstring. Leave any further
  12. explanations and usage details to ``Readme`` file.
  13. ``__init__.py`` should contain a single line with ``from .my_plugin import *``.
  14. If you have tests for your plugin, place them in the ``tests`` folder with name
  15. ``test_my_plugin.py``. You can use ``test_data`` folder inside, if you need content
  16. or templates in your tests.
  17. **Note:** Plugins in the repository are licensed with *GNU AFFERO GENERAL PUBLIC LICENSE
  18. Version 3*. By submitting a pull request, you accept to release your
  19. contribution under same license. Please refer to the ``LICENSE`` file for
  20. full text of the license.
  21. .. _docs: http://docs.getpelican.com/en/latest/plugins.html#how-to-create-plugins