sdoc 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. data/lib/sdoc/generator.rb +34 -11
  2. data/lib/sdoc/generator/template/direct/_context.rhtml +1 -1
  3. data/lib/sdoc/generator/template/direct/_head.rhtml +7 -0
  4. data/lib/sdoc/generator/template/direct/class.rhtml +4 -5
  5. data/lib/sdoc/generator/template/direct/file.rhtml +4 -5
  6. data/lib/sdoc/generator/template/direct/index.rhtml +1 -2
  7. data/lib/sdoc/generator/template/direct/resources/css/github.css +129 -0
  8. data/lib/sdoc/generator/template/direct/resources/js/highlight.pack.js +1 -0
  9. data/lib/sdoc/generator/template/direct/resources/js/main.js +15 -13
  10. data/lib/sdoc/generator/template/direct/resources/panel/index.html +32 -31
  11. data/lib/sdoc/generator/template/direct/se_index.rhtml +8 -0
  12. data/sdoc.gemspec +2 -2
  13. metadata +8 -20
  14. data/lib/sdoc/generator/template/shtml/_context.rhtml +0 -163
  15. data/lib/sdoc/generator/template/shtml/class.rhtml +0 -46
  16. data/lib/sdoc/generator/template/shtml/file.rhtml +0 -37
  17. data/lib/sdoc/generator/template/shtml/index.rhtml +0 -14
  18. data/lib/sdoc/generator/template/shtml/resources/apple-touch-icon.png +0 -0
  19. data/lib/sdoc/generator/template/shtml/resources/css/main.css +0 -191
  20. data/lib/sdoc/generator/template/shtml/resources/css/panel.css +0 -383
  21. data/lib/sdoc/generator/template/shtml/resources/css/reset.css +0 -53
  22. data/lib/sdoc/generator/template/shtml/resources/favicon.ico +0 -0
  23. data/lib/sdoc/generator/template/shtml/resources/i/arrows.png +0 -0
  24. data/lib/sdoc/generator/template/shtml/resources/i/results_bg.png +0 -0
  25. data/lib/sdoc/generator/template/shtml/resources/i/tree_bg.png +0 -0
  26. data/lib/sdoc/generator/template/shtml/resources/js/jquery-1.3.2.min.js +0 -19
  27. data/lib/sdoc/generator/template/shtml/resources/js/main.js +0 -34
  28. data/lib/sdoc/generator/template/shtml/resources/js/searchdoc.js +0 -628
  29. data/lib/sdoc/generator/template/shtml/resources/panel/index.html +0 -71
@@ -1,71 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
6
- <head>
7
- <title>layout</title>
8
- <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" charset="utf-8" />
9
- <link rel="stylesheet" href="../css/panel.css" type="text/css" media="screen" charset="utf-8" />
10
- <script src="search_index.js" type="text/javascript" charset="utf-8"></script>
11
- <script src="tree.js" type="text/javascript" charset="utf-8"></script>
12
- <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../js/searchdoc.js" type="text/javascript" charset="utf-8"></script>
14
- <script type="text/javascript" charset="utf-8">
15
- //<![CDATA[
16
- function placeholder() {
17
- if (jQuery.browser.safari) return;
18
- $('#search-label').click(function() {
19
- $('#search').focus();
20
- $('#search-label').hide();
21
- });
22
-
23
- $('#search').focus(function() {
24
- $('#search-label').hide();
25
- });
26
- $('#search').blur(function() {
27
- this.value == '' && $('#search-label').show()
28
- });
29
-
30
- $('#search')[0].value == '' && $('#search-label').show();
31
- }
32
- $(function() {
33
- placeholder();
34
- var panel = new Searchdoc.Panel($('#panel'), search_data, tree, top.frames[1]);
35
- $('#search').focus();
36
-
37
- var s = window.parent.location.search.match(/\?q=([^&]+)/);
38
- if (s) {
39
- s = decodeURIComponent(s[1]).replace(/\+/g, ' ');
40
- if (s.length > 0)
41
- {
42
- $('#search').val(s);
43
- panel.search(s, true);
44
- }
45
- }
46
- })
47
- //]]>
48
- </script>
49
- </head>
50
- <body>
51
- <div class="panel panel_tree" id="panel">
52
- <div class="header">
53
- <div>
54
- <label for="search" id="search-label" style="display: none">Search</label>
55
- <table>
56
- <tr><td>
57
- <input type="Search" placeholder="Search" autosave="searchdoc" results="10" id="search" autocomplete="off"/>
58
- </td></tr>
59
- </table></div>
60
- </div>
61
- <div class="tree">
62
- <ul>
63
- </ul>
64
- </div>
65
- <div class="result">
66
- <ul>
67
- </ul>
68
- </div>
69
- </div>
70
- </body>
71
- </html>