以前Dokuwikiをインスールしましたが、整形記法?っていうんですかね。
Dokuwiki独自の記法で書きづらかったりします。
私はMarkdownを使うことが多いのでMarkdownプラグインをインストールしてみます。
プラグイン
とりあえず公式を検索して出てきたこれにします。
インストール
やることは簡単で
でできます。
プラグインインストール
コンテナに入ってwgetで入手します。
masashi@PC-ubuntu:~$ lxc exec ubuntu16 -- /bin/bash root@ubuntu16:~# root@ubuntu16:~# pwd /root root@ubuntu16:~# root@ubuntu16:~# root@ubuntu16:~# wget wget: missing URL Usage: wget [OPTION]... [URL]... Try `wget --help' for more options. root@ubuntu16:~# root@ubuntu16:~# wget https://komkon2.de/markdowku/markdowku.tgz --2018-02-22 03:42:11-- https://komkon2.de/markdowku/markdowku.tgz Resolving komkon2.de (komkon2.de)... 217.197.80.132, 2001:bf0:c000:a::2:132 Connecting to komkon2.de (komkon2.de)|217.197.80.132|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 6818 (6.7K) [application/x-gzip] Saving to: ‘markdowku.tgz’ markdowku.tgz 100%[===================>] 6.66K --.-KB/s in 0.001s 2018-02-22 03:42:18 (6.82 MB/s) - ‘markdowku.tgz’ saved [6818/6818] root@ubuntu16:~# root@ubuntu16:~# ls -l markdowku.tgz -rw-r--r-- 1 root root 6818 Feb 19 2017 markdowku.tgz
解凍して移動
- 解凍
root@ubuntu16:~# tar xvf markdowku.tgz markdowku/ markdowku/License.text markdowku/syntax/ markdowku/syntax/imagesreference.php markdowku/syntax/ulists.php markdowku/syntax/italicunderline.php markdowku/syntax/boldasterisk.php markdowku/syntax/codespans2.php markdowku/syntax/references.php markdowku/syntax/headersetext.php markdowku/syntax/anchorsreference.php markdowku/syntax/codespans4.php markdowku/syntax/anchorsinline.php markdowku/syntax/olists.php markdowku/syntax/codespans3.php markdowku/syntax/linebreak.php markdowku/syntax/hr.php markdowku/syntax/githubcodeblocks.php markdowku/syntax/codespans1.php markdowku/syntax/codeblocks.php markdowku/syntax/italicasterisk.php markdowku/syntax/imagesinline.php markdowku/syntax/autolinks.php markdowku/syntax/blockquotes.php markdowku/syntax/codespans5.php markdowku/syntax/headeratx.php markdowku/syntax/escapespecialchars.php markdowku/plugin.info.txt root@ubuntu16:~# root@ubuntu16:~# root@ubuntu16:~# ls -ld markdowku drwxrwxr-x 3 ubuntu ubuntu 4096 Feb 19 2017 markdowku
- dokuwikiの/lib/pluginに移動する
root@ubuntu16:~# mv markdowku /var/lib/dokuwiki/lib/plugins/ root@ubuntu16:~# root@ubuntu16:~# ls /var/lib/dokuwiki/lib/plugins acl authad authpgsql index.html remote.php syntax.php action.php authldap authplain info revert usermanager admin.php authmysql config markdowku safefnrecode auth.php authpdo extension popularity styling
移動できました。
あとは特に再起動しなくても使えるようになっているはずです。
確認
(実はまだ何も書けてないっていう)
ちゃんとプレビュー見えてますね。
保存!
OKです。
とりあえず動きそうなのでこれでmarkdownで書けますね。
一応デフォルトの記法も使えるみたいです。
でもこっちは使わなそう...