]> git.proxmox.com Git - pve-docs.git/blob - debian/tree/pve-docs-mediawiki/README
38bfee270448fd365b2b15c281af7e8d968e137c
[pve-docs.git] / debian / tree / pve-docs-mediawiki / README
1 To enable the apache site use:
2
3 # a2ensite pve-docs.conf
4 # /etc/init.d/apache2 reload
5
6 Now you should be able to access the documentation at:
7
8 * Admin Guide and Manual pages
9 http://your-server/pve-docs
10
11 * API Viewer
12 http://your-server/pve-docs/api-viewer
13
14 Mediawiki import
15
16 There is a small script 'pve-docs-mediawiki-import' which connects to
17 mediawiki and updates predefined pages with content from this package:
18
19 # pve-docs-mediawiki-import
20
21 Authentification credientials are read from '/root/.pve-docs'.
22 The format is 'username:password'.
23
24 In the MediaWiki settings PHP file ('/var/www/mediawiki/LocalSettings.php') add:
25
26 # ----8<----
27 # for docs-inclusion plugin:
28 require_once("/usr/lib/pve-docs/pvedocs-include.php");
29
30 # for the JS snippet which generates the Table of Content and footer links
31 $wgHooks['BeforePageDisplay'][] = function( OutputPage &$out, Skin &$skin ) {
32 $asciidoc_js = file_get_contents("/usr/share/doc/pve-docs-mediawiki/mediawiki-asciidoc.js");
33 $out->addInlineScript($asciidoc_js);
34 };
35 # ---->8----