差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| python:moinmoin [2020/03/10 10:26] – ともやん | python:moinmoin [2021/07/05 02:40] (現在) – ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | < | ||
| - | < | ||
| - | #result pre { | ||
| - | height: 200px; | ||
| - | overflow: scroll; | ||
| - | overflow-x: hidden; | ||
| - | font-size: 12px; | ||
| - | } | ||
| - | # | ||
| - | height: 200px; | ||
| - | overflow: scroll; | ||
| - | overflow-x: hidden; | ||
| - | font-size: 12px; | ||
| - | } | ||
| - | </ | ||
| - | </ | ||
| ====== MoinMoin ====== | ====== MoinMoin ====== | ||
| - | {{:python: | + | {{python: |
| \\ | \\ | ||
| 本家: [[https:// | 本家: [[https:// | ||
| 行 32: | 行 16: | ||
| [[https:// | [[https:// | ||
| < | < | ||
| - | > git clone https:// | + | $ git clone --depth 1 https:// |
| </ | </ | ||
| ==== quickinstall.py を venv を利用するようにハックする ==== | ==== quickinstall.py を venv を利用するようにハックする ==== | ||
| GitHub からダウンロードした **quickinstall.py** をリネームする。\\ | GitHub からダウンロードした **quickinstall.py** をリネームする。\\ | ||
| + | |||
| **Linux**\\ | **Linux**\\ | ||
| + | <WRAP prewrap 100%> | ||
| < | < | ||
| $ cd moin | $ cd moin | ||
| $ mv quickinstall.py quickinstall.py.org | $ mv quickinstall.py quickinstall.py.org | ||
| </ | </ | ||
| + | </ | ||
| + | |||
| **Windows**\\ | **Windows**\\ | ||
| + | <WRAP prewrap 100%> | ||
| < | < | ||
| > cd moin | > cd moin | ||
| > ren quickinstall.py quickinstall.py.org | > ren quickinstall.py quickinstall.py.org | ||
| </ | </ | ||
| + | </ | ||
| + | |||
| 以下の **quickinstall.py** を **moin** ディレクトリにダウンロードする。(**quickinstall.py** を差し替える)\\ | 以下の **quickinstall.py** を **moin** ディレクトリにダウンロードする。(**quickinstall.py** を差し替える)\\ | ||
| + | <WRAP prewrap 100%> | ||
| < | < | ||
| $ curl -O https:// | $ curl -O https:// | ||
| $ chmod 775 quickinstall.py | $ chmod 775 quickinstall.py | ||
| </ | </ | ||
| - | <WRAP prewrap 100% # | + | </ |
| + | <WRAP prewrap 100% mincode_long> | ||
| <file python moin/ | <file python moin/ | ||
| # | # | ||
| 行 784: | 行 777: | ||
| ==== インストール ==== | ==== インストール ==== | ||
| **quickinstall.py** を実行する。\\ | **quickinstall.py** を実行する。\\ | ||
| + | |||
| **Linux**\\ | **Linux**\\ | ||
| + | <WRAP prewrap 100%> | ||
| < | < | ||
| $ python3 quickinstall.py | $ python3 quickinstall.py | ||
| </ | </ | ||
| - | <WRAP prewrap 100% #result> | + | </ |
| + | <WRAP prewrap 100% result> | ||
| < | < | ||
| Running quickinstall.py... output messages redirected to m-quickinstall.txt | Running quickinstall.py... output messages redirected to m-quickinstall.txt | ||
| 行 801: | 行 797: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| **Windows**\\ | **Windows**\\ | ||
| + | <WRAP prewrap 100%> | ||
| < | < | ||
| - | > python | + | > python3 |
| </ | </ | ||
| - | <WRAP prewrap 100% #result> | + | </ |
| + | <WRAP prewrap 100% result> | ||
| < | < | ||
| + | Running quickinstall.py... output messages redirected to m-quickinstall.txt | ||
| + | |||
| Searching m-quickinstall.txt, | Searching m-quickinstall.txt, | ||
| - | 83 | + | 139 Successfully installed Babel-2.9.1 Flask-1.1.4 Flask-Babel-2.0.0 Flask-Caching-1.10.1 Flask-Script-2.0.6 Flask-Theme-0.3.5 Jinja2-2.11.3 Markdown-3.3.4 MarkupSafe-2.0.1 Werkzeug-1.0.1 XStatic-1.0.2 XStatic-AnyWikiDraw-0.14.2 XStatic-Bootstrap-3.1.1.2 XStatic-CKEditor-3.6.4.0 XStatic-Font-Awesome-4.7.0.0 XStatic-JQuery.TableSorter-2.14.5.2 XStatic-Pygments-2.9.0.1 XStatic-TWikiDraw-moin-2004.10.23.2 XStatic-autosize-1.17.2.1 XStatic-jQuery-3.5.1.1 XStatic-jQuery-File-Upload-10.31.0.1 XStatic-svg-edit-moin-2012.11.27.1 blinker-1.4 chardet-4.0.0 click-7.1.2 docutils-0.17.1 emeraldtree-0.10.0 feedgen-0.9.0 flatland-0.9.1 |
| - | 119 Successfully installed Babel-2.7.0 Flask-1.1.1 Flask-Babel-0.12.2 Flask-Caching-1.7.2 Flask-Script-2.0.6 Flask-Theme-0.3.4 Jinja2-2.10.1 Markdown-3.1.1 MarkupSafe-1.1.1 Werkzeug-0.15.6 XStatic-1.0.2 XStatic-AnyWikiDraw-0.14.2 XStatic-Bootstrap-3.1.1.2 XStatic-CKEditor-3.6.4.0 XStatic-Font-Awesome-4.7.0.0 XStatic-JQuery.TableSorter-2.14.5.1 XStatic-Pygments-2.2.0.1 XStatic-TWikiDraw-moin-2004.10.23.2 XStatic-autosize-1.17.2.1 XStatic-jQuery-3.3.1.1 XStatic-jQuery-File-Upload-4.4.2 XStatic-svg-edit-moin-2012.11.27.1 blinker-1.4 chardet-3.0.4 click-7.0 docutils-0.15.2 emeraldtree-0.10.0 flatland-0.9.1 itsdangerous-1.1.0 moin passlib-1.7.1 pdfminer3-2018.12.3.0 pycryptodome-3.9.0 pygments-2.4.2 pytz-2019.2 setuptools-41.2.0 six-1.12.0 sortedcontainers-2.1.0 whoosh-2.7.4 | + | 143 c: |
| - | 131 Successfully created or updated venv at C: | + | 144 |
| + | 154 Successfully created or updated venv at C: | ||
| + | Quickinstall run time (h:mm:ss) 0:02:47 | ||
| + | |||
| + | > > > Type " | ||
| </ | </ | ||
| </ | </ | ||
| 行 824: | 行 829: | ||
| menu を実行する。\\ | menu を実行する。\\ | ||
| - | **Linux**\\ | + | **Linux, PowerShell**\\ |
| - | < | + | <WRAP prewrap 100%> |
| + | < | ||
| $ ./m | $ ./m | ||
| </ | </ | ||
| - | **Windows**\\ | + | </ |
| + | |||
| + | コマンドプロンプト\\ | ||
| < | < | ||
| > m | > m | ||
| </ | </ | ||
| - | < | + | </ |
| + | <WRAP prewrap 100% result> | ||
| + | < | ||
| usage: "m < | usage: "m < | ||
| 行 838: | 行 849: | ||
| extras | extras | ||
| docs create moin html documentation (requires extras) | docs create moin html documentation (requires extras) | ||
| - | interwiki | + | interwiki |
| log < | log < | ||
| 行 851: | 行 862: | ||
| index | index | ||
| - | css | + | css run lessc to update |
| tests * run tests, log output (-v -k my_test) | tests * run tests, log output (-v -k my_test) | ||
| coding-std | coding-std | ||
| 行 860: | 行 871: | ||
| del-rej | del-rej | ||
| del-wiki | del-wiki | ||
| + | |||
| </ | </ | ||
| ==== 空の Wiki を作成 ==== | ==== 空の Wiki を作成 ==== | ||
| - | **Linux**\\ | + | **Linux, PowerShell**\\ |
| - | < | + | <WRAP prewrap 100%> |
| + | < | ||
| $ ./m new-wiki | $ ./m new-wiki | ||
| </ | </ | ||
| - | **Windows**\\ | + | |
| + | コマンドプロンプト\\ | ||
| < | < | ||
| > m new-wiki | > m new-wiki | ||
| </ | </ | ||
| - | < | + | </ |
| + | |||
| + | <WRAP prewrap 100% result> | ||
| + | < | ||
| Creating a new empty wiki... | Creating a new empty wiki... | ||
| Output messages redirected to m-new-wiki.txt. | Output messages redirected to m-new-wiki.txt. | ||
| + | Important messages from m-new-wiki.txt are shown below: | ||
| - | Success: a new wiki has been created. | + | Error: attempt to create wiki failed. Do "m log new-wiki" to see complete log. |
| </ | </ | ||
| + | </ | ||
| ==== moin2 の実行 ==== | ==== moin2 の実行 ==== | ||
| 行 887: | 行 906: | ||
| > m run | > m run | ||
| </ | </ | ||
| - | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
| < | < | ||
| 2019-08-09 18: | 2019-08-09 18: | ||
| 行 915: | 行 934: | ||
| **Lang:** Python 3.7.4\\ | **Lang:** Python 3.7.4\\ | ||
| **Web Interface: | **Web Interface: | ||
| - | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
| < | < | ||
| > ab -n 1000 -c 100 http:// | > ab -n 1000 -c 100 http:// | ||
| 行 988: | 行 1007: | ||
| **Lang:** PHP 7.3.3\\ | **Lang:** PHP 7.3.3\\ | ||
| **Web Interface: | **Web Interface: | ||
| - | <WRAP prewrap 100% #result> | + | <WRAP prewrap 100% result> |
| < | < | ||
| abs -n 1000 -c 100 https:// | abs -n 1000 -c 100 https:// | ||