This repository has been archived by the owner on May 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
ext_localconf.php
54 lines (46 loc) · 1.77 KB
/
ext_localconf.php
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
51
52
53
54
<?php
defined('TYPO3_MODE') || die();
$textFileExtensions = explode(',', $GLOBALS['TYPO3_CONF_VARS']['SYS']['textfile_ext']);
$textFileExtensions = array_merge($textFileExtensions, array('json', 'py', 'rst', 'yml'));
$GLOBALS['TYPO3_CONF_VARS']['SYS']['textfile_ext'] = implode(',', array_unique($textFileExtensions));
/** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
// Hook into EXT:documentation
$signalSlotDispatcher->connect(
'TYPO3\\CMS\\Documentation\\Controller\\DocumentController',
'afterInitializeDocuments',
'Causal\\Sphinx\\Slots\\SphinxDocumentation',
'postProcessDocuments'
);
// Hook into ourselves to post-process LaTeX generated files
$signalSlotDispatcher->connect(
'Causal\\Sphinx\\Utility\\SphinxBuilder',
'afterBuildLatex',
'Causal\\Sphinx\\Slots\\LatexPostProcessor',
'postprocess'
);
// Hook into ourselves to handle custom projects
$signalSlotDispatcher->connect(
'Causal\\Sphinx\\Controller\\DocumentationController',
'afterInitializeReferences',
'Causal\\Sphinx\\Slots\\CustomProject',
'postprocessReferences'
);
$signalSlotDispatcher->connect(
'Causal\\Sphinx\\Controller\\DocumentationController',
'renderUserDocumentation',
'Causal\\Sphinx\\Slots\\CustomProject',
'render'
);
$signalSlotDispatcher->connect(
'Causal\\Sphinx\\Controller\\InteractiveViewerController',
'retrieveBasePath',
'Causal\\Sphinx\\Slots\\CustomProject',
'retrieveBasePath'
);
$signalSlotDispatcher->connect(
'Causal\\Sphinx\\Controller\\RestEditorController',
'retrieveRestFilename',
'Causal\\Sphinx\\Slots\\CustomProject',
'retrieveRestFilename'
);