OSDN Git Service

エレコマのドキュメントの構成の作成
[elecoma/elecoma-doc.git] / test.rst
1
2 ディレクティブ実験場
3 ======================
4
5 .. _note:
6
7 ノート .. note::
8 --------------------
9
10 .. note::
11    ノート
12
13    .. note::
14       入れ子が可能
15
16
17 .. _warning:
18
19 警告 .. warning::
20 -------------------
21
22 .. warning::
23    警告!!!!
24
25    .. note::
26       これも入れ子OKみたい
27
28 .. _sidebar:
29
30 サイドバー ..sidebar::
31 -------------------------
32
33 .. sidebar:: タイトル
34    :subtitle: サブタイトル
35
36    サイドバー
37
38
39 .. _line_block:
40
41 ラインブロック .. line-block::
42 -----------------------------------
43
44 .. line-block::
45
46    ラインブロック
47
48 .. _Parsed:
49
50 Parsed Literal Block .. parsed-literal::
51 --------------------------------------------------
52
53 .. parsed-literal::
54
55    ( (note_, warning_?)?,
56      sidebar_?,
57      (line_block_, Parsed_?)?,
58      Topic_ )
59
60
61 .. _Topic:
62
63 トピック .. Topic::
64 -----------------------------------
65
66 .. Topic:: トピックタイトル
67
68    てすと
69
70 コンテンツ .. Contents::
71 ---------------------------------
72
73 .. contents:: 
74    コンテンツの内容
75
76
77
78 .. header:: htmlでは無効?
79    ヘッダー
80
81 .. footer:: htmlでは無効?
82    フッター
83
84 .. meta::
85    :keywords: sphinx, directives test park
86
87 生データ .. raw::
88 -----------------------
89
90 .. raw:: html
91
92    <h1>htmlタグが使える!!</h1>
93    テスト<br />
94    <b>太字</b>
95    <script type="text/javascript" />
96    window.onload = function() {
97       var flash=true;
98       var delay = 1000;
99       setInterval(function() {
100           var now = new Date();
101           var theHour = now.getHours();
102           var theMin = now.getMinutes();
103           var clockDisp = " " + ((theHour < 10) ? " " : "") + theHour;
104           clockDisp += ((flash == true) ? ":" : " ");
105           clockDisp += ((theMin <10) ? "0" : "") + theMin;
106           document.getElementById("clock").innerHTML = clockDisp;
107           flash - !flash;
108       }, delay);
109    };
110    </script>
111
112    <p>javascriptテスト 現在の時刻:<span id="clock"><span></p>
113
114    
115
116 画像関連 .. image:: & .. figure::
117 -----------------------------------
118
119 imageディレクティブ
120
121 .. image:: /images/intro/admin_users_1.gif
122
123
124 figureディレクティブ
125
126 .. figure:: /images/intro/admin_users_1.gif 
127    :figwidth: 200
128
129
130 imageディレクティブでslimebox2を利用
131
132 .. image:: /images/admin/shopmaster.png
133    :scale: 20%
134    :alt: てすと
135    :class: lightbox
136
137 ソースコードの表示
138 -----------------------
139
140 ソースコードのテスト::
141
142   test
143
144 ああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ
145
146
147 .. highlight:: c
148    :linenothreshold: 5
149
150 ハイライトのテスト::
151
152      #include <stdio.h>
153      
154      void main(){
155        int i = 0;
156        printf("i = %d", i);
157      }
158
159 てすと::
160
161      #include <stdio.h>
162      
163      void main(){
164      }
165
166 行番号テスト::
167
168      #include <stdio.h>
169
170      void main(){
171      int hogehogehogehoge = 0,hogehogehoge = 0,hogehoge = 0,hoge = 0;
172      printf("テストテストテストテストテストテスト\n hogehogehogehoge = %d\n hogehogehoge = %d\n hogehoge = %d\n hoge = %d\n",hogehogehogehoge, hogehogehoge, hogehoge, hoge);
173      }