내가 수정한 것들
ph
수정한 것들
- YouTube extension
- 최대 업로드 크기 2M에서 8M으로 수정. /etc/php/7.0/apache2/php.ini 수정
- upload_max_filesize = 8M
- google analytics [1] 2017.07.26
- https://www.mediawiki.org/wiki/Extension:AvbDisqus 설치함.
- 기본 폰트를 serif로 수정. ( skins/Vector/variables.less에서 sans-serif로 되어 있던 부분 두군데를 serif로 수정)
MobileFrontend 설치: Tweeki 스킨 설치하면 알아서 됨.- MathJax 설치
Backtick code 설치: 안되고 있음... 왜 안되는지 모름. 여튼 동작 안하는 중.- BacktickCode가 동작하지 않아서 custom tag
<c></c>
만듦
- extensions 폴더 안에 Courier.php파일 만들었음
<?php $wgHooks['ParserFirstCallInit'][] = 'CourierExtension::onParserSetup'; class CourierExtension { // Register any render callbacks with the parser public static function onParserSetup( Parser $parser ) { // When the parser sees the <sample> tag, it executes renderTagSample (see below) $parser->setHook( 'c', 'CourierExtension::renderTagSample' ); } // Render <sample> public static function renderTagSample( $input, array $args, Parser $parser, PPFrame $frame ) { // Nothing exciting here, just escape the user-provided input and throw it back out again (as example) return "<span style='font-family:courier'>".htmlspecialchars( $input )."</span>"; } } ?>
- LocalSettings.php에 아래 추가
require_once( "$IP/extensions/Courier/Courier.php" );
- Tree And Menu 설치
- DeleteBatch 설치
includes/EditPage.php의 978line이거 Admin>환경설정>편집에 '모든 편집에 기본적으로 사소한 편집을 표시'로 있음.$this->minoredit = true;
- tweeki skin[2] 설치
- 기본폰트 수정. bootstrap/css/bootstrap.min.css의 5번째 줄 15375 char에 'Georgia,serif'추가. (body{}에 추가}
- (위 수정한 것 바로 옆에) 글씨 크기 14pt에서 16pt로, line-height 1.42857143에서 17로 변경.
line-height가 너무 아스트랄한데?
wfLoadExtension( 'Poem' );
넣음. 미디어위키 기본이라 따로 뭔가 다운받을 필요는 없음.- SyntaxHighlighter
- 맨 뒤에 -er주의 그냥 SyntaxHighlight도 있음.
- 설치를 하긴 했으나, 별로 보기좋다는 생각이 안들어서 잘 안씀.
아래는 구 버전 (위키 업데이트 하면서 모두 삭제됨. 무시할것)
- file upload enable
- syntax highlight extension
- 모바일 브라우저에서 너무 작게 보이는 문제이걸로 해결
<meta name="viewport" content="width=device-width" />
- fck editor에서 붙여넣기. 텍스트 뿐 아니라 서식도 가능하게
- 여기참고.
- w/extensions/FCKeditor/fckeditor_config.js에서
// Setup the editor toolbar.
FCKConfig.ToolbarSets['Wiki'] = [
['Source'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['SpecialChar','Table','Image','Rule'],
이렇게 함. 원래
'PasteText','PasteWord'
여기에 주석이 있었음.
- 근데 이거 잘 안되고 있으니 다시 한번 잘 들여다볼것.