1 To enable the apache site use:
3 # a2ensite pve-docs.conf
4 # /etc/init.d/apache2 reload
6 Now you should be able to access the documentation at:
8 * Admin Guide and Manual pages
9 http://your-server/pve-docs
12 http://your-server/pve-docs/api-viewer
16 There is a small script 'pve-docs-mediawiki-import' which connects to
17 mediawiki and updates predefined pages with content from this package:
19 # pve-docs-mediawiki-import
21 Authentification credientials are read from '/root/.pve-docs'.
22 The format is 'username:password'.
24 In the MediaWiki settings PHP file ('/var/www/mediawiki/LocalSettings.php') add:
27 # for docs-inclusion plugin:
28 require_once("/usr/lib/pve-docs/pvedocs-include.php");
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);