mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-08-14 09:23:35 +00:00
mediawiki: add a bit to README
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
3e5c017486
commit
d95c639783
11
debian/tree/pve-docs-mediawiki/README
vendored
11
debian/tree/pve-docs-mediawiki/README
vendored
@ -21,4 +21,15 @@ mediawiki and updates predefined pages with content from this package:
|
||||
Authentification credientials are read from '/root/.pve-docs'.
|
||||
The format is 'username:password'.
|
||||
|
||||
In the MediaWiki settings PHP file ('/var/www/mediawiki/LocalSettings.php') add:
|
||||
|
||||
# ----8<----
|
||||
# for docs-inclusion plugin:
|
||||
require_once("/usr/lib/pve-docs/pvedocs-include.php");
|
||||
|
||||
# for the JS snippet which generates the Table of Content and footer links
|
||||
$wgHooks['BeforePageDisplay'][] = function( OutputPage &$out, Skin &$skin ) {
|
||||
$asciidoc_js = file_get_contents("/usr/share/doc/pve-docs-mediawiki/mediawiki-asciidoc.js");
|
||||
$out->addInlineScript($asciidoc_js);
|
||||
};
|
||||
# ---->8----
|
||||
|
Loading…
Reference in New Issue
Block a user