====== 本wiki的配置与测试代码 ======
===== Tips =====
* Dokuwiki 用的标记语法来自 [[https://en.wikipedia.org/wiki/Creole_%28markup%29|Creole]]
* 直接修改 ''./conf/entities.conf'', 把''--''的替换取消掉! --, ---, ->, (c), >>, ...
===== Bugs =====
* --- //[[oakfire@163.com|Oakfire]] 2020/08/18 02:28// 手动修正了 插件 simpleindex 与 seqdia 的 syntax.php 里接口 handle 、render 与新版 dokuwiki 不匹配问题 废弃了这两插件 --- //[[oakfire@163.com|Oakfire]] 2020/11/11 12:46//
===== Plugins =====
* SimpleIndex Plugin: deprecated
* IndexMenu Plugin
* js theme {{ :wiki:oak.png.zip |}},组合了下icons8metrobw.png与icons8w10bw.png ,手动编辑了其中 page.png 图像。
* Wrap Plugin
* 修改了插件下 ''style.css'' 与 ''style.less'' 里 ''.wrap_warning''的 ''color'' 为白色,首页横条更为好看。
* [[https://www.dokuwiki.org/plugin:mathjax | mathjax]]
* PlantUmlParser Plugin
===== Templates =====
* Bootstrap3 Template: 发现这个主题模版更为好用!现使用此模版
* 修改了''./lib/tpl/bootstrap3/assets/bootstrap/default/bootstrap.min.css'' 里的 ''ul,ol'' 样式的 ''line-height'' 为 24px, 更为美观。
* Starter Bootstrap
* 8-)页面右上的目录被主题默认给卷起了, 修改为默认不卷起, 修改在 ''./lib/tpl/starterbootstrap/js/script.js''.
* 修改了 ''./lib/tpl/starterbootstrap/css/bootstrap.min.css'' 里关于 ''ul'' 与 ''code'' 的样式, 更为美观.
===== Tests =====
==== » seqdia plugin====
Deprecated: 没怎么用,与2020新版接口不兼容
[[https://www.websequencediagrams.com]]
aaa->+bbb: task one
bbb->+ccc: task agent
ccc-->-bbb: task result
alt 如果 result 中有 message
bbb->aaa: message
else 如果 result 中有 action
bbb->+ccc: action call
ccc-->-bbb: action result
bbb->-aaa: result
end
==== » plantumlparser ====
示例:https://plantuml.com/zh/sequence-diagram
participant User
[-> User: DoWork
activate User
User -> A: DoWork
activate A #FFBBBB
A -> A: Internal call
activate A #DarkSalmon
A -> B: << createRequest >>
activate B
create C
B -> C: new
C -> C: wait
B -> C !! : delete
B --> A: RequestCreated
deactivate B
deactivate A
A -> User: Done
deactivate A
...5 minutes latter...
[<- User: Done
deactivate User
== Attack ==
group My own label [My own label 2]
User -> B : attack start
loop 1000 times
User -> A : DNS Attack
end
User -> B : attack stop
end
==== » table ====
^ title1 ^ title2 ^ title3 ^
| 1111 | 222222 | 333333 |
| ::: | 22222 | 33333 |
| 11111 | 222222 ||
| | | |
| | | |
| | | |
| | | |
==== » mathjax ====
inline math, use dollar signs: $a^2 + b^2 = c^2$
or escaped parentheses:\(1+2+\dots+n=\frac{n(n+1)}{2}\)
To display math on its own line, use double dollar signs: $$ \frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x) $$
or escaped square brackets:\[ \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] \]
A wide range of math environments will work as well:
\begin{align*}
e^x & = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots \\
& = \sum_{n\geq 0} \frac{x^n}{n!}
\end{align*}
==== » wrap plugin ====
* 1111111
* 222222222
* 333
* aaaaaaaaaa
* bbbbbbbbbbbbbbbbb
* cccccccccc
* 第一列
* 第一列
* 第一列
* 第二列
* 第二列
* 第二列
* 第三列
* 第三列
* 第三列
* %%%%里的wrap小写就能显示为行内元素;
* info
* help
* todo
* important
* alert
* safety
* notice
* caution
* warning
* danger
* [[wiki:test|链接用可显示为按钮行为]]
* 请用鼠标选择右边的空白区域:看不见我,看不见我
### » markdown page plugin
- 内部链接:[首页](:start), [doku本插件链接](doku>plugin:mdpage), [wp 链接](wp>dokuwiki)
- 内部链接图像:![internal image](:wiki:dokuwiki-128.png)
- [x] foo
- [ ] bar
- [x] baz
- [ ] bim
- foo
- bar
+ baz
- ~~Hi~~ Hello, ~there~ world!
| f\|oo |
| ------ |
| b `\|` az |
| b **\|** im |