“Media-wiki”的版本间的差异
来自qingwei personal wiki
(→安装mediawiki) |
|||
(未显示同一用户的5个中间版本) | |||
第1行: | 第1行: | ||
− | == | + | == 安装mediawiki == |
− | + | === 使用docker安装 === | |
− | + | <source lang="shell"> | |
− | + | docker run --name some-mediawiki -p 8190:80 -d mediawiki | |
+ | </source> | ||
== 换logo == | == 换logo == | ||
− | 修改LocalSettings.php的配置 | + | <pre> |
− | $wgLogo = "$wgResourceBasePath/resources/assets/wiki.png"; | + | 修改LocalSettings.php的配置 |
+ | $wgLogo = "$wgResourceBasePath/resources/assets/wiki.png"; | ||
对应位置: /var/www/html/resources/assets | 对应位置: /var/www/html/resources/assets | ||
+ | </pre> | ||
== 代码高亮 == | == 代码高亮 == |
2017年12月4日 (一) 07:14的最新版本
安装mediawiki
使用docker安装
docker run --name some-mediawiki -p 8190:80 -d mediawiki
换logo
修改LocalSettings.php的配置 $wgLogo = "$wgResourceBasePath/resources/assets/wiki.png"; 对应位置: /var/www/html/resources/assets
代码高亮
<source lang="javascript" line start="2" highlight="4-6"> // SyntaxHighlighter makes your code snippets beautiful without tiring your servers. // http://alexgorbatchev.com var setArray = function(elems) { this.length = 0; push.apply(this, elems); return this; } </source>
2 // SyntaxHighlighter makes your code snippets beautiful without tiring your servers.
3 // http://alexgorbatchev.com
4 var setArray = function(elems) {
5 this.length = 0;
6 push.apply(this, elems);
7 return this;
8 }