|
62 | 62 | Code |
63 | 63 | .readlines("docs/index.html") |
64 | 64 | Output |
65 | | - [1] "<!-- index.html -->" |
66 | | - [2] "" |
67 | | - [3] "<!DOCTYPE html>" |
68 | | - [4] "<html>" |
69 | | - [5] "<head>" |
70 | | - [6] " <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">" |
71 | | - [7] " <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">" |
72 | | - [8] " <meta charset=\"UTF-8\">" |
73 | | - [9] " <link rel=\"stylesheet\" href=\"//cdn.jsdelivr.net/npm/docsify@4/themes/vue.css\" />" |
74 | | - [10] "</head>" |
75 | | - [11] "<body>" |
76 | | - [12] " <div id=\"app\"></div>" |
77 | | - [13] " <script>" |
78 | | - [14] " window.$docsify = {" |
79 | | - [15] " name: 'testpkg.altdoc'," |
80 | | - [16] " repo: 'https://github.com/etiennebacher/altdoc'," |
81 | | - [17] " loadSidebar: true," |
82 | | - [18] " subMaxLevel: 2," |
83 | | - [19] " search: {" |
84 | | - [20] " placeholder: 'Search'," |
85 | | - [21] " depth: 3," |
86 | | - [22] " }," |
87 | | - [23] " auto2top: true," |
88 | | - [24] " copyCode: {" |
89 | | - [25] " buttonText : 'Copy'," |
90 | | - [26] " errorText : 'Error'," |
91 | | - [27] " successText: 'Copied'" |
92 | | - [28] " }," |
93 | | - [29] " plugins: [" |
94 | | - [30] " function(hook) {" |
95 | | - [31] " var footer = [\"<a > <code> testpkg.altdoc </code> v. 0.1.0 </a> | Documentation made with <a href='https://altdoc.etiennebacher.com/'> <code> altdoc </code> v. 0.5.0.9000</a>\"].join('');" |
96 | | - [32] "" |
97 | | - [33] " hook.afterEach(function(html) {" |
98 | | - [34] " return html + footer;" |
99 | | - [35] " });" |
100 | | - [36] " }" |
101 | | - [37] " ]" |
102 | | - [38] " }" |
103 | | - [39] " </script>" |
104 | | - [40] " <script src=\"//cdn.jsdelivr.net/npm/docsify@4\"></script>" |
105 | | - [41] " <script src=\"//cdn.jsdelivr.net/npm/docsify-copy-code\"></script>" |
106 | | - [42] " <script src=\"//cdn.jsdelivr.net/npm/prismjs@1.24.1/components/prism-r.js\"></script>" |
107 | | - [43] " <script src=\"//unpkg.com/docsify/lib/plugins/search.min.js\"></script>" |
108 | | - [44] "</body>" |
109 | | - [45] "</html>" |
| 65 | + [1] "<!-- index.html -->" |
| 66 | + [2] "" |
| 67 | + [3] "<!DOCTYPE html>" |
| 68 | + [4] "<html>" |
| 69 | + [5] "<head>" |
| 70 | + [6] " <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">" |
| 71 | + [7] " <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">" |
| 72 | + [8] " <meta charset=\"UTF-8\">" |
| 73 | + [9] " <link rel=\"stylesheet\" href=\"//cdn.jsdelivr.net/npm/docsify@4/themes/vue.css\" />" |
| 74 | + [10] "</head>" |
| 75 | + [11] "<body>" |
| 76 | + [12] " <div id=\"app\"></div>" |
| 77 | + [13] " <script>" |
| 78 | + [14] " window.$docsify = {" |
| 79 | + [15] " name: 'testpkg.altdoc'," |
| 80 | + [16] " repo: 'https://github.com/etiennebacher/altdoc'," |
| 81 | + [17] " loadSidebar: true," |
| 82 | + [18] " subMaxLevel: 2," |
| 83 | + [19] " search: {" |
| 84 | + [20] " placeholder: 'Search'," |
| 85 | + [21] " depth: 3," |
| 86 | + [22] " }," |
| 87 | + [23] " auto2top: true," |
| 88 | + [24] " copyCode: {" |
| 89 | + [25] " buttonText : 'Copy'," |
| 90 | + [26] " errorText : 'Error'," |
| 91 | + [27] " successText: 'Copied'" |
| 92 | + [28] " }," |
| 93 | + [29] " plugins: [" |
| 94 | + [30] " function(hook) {" |
| 95 | + [31] " var footer = [\"<a > <code> testpkg.altdoc </code> v. 0.1.0 </a> | Documentation made with <a href='https://altdoc.etiennebacher.com/'> <code> altdoc </code> v. 0.6.0</a>\"].join('');" |
| 96 | + [32] "" |
| 97 | + [33] " hook.afterEach(function(html) {" |
| 98 | + [34] " return html + footer;" |
| 99 | + [35] " });" |
| 100 | + [36] " }" |
| 101 | + [37] " ]" |
| 102 | + [38] " }" |
| 103 | + [39] " </script>" |
| 104 | + [40] " <script src=\"//cdn.jsdelivr.net/npm/docsify@4\"></script>" |
| 105 | + [41] " <script src=\"//cdn.jsdelivr.net/npm/docsify-copy-code\"></script>" |
| 106 | + [42] " <script src=\"//cdn.jsdelivr.net/npm/prismjs@1.24.1/components/prism-r.js\"></script>" |
| 107 | + [43] " <script src=\"//unpkg.com/docsify/lib/plugins/search.min.js\"></script>" |
| 108 | + [44] "</body>" |
| 109 | + [45] "</html>" |
110 | 110 |
|
111 | 111 | --- |
112 | 112 |
|
|
0 commit comments