all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob f30acebbc4a64effb35e1abd1755ffbf0110b054 5583 bytes (raw)
name: cn/org-demo.html 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
 
<div id="org-demo" style="counter-set: chk 0">
  <asside class="label-left">元数据 </asside>
  <pre class="label-left">
#+title:  <span class="org-document-title">Org 示例文件</span>
#+author: <span class="org-document-info">TEC</span>
#+date:   <span class="org-document-info">2020-10-27</span></pre>
  <details open>
    <summary>
      <asside class="right" style="position: relative; z-index: -1">
	<h4>大纲</h4>
        标题与折叠功能使得结构化编辑变得更加轻松。
        使用纯文本的 Org 文件也易于文件同步及版本控制。
      </asside>
      <pre><span class="org-level-1">* 改版 orgmode.org 网站</span></pre>
    </summary>
    <asside class="left">
      <h4>日程表</h4>
      列出待办事项。
      筛选内容,及实时更新。
    </asside>
    <pre>

<b>*必须*</b> 分享 org <i>/之美/</i></pre>
    <details class="replace">
      <summary>
	<pre><span class="org-link">[[https://upload.wikimedia.org/wikipedia/commons/b/bd/Share_Icon.svg]]</span></pre>
      </summary>
      <img src="https://upload.wikimedia.org/wikipedia/commons/b/bd/Share_Icon.svg" alt="share icon" style="height: 3em; margin-left: 1.5em"/>
    </details>
    <details open class="br">
      <summary>
	<pre><span class="org-level-2">** <span class="org-done">DONE 截图</span></span></pre>
      </summary>
      <pre>   <span class="org-special-keyword">CLOSED:</span> <span class="org-date">[2020-09-03 Thu 18:24]</span>

</pre>
    </details>
    <details open>
      <summary>
	<pre><span class="org-level-2">** <span class="org-done">DONE 重新设计网站的 CSS</span></span></pre>
      </summary>
      <pre>

查看:<span class="org-link"><a href="/resources/style/org.css">[[file:style.scss][stylesheet]]</a></span>

</pre>
    </details>
    <input type="checkbox" class="chk" id="chk1" checked />
    <input type="checkbox" class="chk" id="chk2" checked />
    <input type="checkbox" class="chk extra" id="chk3" />
    <input type="checkbox" class="chk" id="chk4" />
    <input type="checkbox" class="chk" id="chk5" checked />
    <input type="checkbox" class="chk extra" id="chk6" />
    <input type="checkbox" class="chk" id="chk7" />
    <details>
      <summary>
	<pre><span class="org-level-2">** <span class="org-todo">TODO</span> 检查主要页面的 CSS <span class="count-res"></span></span></pre>
      </summary>
      <pre class="countme">

<label for="chk1"><span class="org-list-dt">-</span> Index page</label>
<label for="chk2"><span class="org-list-dt">-</span> Quickstart</label>
<label for="chk3"><span class="org-list-dt">-</span> Features</label>
<label for="chk4"><span class="org-list-dt">-</span> Releases</label>
<label for="chk5"><span class="org-list-dt">-</span> Install</label>
<label for="chk6"><span class="org-list-dt">-</span> Manual</label>
<label for="chk7"><span class="org-list-dt">-</span> Contribute</label>
</pre>
    </details>
  </details>
  <details open class="label-left">
    <summary>
      <asside class="label-left">文本段落</asside>
      <pre><span class="org-level-1">* 学习 Org</span></pre>
    </summary>
    <pre>

Org 让事情变得如履平地。

你只需要阅读快速入门页面,就可以开始上手 Org 了。
如果还未能满足,请深入 Org 的手册,以及参与到社区里!
    </pre>
    <details open>
      <summary>
	<pre><span class="org-level-2">** 反馈</span></pre>
      </summary>
      <pre>

<span class="org-special-keyword">#+include: "other/feedback.org*manual" :only-contents t</span></pre>
    </details>
  </details>
  <details open>
    <summary>
      <pre>
<span class="org-level-1">* 检查 CSS 压缩比</span>
      </pre>
    </summary>
    <asside class="right">
      <h4>Babel</h4>

      在 Org 中进行文学编程,实时获得代码执行的结果。
    </asside>
    <asside class="label-left">代码块</asside>
    <details open>
      <summary><pre class="label-left" style="background-color: #ccc4"><span class="org-block-begin-line">#+begin_src python</span></pre></summary>
      <pre class="src label-left" style="background-color: #fff4">
<span class="org-keyword">from</span> pathlib <span class="org-keyword">import</span> Path
<span class="org-variable-name">cssRatios</span> = []
<span class="org-keyword">for</span> css_min <span class="org-keyword">in</span> Path(<span class="org-string">"resources/style"</span>).glob(<span class="org-string">"*.min.css"</span>):
    <span class="org-variable-name">css</span> = css_min.with_suffix(<span class="org-string">''</span>).with_suffix(<span class="org-string">'.css'</span>)
    cssRatios.append([css.name,
    <span class="org-string">"{:.0f}% minified ({:4.1f} KiB)"</span>.<span class="org-builtin">format</span>( <b>100</b> *
                      css_min.stat().st_size / css.stat().st_size,
                      css_min.stat().st_size / <b>1000</b>)])
<span class="org-keyword">return</span> cssRatios
</pre>
      <pre class="label-left" style="background-color: #ccc4"><span class="org-block-end-line">#+end_src</span></pre>
    </details>
    <details open>
      <summary>
	<asside class="label-left">代码执行结果</asside>
	<pre class="label-left br"><span class="org-block-begin-line">#+RESULTS:</span></pre>
      </summary>
      <pre class="label-left"><span class="org-table">| index.css    | 76% minified ( 1.4 KiB) |
| org-demo.css | 77% minified ( 2.8 KiB) |
| errors.css   | 74% minified ( 4.9 KiB) |
| org.css      | 75% minified (10.7 KiB) |
</span></pre>
    </details>
  </details>
</div>

debug log:

solving f30aceb ...
found f30aceb in https://yhetil.org/emacs/tencent_D08DCAF386AB0403710ACEFCD4D4D474DF0A@qq.com/

applying [1/1] https://yhetil.org/emacs/tencent_D08DCAF386AB0403710ACEFCD4D4D474DF0A@qq.com/
diff --git a/cn/org-demo.html b/cn/org-demo.html
new file mode 100644
index 0000000..f30aceb

Checking patch cn/org-demo.html...
Applied patch cn/org-demo.html cleanly.

index at:
100644 f30acebbc4a64effb35e1abd1755ffbf0110b054	cn/org-demo.html

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.