両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
linux:dokuwiki [2023/03/15 05:55] – [☢️古い資料です☢️] ともやん | linux:dokuwiki [2024/03/27 10:47] (現在) – [forum.css の修正] ともやん |
---|
本家: [[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|翻訳]])\\ |
| |
===== 技術資料 ===== | ===== 技術資料 ===== |
$ 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> |
| |
**リポジトリ設定** (Remi リポジトリを利用する設定が必要)\\ | **リポジトリ設定** (Remi リポジトリを利用する設定が必要)\\ |
[[linux:fedora_rpmfusion|Fedora で RPM Fusion, Remi リポジトリを利用する]]\\ | [[linux:fedora:rpmfusion|Fedora で RPM Fusion, Remi リポジトリを利用する]]\\ |
| |
<WRAP color_term> | <WRAP color_term> |
[[: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) ===== | ===== DokuWiki プラグイン開発 (Devel) ===== |
[[https://mizunashi-mana.github.io/blog/posts/2019/07/dokuwiki-syntax-plugin/|続くといいな日記 – DokuWiki の構文拡張プラグインの作り方]]\\ | [[https://mizunashi-mana.github.io/blog/posts/2019/07/dokuwiki-syntax-plugin/|続くといいな日記 – DokuWiki の構文拡張プラグインの作り方]]\\ |
DokuWiki ソースコード閲覧\\ | DokuWiki ソースコード閲覧\\ |
[[https://xref.dokuwiki.org/reference/dokuwiki/nav.html|PHPXref: 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 テーマ カスタマイズ ===== |
$ 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> |
$ 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> |
<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> |
<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> |
1546495335 127.0.0.1 E linux:dokuwiki tomoyan [geeklogのDokuWiki Plugi(注意: 以下>は古い情報です)] 1 | 1546495335 127.0.0.1 E 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> |
| |
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}> |
{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)☢️ ===== | ===== ☢️古い資料です (Obsolete)☢️ ===== |
[[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|トップページ [あちあち情報局]]]\\ |
| |
==== 付録 ==== | ==== 付録 ==== |