linux:dokuwiki

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:dokuwiki [2022/09/23 16:30] – [Open Graph プロトコル] ともやんlinux:dokuwiki [2024/03/27 10:47] (現在) – [forum.css の修正] ともやん
行 2: 行 2:
 本家: [[https://www.dokuwiki.org/dokuwiki|dokuwiki [DokuWiki]]]\\ 本家: [[https://www.dokuwiki.org/dokuwiki|dokuwiki [DokuWiki]]]\\
 ソースコード: [[https://github.com/splitbrain/dokuwiki|splitbrain/dokuwiki: The DokuWiki Open Source Wiki Engine]]\\ ソースコード: [[https://github.com/splitbrain/dokuwiki|splitbrain/dokuwiki: The DokuWiki Open Source Wiki Engine]]\\
 +
 +===== 更新前に必ず確認‼️ =====
 +[[https://www.dokuwiki.org/changes|]] ([[https://www-dokuwiki-org.translate.goog/changes?_x_tr_sl=en&_x_tr_tl=ja&_x_tr_hl=ja&_x_tr_pto=sc|翻訳]])\\
  
 ===== 技術資料 ===== ===== 技術資料 =====
行 17: 行 20:
 $ cp dokuwiki/conf/mime.conf dokuwiki/conf/mime.conf.bak $ cp dokuwiki/conf/mime.conf dokuwiki/conf/mime.conf.bak
 $ tar jcvf dokuwiki_20220804_1.tar.bz2 dokuwiki/ $ tar jcvf dokuwiki_20220804_1.tar.bz2 dokuwiki/
-</pre></html></WRAP> 
-<WRAP color_result><html><pre> 
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 39: 行 40:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ php -v+<b class=GRN>$</b> <b class=HIY>php</b> <b class=HIK>-v</b>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
行 51: 行 52:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ rpm -qa | sort | grep php+<b class=GRN>$</b> <b class=HIY>rpm</b> <b class=HIK>-qa</b> <b class=HIY>sort</b> <b class=HIY>grep</b> php
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
行 77: 行 78:
  
 **リポジトリ設定** (Remi リポジトリを利用する設定が必要)\\ **リポジトリ設定** (Remi リポジトリを利用する設定が必要)\\
-[[linux:fedora_rpmfusion|Fedora で RPM Fusion, Remi リポジトリを利用する]]\\+[[linux:fedora:rpmfusion|Fedora で RPM Fusion, Remi リポジトリを利用する]]\\
  
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ sudo dnf install dnf-plugins-core+<b class=GRN>$</b> <b class=HIY>sudo</b> dnf install dnf-plugins-core
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
行 92: 行 93:
  
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ sudo dnf config-manager --set-enabled remi+<b class=GRN>$</b> <b class=HIY>sudo</b> dnf config-manager <b class=HIK>--set-enabled</b> remi
 </pre></html></WRAP> </pre></html></WRAP>
  
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ sudo dnf module reset php -y+<b class=GRN>$</b> <b class=HIY>sudo</b> dnf module reset php <b class=HIK>-y</b>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
行 106: 行 107:
  
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ sudo dnf module install php:remi-8.1 -y+<b class=GRN>$</b> <b class=HIY>sudo</b> dnf module install php:remi-8.1 <b class=HIK>-y</b>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
行 125: 行 126:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ sudo dnf module install php:remi-8.1 -y --allowerasing+<b class=GRN>$</b> <b class=HIY>sudo</b> dnf module install php:remi-8.1 <b class=HIK>-y --allowerasing</b>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result_long><html><pre> <WRAP color_result_long><html><pre>
行 277: 行 278:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ php -v+<b class=GRN>$</b> <b class=HIY>php</b> <b class=HIK>-v</b>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
行 293: 行 294:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ rpm -qa | sort | grep php+<b class=GRN>$</b> <b class=HIY>rpm</b> <b class=HIK>-qa</b> <b class=HIY>sort</b> <b class=HIY>grep</b> php
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
行 321: 行 322:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ rpm -qa | sort | grep php+<b class=GRN>$</b> <b class=HIY>rpm</b> <b class=HIK>-qa</b> <b class=HIY>sort</b> <b class=HIY>grep</b> php
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
行 353: 行 354:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-$ sudo reboot+<b class=GRN>$</b> <b class=HIY>sudo</b> reboot
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 373: 行 374:
 [[git>splitbrain/dokuwiki/issues?q=is:issue is:open label:"PHP 8"|ラベル: PHP 8 で開いている Issues · splitbrain/dokuwiki]]\\ [[git>splitbrain/dokuwiki/issues?q=is:issue is:open label:"PHP 8"|ラベル: PHP 8 で開いている Issues · splitbrain/dokuwiki]]\\
  
-===== Plugin =====+===== DokuWiki プラグイン (Plugin=====
 [[:linux:dokuwiki:mathjax_plugin|MathJax Plugin]]\\ [[:linux:dokuwiki:mathjax_plugin|MathJax Plugin]]\\
 [[:linux:dokuwiki:mathpublish_plugin|mathpublish Plugin]]\\ [[:linux:dokuwiki:mathpublish_plugin|mathpublish Plugin]]\\
 [[:linux:dokuwiki:codeMirror_plugin|CodeMirror Plugin]]\\ [[:linux:dokuwiki:codeMirror_plugin|CodeMirror Plugin]]\\
 +
 +==== DokuFreaks ====
 +[[https://github.com/dokufreaks|{{https://avatars.githubusercontent.com/u/86480?&.png?100x100&recache|DokuFreaks }}]]
 +[[git>dokufreaks|DokuFreaks]] GitHub 組織は、元の作成者によってほとんど放棄されたプラグインが **最小限** 維持される場所です。これは、言語の更新が適用され、簡単なプル リクエストが適用され、プラグインが通常、最近の DokuWiki リリースで動作する状態になる必要があることを意味します。
 +
 +一方、これは、そこにリストされているプラ​​グインが**積極的に開発されていない**ことを意味します。機能リクエストはほとんど無視され、マージに大きな労力が必要なプル リクエストはおそらく永久に無視されるでしょう。
 +[[https://www.dokuwiki.org/dokufreaks|dokufreaks [DokuWiki]] より🤔\\
 +===== DokuWiki プラグイン開発 (Devel) =====
 +[[https://mizunashi-mana.github.io/blog/posts/2019/07/dokuwiki-syntax-plugin/|続くといいな日記 – DokuWiki の構文拡張プラグインの作り方]]\\
 +DokuWiki ソースコード閲覧\\
 +[[https://xref.dokuwiki.org/reference/dokuwiki/nav.html|PHPXref: DokuWiki]]\\
 +[[https://www.dokuwiki.org/devel:plugin_file_structure|devel:plugin_file_structure [DokuWiki]]]  ([[https://www-dokuwiki-org.translate.goog/devel:plugin_file_structure?_x_tr_sl=en&_x_tr_tl=ja&_x_tr_hl=ja&_x_tr_pto=sc|翻訳]])\\
 +[[https://www.dokuwiki.org/devel:syntax_plugins|devel:syntax_plugins [DokuWiki]]] ([[https://www-dokuwiki-org.translate.goog/devel:syntax_plugins?_x_tr_sl=en&_x_tr_tl=ja&_x_tr_hl=ja&_x_tr_pto=sc|翻訳]])\\
  
 ===== DokuWiki テーマ カスタマイズ ===== ===== DokuWiki テーマ カスタマイズ =====
行 432: 行 446:
 $ cd dokuwiki/lib/tpl/ $ cd dokuwiki/lib/tpl/
 $ cp -r bootstrap3 bs3tomoyannet $ cp -r bootstrap3 bs3tomoyannet
-</pre></html></WRAP> 
-<WRAP color_result><html><pre> 
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 442: 行 454:
 $ cd bs3tomoyannet $ cd bs3tomoyannet
 $ nano template.info.txt $ nano template.info.txt
-</pre></html></WRAP> 
-<WRAP color_result><html><pre> 
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 484: 行 494:
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
 $cp template_dir/css/custom.less bs3tomoyannet/css/custom.less $cp template_dir/css/custom.less bs3tomoyannet/css/custom.less
-</pre></html></WRAP> 
-<WRAP color_result><html><pre> 
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 493: 行 501:
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
 $ nano style.ini $ nano style.ini
-</pre></html></WRAP> 
-<WRAP color_result><html><pre> 
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 834: 行 840:
 1546495335      127.0.0.1             linux:dokuwiki  tomoyan [geeklogのDokuWiki Plugi(注意: 以下>は古い情報です)]            1 1546495335      127.0.0.1             linux:dokuwiki  tomoyan [geeklogのDokuWiki Plugi(注意: 以下>は古い情報です)]            1
 </code> </code>
 +</WRAP>
 +
 +==== サーバーキャッシュのパージ ====
 +公式: [[https://www.dokuwiki.org/caching|caching [DokuWiki]]] [[gtr>https://www.dokuwiki.org/caching|翻訳]]\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">touch</span><span style="color:#999999"> </span><span style="color:#999999"><u style="text-decoration-style:single">dokuwiki/conf/local.php</u></span>
 +</pre></html></WRAP>
 </WRAP> </WRAP>
  
行 984: 行 998:
 COM_siteFooter関数内1,514行目(*1)付近(フッターに出力しているscriptを止める)\\ COM_siteFooter関数内1,514行目(*1)付近(フッターに出力しているscriptを止める)\\
 *1 - 1.8.0 の行番号, 2.0.0 では 1,570行目付近。 *1 - 1.8.0 の行番号, 2.0.0 では 1,570行目付近。
-<sxh php highlight:[2]>+<code php highlight:[2]>
     // Retrieve any JavaScript libraries, variables and functions     // Retrieve any JavaScript libraries, variables and functions
     //$footercode = $_SCRIPTS->getFooter();     //$footercode = $_SCRIPTS->getFooter();
-</sxh>+</code>
  
 COM_siteHeader関数内1,286行目(*2)付近(ヘッダーの新たなテーマ変数plg_extrascriptにscriptを出力する)\\ COM_siteHeader関数内1,286行目(*2)付近(ヘッダーの新たなテーマ変数plg_extrascriptにscriptを出力する)\\
 *2 - 1.8.0 の行番号, 2.0.0 では 1,337行目付近。 *2 - 1.8.0 の行番号, 2.0.0 では 1,337行目付近。
-<sxh php highlight:[3,4]>+<code php highlight:[3,4]>
     $headercode = $_SCRIPTS->getHeader() . $headercode;     $headercode = $_SCRIPTS->getHeader() . $headercode;
     $header->set_var( 'plg_headercode', $headercode );     $header->set_var( 'plg_headercode', $headercode );
     // Retrieve any JavaScript libraries, variables and functions     // Retrieve any JavaScript libraries, variables and functions
     $header->set_var('plg_extrascript', $_SCRIPTS->getFooter());     $header->set_var('plg_extrascript', $_SCRIPTS->getFooter());
-</sxh>+</code>
  
 使っているテーマの header.thtml に追記する。 使っているテーマの header.thtml に追記する。
-<sxh html highlight:[13]>+<code html highlight:[13]>
 {doctype} {doctype}
 <html{html_attribute}{xmlns}> <html{html_attribute}{xmlns}>
行 1014: 行 1028:
 {plg_extrascript} {plg_extrascript}
 </head> </head>
-</sxh>+</code>
  
 ==== forum.css の修正 ==== ==== forum.css の修正 ====
 Geeklog Forum Plugin の forum.css が Dokuwiki の syntaxhighlighter3 に悪影響するので修正\\ Geeklog Forum Plugin の forum.css が Dokuwiki の syntaxhighlighter3 に悪影響するので修正\\
 **%%/path/to/public_html/forum/forum/layout/forum.css%%** **%%/path/to/public_html/forum/forum/layout/forum.css%%**
-<sxh css>+<code css>
 /* CSS Declarations for Code block feature - default will use the .php one */ /* CSS Declarations for Code block feature - default will use the .php one */
 .pluginSolidOutline div .php { max-height:400px; overflow:auto; height:auto; width:auto; min-height:100px; } .pluginSolidOutline div .php { max-height:400px; overflow:auto; height:auto; width:auto; min-height:100px; }
 .pluginSolidOutline div .html { height:300px; overflow:auto; width:auto; min-height:100px; } .pluginSolidOutline div .html { height:300px; overflow:auto; width:auto; min-height:100px; }
 .pluginSolidOutline div .css { height:300px; overflow:auto; width:auto; min-height:100px; } .pluginSolidOutline div .css { height:300px; overflow:auto; width:auto; min-height:100px; }
-</sxh>+</code> 
 + 
 +===== ☢️古い資料です (Obsolete)☢️ =====
  
-===== geeklogのDokuWiki Plugin(注意: 以下は古い情報です) =====+==== geeklogのDokuWiki Plugin ====
  
-==== 管理者用のサイト設定 ====+=== 管理者用のサイト設定 ===
 使用言語: ja で日本語化されない場合は、/dokuwiki/conf/local.protected.phpにて追加設定を行う。\\ 使用言語: ja で日本語化されない場合は、/dokuwiki/conf/local.protected.phpにて追加設定を行う。\\
 **local.protected.php** に __**$conf['lang'] = 'ja';**__ を追加\\ **local.protected.php** に __**$conf['lang'] = 'ja';**__ を追加\\
行 1059: 行 1075:
 [[https://you84815.blogspot.com/2017/01/dokuwikicontent-security-policy.html|tobijibu-ashiato: DokuWikiのContent-Security-Policy対応方法]]\\ [[https://you84815.blogspot.com/2017/01/dokuwikicontent-security-policy.html|tobijibu-ashiato: DokuWikiのContent-Security-Policy対応方法]]\\
 [[https://laboradian.com/show-text-immediately-using-font-display/|Webフォントを使う場合に font-display 記述子を使ってすぐにテキストを表示させる – ラボラジアン]]\\ [[https://laboradian.com/show-text-immediately-using-font-display/|Webフォントを使う場合に font-display 記述子を使ってすぐにテキストを表示させる – ラボラジアン]]\\
 +[[https://www.achiachi.net/blog/index.html|トップページ [あちあち情報局]]]\\
  
 ==== 付録 ==== ==== 付録 ====
  • linux/dokuwiki.1663918249.txt.gz
  • 最終更新: 2022/09/23 16:30
  • by ともやん