-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin_settings.py
More file actions
50 lines (39 loc) · 1.2 KB
/
plugin_settings.py
File metadata and controls
50 lines (39 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from utils import plugins
from utils.install import update_settings
PLUGIN_NAME = 'Pandoc Plugin'
DESCRIPTION = 'A plugin to assist typesetters with converting docx/rtf files to html'
AUTHOR = 'Drew Stimson and Daniel Evans'
VERSION = "1.0"
JANEWAY_VERSION = '1.5.0'
SHORT_NAME = 'pandoc_plugin'
MANAGER_URL = 'pandoc_index'
MEMORY_LIMIT_MB = 512
class PandocPlugin(plugins.Plugin):
plugin_name = PLUGIN_NAME
display_name = PLUGIN_NAME
description = DESCRIPTION
author = AUTHOR
short_name = SHORT_NAME
manager_url = MANAGER_URL
version = VERSION
janeway_version = "1.4.0"
is_workflow_plugin = False
def install():
PandocPlugin.install()
update_settings(
file_path='plugins/pandoc_plugin/install/settings.json',
)
def hook_registry():
"""
When site with hooks loaded, this is run for each plugin to create list of plugins
"""
return {
'conversion_buttons': {
'module': 'plugins.pandoc_plugin.hooks',
'function': 'inject_pandoc',
},
'conversion_row': {
'module': 'plugins.pandoc_plugin.hooks',
'function': 'conversion_row_hook',
},
}