Skip to content

Commit

Permalink
Merge pull request #21 from joachimwolff/feature/plugin-system
Browse files Browse the repository at this point in the history
Feature/plugin system
  • Loading branch information
bgruening authored Oct 12, 2016
2 parents cd92be8 + af8a3f1 commit d5dc39a
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/source/admin/images_webhooks/masthead.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/source/admin/images_webhooks/tool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/source/admin/images_webhooks/workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 42 additions & 1 deletion doc/source/admin/webhooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,57 @@ Galaxy webhooks provides a simple way of inserting icons, links, or other HTML e
For this Galaxy provides some entry points which can be used to extend the client with content. This content
can consists out of simple HTML, JS or dynamically generated content from a python function.

Plugin activation
-----------------
The plugins are deactivate by default. To activate a tool go to:

.. code-block:: none
config/plugins/webhooks/{TOOL_NAME}/config/{TOOL_NAME}.yml # path to config file of a plugin
and set the parameter activate to true:

.. code-block:: python
activate: true
Entry points
------------

There are four currently available entry points (types):
Currently there are four entry points (types) available:

- tool (after tool execution)
- workflow (after workflow execution)
- masthead (at the top level masthead)
- history-menu (inside History Panel menu)

For each type there is an example provided:

- Tool and workflow: A comic strip can be shown when a tool or a workflow is running. Right now PhD_ and XKCD_ comics are provided.

.. _PhD: http://phdcomics.com
.. _XKCD: http://xkcd.com/

.. image:: images_webhooks/tool.png
:scale: 50 %

.. image:: images_webhooks/workflow.png
:scale: 50 %

- Additional functionality can be added to the top menu. Two dummy buttons are implemented to show the idea:

- A button that links to biostars
.. image:: images_webhooks/masthead.png
:scale: 50 %

- A button that shows a pop-up with information about an user.
.. image:: images_webhooks/masthead_trans_object.png
:scale: 50 %

- The history menu can be extended. In this case we use two dummy entries 'History Menu Webhook Item 1' and 'History Menu Webhook Item 2'.
.. image:: images_webhooks/history-menu.png
:scale: 25 %

Plugin structure
----------------

Expand Down

0 comments on commit d5dc39a

Please sign in to comment.