显示页面过去修订反向链接回到顶部 本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。 ====== 本wiki的配置与测试代码 ====== ===== 需求 ===== * 为方便编写与阅读数学笔记,强烈需求这种插件: 在定义或定理时,对定义的或定理的关键字进行标记, 在后续出现同样的关键词时,鼠标移上去时,能显示标记时的内容。 * 鼠标移上去时,表现类似脚注''footnotes'', 或类似英文缩写的功能 ''<abbr>'' * 在编写时,标记可以形如<code> [| 这是一个定义,中括号与竖线里面的定义内容都会出现在显示的内容中,定义的(|关键字|) 用竖线与小括号围住 |]) </code> * 难点:跨页面显示,得有个缓存数据库,参考 ''RefNotes'' 这个插件; * 难点:定义与显示的两端页面,都要编辑保存后才能更新显示,不知道有没有直接扫描所有页面更新页面缓存的接口 ===== Tips ===== * Dokuwiki 用的标记语法来自 [[https://en.wikipedia.org/wiki/Creole_%28markup%29|Creole]] * 直接修改 ''./conf/entities.conf'', 把''--''的替换取消掉! --, ---, ->, (c), >>, ... * 修改后,得重新编辑页面才能刷新修改 * 测试 [[test#plantumlparser]] * 缩写注释 [[doku>abbreviations]], HTML , RFC , oakfire , 橡火 , 邻域 * 编辑 ''./conf/acronyms.local.conf'' ===== Bugs ===== * --- //[[oakfire@163.com|Oakfire]] 2020/08/18 02:28// <del>手动修正了 插件 simpleindex 与 seqdia 的 syntax.php 里接口 handle 、render 与新版 dokuwiki 不匹配问题</del> 废弃了这两插件 --- //[[oakfire@163.com|Oakfire]] 2020/11/11 12:46// ===== Plugins ===== * <del>SimpleIndex Plugin:</del> <wrap em>deprecated</wrap> * IndexMenu Plugin * js theme {{ :wiki:oak.png.zip |}},组合了下icons8metrobw.png与icons8w10bw.png ,手动编辑了其中 page.png 图像。 * Wrap Plugin * 修改了插件下 ''style.css'' 与 ''style.less'' 里 ''.wrap_warning''的 ''color'' 为白色,首页横条更为好看。 * [[doku>plugin:mathjax | mathjax plugin]] * [[doku>plugin:plantumlparser | PlantUmlParser Plugin]] * [[doku>plugin:refnotes | RefNotes plugin]], 更高级的脚注[(foo1>指用了refnotes插件的脚注)], 一样的脚注2[(foo1)],邻域[(称含有 \(x \in \mathbb{R} \) 的开区间为 \(x\) 的一个邻域)], 跨页面脚注 [(:math:linyu)], 示例2[(:ref:sample2)], 示例3[(:ref:sample3)], 中文脚注[(:math:中文)], 中文定义[(:math:定义)] ===== Templates ===== * Bootstrap3 Template: 发现这个主题模版更为好用!<wrap caution>现使用此模版</wrap> * 修改了''./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==== <wrap em>Deprecated</wrap>: 没怎么用,与2020新版接口不兼容 [[https://www.websequencediagrams.com]] <code> <seqdia modern-blue> 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 </seqdia> </code> ==== » plantumlparser ==== 示例:https://plantuml.com/zh/sequence-diagram <uml> 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 </uml> ==== » 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 ==== <WRAP group> <WRAP half column> <WRAP center round box 60%> * 1111111 * 222222222 * 333 </WRAP> </WRAP> <WRAP half column> <WRAP center round box 60%> * aaaaaaaaaa * bbbbbbbbbbbbbbbbb * cccccccccc </WRAP> </WRAP> </WRAP> <WRAP group> <WRAP third column> * 第一列 * 第一列 * 第一列 </WRAP> <WRAP third column> * 第二列 * 第二列 * 第二列 </WRAP> <WRAP third column> * 第三列 * 第三列 * 第三列 </WRAP> </WRAP> * <wrap tip>%%<wrap tip>%%里的wrap小写就能显示为行内元素</wrap>; * <wrap info>info</wrap> * <wrap help>help</wrap> * <wrap todo>todo</wrap> * <wrap important>important</wrap> * <wrap alert>alert</wrap> * <wrap safety>safety</wrap> * <wrap notice>notice</wrap> * <wrap caution>caution</wrap> * <wrap warning>warning</wrap> * <wrap danger>danger</wrap> * <wrap button>[[wiki:test|链接用<wrap button>可显示为按钮行为]]</wrap> * 请用鼠标选择右边的空白区域:<wrap spoiler>看不见我,看不见我</wrap> <markdown> ### » markdown page plugin - 内部链接:[首页](:start), [doku本插件链接](doku>plugin:mdpage), [wp 链接](wp>dokuwiki) - 内部链接图像: - [x] foo - [ ] bar - [x] baz - [ ] bim - foo - bar + baz - ~~Hi~~ Hello, ~there~ world! | f\|oo | | ------ | | b `\|` az | | b **\|** im | </markdown> wiki/test.txt 最后更改: 2024/06/04 09:53由 oakfire